Submission #13033

#TimeUsernameProblemLanguageResultExecution timeMemory
13033gs14004CATS (NOI14_cats)C++98
0 / 25
80 ms1084 KiB
#include <cstdio> int main(){ int q; scanf("%d",&q); while (q--) { int x,l,n; scanf("%d %d %d",&x,&l,&n); printf("%d\n",(l + 2*n - 1) / (2*n) * 2 * n + (x % 4 == 2 || x % 4 == 3)); } }
#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...