Borderou de evaluare (job #2600956)

Utilizator alex_benescuAlex Ben alex_benescu Data 13 aprilie 2020 14:57:07
Problema Distante Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] #import<fstream> ^~~~~~ main.cpp:2:108: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] using namespace std;ifstream f("distante.in");ofstream g("distante.out");int d[50003],i,j,k,n,m,s,t,o;main(){f>>t;for(;t;--t){f>>n>>m>>s;for(i=1;i<=n;++i)f>>d[i];o=1;if(!d[s])o=0;for(;m;--m){f>>i>>j>>k;if(d[i]+k<d[j]||d[j]+k<d[i])o=0;}if(o)g<<"DA\n";else g<<"NU\n";}} ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
13ms131kbIncorect00
210ms131kbIncorect00
311ms131kbIncorect00
428ms131kbIncorect00
543ms131kbIncorect00
6107ms262kbIncorect00
7129ms262kbIncorect00
852ms131kbIncorect0
9112ms131kbIncorect0
10109ms262kbIncorect0
Punctaj total0

Ceva nu functioneaza?