Pagini recente » Borderou de evaluare (job #3142784) | Borderou de evaluare (job #3186079) | Borderou de evaluare (job #368794) | Borderou de evaluare (job #3156224) | Borderou de evaluare (job #2309833)
Borderou de evaluare (job #2309833)
Raport evaluator
Compilare:
main.cpp:2:83: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
using namespace std;ifstream q("joc8.in");ofstream w("joc8.out");int p,u,a,x;main(){q>>p>>u;while(p<=u){x=(p+u)/2;q>>a;if(a==1){w<<x;return 0;}q>>a;if(a==1)u=x-1;else p=x+1;}w<<0;return 0;}
^
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 | 2ms | 131kb | OK | 10 |
7 | 2ms | 131kb | OK | 10 |
8 | 2ms | 131kb | OK | 10 |
9 | 2ms | 131kb | OK | 10 |
10 | 2ms | 131kb | OK | 10 |
Punctaj total | 100 |