Pagini recente » Borderou de evaluare (job #2242267) | Borderou de evaluare (job #1766266) | Borderou de evaluare (job #1809185) | Borderou de evaluare (job #2464429) | Borderou de evaluare (job #2831516)
Borderou de evaluare (job #2831516)
Raport evaluator
Compilare:
main.cpp:2:21: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | using namespace std;main(){ifstream f("paritate.in");ofstream g("paritate.out");string a;int t=-1,o=1;vector<int>b;char c;while(f>>c){string s;int k=c-48,n=0;++t;for(int i=1;i<=7;++i){f>>c;if(c==49)++n;s+=c;}if((n&1)^k)o=0,b.push_back(t);bitset<7>bi(s);a+=(char)bi.to_ulong();}if(!o){g<<"NU\n";for(auto&x:b)g<<x<<' ';}else g<<"DA\n"<<a;}
| ^~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 184kb | OK | 10 | 30 |
2 | 2ms | 184kb | OK | 10 |
3 | 2ms | 184kb | OK | 10 |
4 | 2ms | 184kb | OK | 10 | 40 |
5 | 2ms | 184kb | OK | 10 |
6 | 16ms | 327kb | OK | 10 |
7 | 21ms | 368kb | OK | 10 |
8 | 16ms | 323kb | OK | 10 | 30 |
9 | 21ms | 368kb | OK | 10 |
10 | 2ms | 184kb | OK | 10 |
Punctaj total | 100 |