Borderou de evaluare (job #2602674)

Utilizator alex_benescubenescu alexandru alex_benescu Data 17 aprilie 2020 16:59:44
Problema Bowling Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp:2:230: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] using namespace std;ifstream in("bowling.in");ofstream out("bowling.out");int s,i,k,nr,j,t,n,c[101]={0,1,2,3,1,4,3,2,1,4,2,6,4,1,2,7,1,4,3,2,1,4,6,7,4,1,2,8,5,4,7,2,1,8,6,7,4,1,2,3,1,4,7,2,1,8,2,7,4,1,2,8,1,4,7,2,1,4,2,7,4};main(){in>>t;for(i=1;i<=t;++i){in>>n;s=0;for(j=1;j<=n;++j){in>>k;if(k==1)nr++;else{if(nr<=60)s=s^c[nr];else{s=s^c[49+(nr-1)%12];}nr=0;}}if(nr<=60)s=s^c[nr];else{s=s^c[49+(nr-1)%12];}nr=0;if(s==0)out<<"Fumeanu";else out<<"Nargy";out<<'\n';}} ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbOK1010
22ms131kbOK1010
32ms131kbOK1010
43ms131kbOK1010
53ms131kbOK1010
616ms131kbOK1010
726ms131kbOK1040
835ms131kbOK10
958ms131kbOK10
1068ms131kbOK10
Punctaj total100

Ceva nu functioneaza?