Pagini recente » Borderou de evaluare (job #2372371) | Borderou de evaluare (job #1250127) | Borderou de evaluare (job #631045) | Borderou de evaluare (job #2568750) | Borderou de evaluare (job #2406240)
Borderou de evaluare (job #2406240)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
#import<bits/stdc++.h>
^~~~~~
main.cpp: In function 'int main()':
main.cpp:2:182: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
using namespace std;ifstream f("joc5.in");ofstream g("joc5.out");int main(){int i,x,r,j,n;f>>n;while(n){for(i=1;i<=n;++i)for(j=1;j<=n;++j){f>>x;if(j==1&&i==1)r=x;else if(j==i)r^=x;}if(r)g<<"1\n";else g<<"2\n";f>>n;}}
^~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | OK | 10 |
3 | 2ms | 131kb | OK | 10 |
4 | 2ms | 131kb | OK | 10 |
5 | 2ms | 131kb | OK | 10 |
6 | 20ms | 131kb | OK | 10 |
7 | 25ms | 131kb | OK | 10 |
8 | 30ms | 131kb | OK | 10 |
9 | 37ms | 131kb | OK | 10 |
10 | 29ms | 131kb | OK | 10 |
Punctaj total | 100 |