Borderou de evaluare (job #2944939)

Utilizator lucaperjuLuca Perju Verzotti lucaperju Data 23 noiembrie 2022 09:46:04
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 60

Raport evaluator

Compilare: main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 1 | #import<bits/stdc++.h> | ^~~~~~ main.cpp:2:166: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | using namespace std;ofstream w("apm.out");ifstream r("apm.in");tuple<int,int,int>e[1<<20],d;int m,a,b,c,i,j,k,x,p,q,t[9999];int f(int x){return t[x]?t[x]=f(t[x]):x;}main(){r>>m>>m;while(r>>a>>b>>c)e[i++]={c,a,b};sort(e,e+m);for(;j<m;)tie(c,a,b)=d=e[j],e[f(b)^(x=f(a))?t[x]=b,p+=c,q++:j++]=d;w<<p<<" "<<q<<" ";for(;k<m;)tie(c,a,b)=e[k++],w<<a<<" "<<b<<" ";} | ^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms184kbCorect10
20ms184kbCorect10
30ms184kbCorect10
40ms184kbCorect10
50ms184kbCorect10
642ms1601kbKilled by Signal 110
763ms2183kbKilled by Signal 110
864ms65552kbMemory limit exceeded0
930ms1331kbCorect10
1061ms2170kbKilled by Signal 110
Punctaj total60

Ceva nu functioneaza?