Pagini recente » Borderou de evaluare (job #1923286) | Borderou de evaluare (job #227806) | Borderou de evaluare (job #2040719) | Borderou de evaluare (job #203709) | Borderou de evaluare (job #1799628)
Borderou de evaluare (job #1799628)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:4:303: warning: operation on ‘i’ may be undefined [-Wsequence-point]
using namespace std;ofstream g("sortaret.out");int x,m,n,y,d[t],i;vector<int>a[t],v;bool w[t];void D(int x){w[x]=1;for(int i=0;i<d[x];){int y=a[x][i++];if(!w[y])D(y);}v.push_back(x),++m;}int main(){ifstream f("sortaret.in");f>>n>>m;for(;m--;)f>>x>>y,a[x].push_back(y);++m;i=n;for(;i;)d[i]=a[i--].size();for(;i<n;)if(!w[++i])D(i);for(;m;)g<<v[--m]<<" ";}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 1000kb | OK | 10 |
2 | 0ms | 996kb | OK | 10 |
3 | 0ms | 1012kb | OK | 10 |
4 | 0ms | 1044kb | OK | 10 |
5 | 4ms | 1096kb | OK | 10 |
6 | 8ms | 1168kb | OK | 10 |
7 | 20ms | 1384kb | OK | 10 |
8 | 28ms | 1556kb | OK | 10 |
9 | 56ms | 1928kb | OK | 10 |
10 | 92ms | 2320kb | OK | 10 |
Punctaj total | 100 |