Pagini recente » Borderou de evaluare (job #195934) | Borderou de evaluare (job #2348373) | Borderou de evaluare (job #3205977) | Borderou de evaluare (job #2954808) | Borderou de evaluare (job #2943290)
Borderou de evaluare (job #2943290)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<bits/stdc++.h>
| ^~~~~~
main.cpp:2:78: warning: multi-character character constant [-Wmultichar]
2 | std::ifstream r("apm.in");std::ofstream w("apm.out");struct s{int x,y,z;}d,e['■'];int m,k,i,z,t['■'],x;int f(int x){return t[x]?t[x]=f(t[x]):x;}int main(){r>>m>>m;while(r>>e[i].x>>e[i].y>>e[i].z)i++;std::sort(e,e+m,[](s a,s b){return a.z>b.z;});for(;i;)d=e[--i],(x=f(d.x))^f(d.y)?t[x]=d.y,z+=d.z,e[k++]=d:d;w<<z<<" "<<k<<" ";while(k--)w<<e[k].x<<" "<<e[k].y<<" ";}
| ^~~
main.cpp:2:99: warning: multi-character character constant [-Wmultichar]
2 | std::ifstream r("apm.in");std::ofstream w("apm.out");struct s{int x,y,z;}d,e['■'];int m,k,i,z,t['■'],x;int f(int x){return t[x]?t[x]=f(t[x]):x;}int main(){r>>m>>m;while(r>>e[i].x>>e[i].y>>e[i].z)i++;std::sort(e,e+m,[](s a,s b){return a.z>b.z;});for(;i;)d=e[--i],(x=f(d.x))^f(d.y)?t[x]=d.y,z+=d.z,e[k++]=d:d;w<<z<<" "<<k<<" ";while(k--)w<<e[k].x<<" "<<e[k].y<<" ";}
| ^~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 184kb | Cost incorect | 0 |
2 | 0ms | 184kb | Cost incorect | 0 |
3 | 0ms | 184kb | Cost incorect | 0 |
4 | 0ms | 184kb | Cost incorect | 0 |
5 | 0ms | 184kb | Cost incorect | 0 |
6 | 44ms | 1740kb | Cost incorect | 0 |
7 | 78ms | 3244kb | Cost incorect | 0 |
8 | 15ms | 679kb | Cost incorect | 0 |
9 | 12ms | 856kb | Corect | 10 |
10 | 72ms | 2957kb | Cost incorect | 0 |
Punctaj total | 10 |