Borderou de evaluare (job #2941965)

Utilizator redstonegamer22Andrei Ion redstonegamer22 Data 18 noiembrie 2022 16:33:48
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 50

Raport evaluator

Compilare: main.cpp:3:166: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 3 | using namespace std;ifstream i("apm.in");ofstream o("apm.out");const t h=3e5;t p[h];set<deque<t>>g[h+h],f;t a(t x){if(x^p[x])p[x]=a(p[x]);return p[x];}t n,m,x,y,c,s;main(){i>>n>>m;iota(p,p+h,0);while(m--)i>>x>>y>>c,g[c+h].insert({x,y});for(auto&z:g)for(auto&e:z){x=a(e[0]);y=a(e[1]);if(x^y)f.insert(e),s+=&z-g-h;p[x]=y;}o<<s<<' '<<n-1<<' ';for(auto&e:f)o<<e[0]<<' '<<e[1]<<' ';} | ^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
127ms30289kbCorect10
228ms30326kbCorect10
328ms30507kbCorect10
428ms30674kbCorect10
528ms30818kbCorect10
6104ms65552kbMemory limit exceeded0
7100ms65552kbMemory limit exceeded0
899ms65552kbMemory limit exceeded0
999ms65552kbMemory limit exceeded0
10100ms65552kbMemory limit exceeded0
Punctaj total50

Ceva nu functioneaza?