Submission #7033

#TimeUsernameProblemLanguageResultExecution timeMemory
7033gs13068CATS (NOI14_cats)C++98
0 / 25
1500 ms262144 KiB
#include<cstdio> long long X,L,N; int F(long long A) { if(A>L) { X--; if(X==0) { printf("%lld\n",A); return 1; } return 0; } F(A+N+N); F((A+N+N)^1); } int main() { int tcn; scanf("%d",&tcn); while(tcn--) { long long T; scanf("%lld%lld%lld",&X,&L,&N); for(T=0;!F(T);T^=1); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...