Pagini recente » Borderou de evaluare (job #3293695) | Borderou de evaluare (job #1058229) | Borderou de evaluare (job #2891805) | Borderou de evaluare (job #3281331) | Borderou de evaluare (job #3127989)
Borderou de evaluare (job #3127989)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<fstream>
| ^~~~~~
main.cpp:2:128: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | int n,m,q[1<<17],t,x,y;std::ifstream i("disjoint.in");std::ofstream o("disjoint.out");int p(int n){while(q[n])n=q[n];return n;}main(){for(i>>n>>m;m--;i>>t>>x>>y,t==1?q[p(y)]=p(x):p(x)==p(y)?0||o<<"DA\n":1&&o<<"NU\n");}
| ^~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 303kb | OK | 10 | 10 |
2 | 0ms | 303kb | OK | 10 | 10 |
3 | 0ms | 303kb | OK | 10 | 10 |
4 | 1ms | 303kb | OK | 10 | 10 |
5 | 4ms | 303kb | OK | 10 | 30 |
6 | 9ms | 557kb | OK | 10 |
7 | 9ms | 557kb | OK | 10 |
8 | 9ms | 819kb | OK | 10 | 10 |
9 | 6ms | 557kb | OK | 10 | 10 |
10 | 9ms | 819kb | OK | 10 | 10 |
Punctaj total | 100 |