제출 #7034

#제출 시각아이디문제언어결과실행 시간메모리
7034gs13068CATS (NOI14_cats)C++98
12 / 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; } if(F(A+N+N))return 1; if(F((A+N+N)^1))return 1; return 0; } 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...