# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
202072 |
2020-02-13T13:21:17 Z |
darkkcyan |
CATS (NOI14_cats) |
C++14 |
|
459 ms |
2264 KB |
// Thu Feb 13 16:15:01 MSK 2020: START coding
#include<bits/stdc++.h>
using namespace std;
int main() {
int ntest; cin >> ntest;
while (ntest--) {
long long x, l, n; cin >> x >> l >> n;
--x;
x %= 4;
long long mul = l / n;
mul += 1 + (~mul & 1);
mul *= n;
cout << mul + ((x & 1) ^ (x >> 1)) << '\n';
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
256 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
376 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
6 ms |
256 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
8 ms |
632 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
41 ms |
376 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
459 ms |
2264 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |