# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
7689 |
2014-08-14T11:59:56 Z |
gs13068 |
CATS (NOI14_cats) |
C++ |
|
96 ms |
1088 KB |
#include<cstdio>
int main()
{
int TC;
scanf("%d",&TC);
while(TC--)
{
long long X,L,N,K,T,C=0;
scanf("%lld%lld%lld",&X,&L,&N);
X=X-1;
K=(L+2*N-1)/(2*N);
for(T=K/(2*N)+1;X>0&&T>0;X>>=1,T--)C^=X&1;
printf("%lld\n",K+C);
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
1088 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
1088 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
1088 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
1088 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
4 ms |
1088 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
96 ms |
1088 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |