QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#818506 | #9670. GG and YY’s Stone Game | wcyQwQ | WA | 0ms | 3568kb | C++14 | 534b | 2024-12-17 21:15:00 | 2024-12-17 21:15:01 |
Judging History
answer
#include <bits/stdc++.h>
#define L(i, j, k) for (int i = (j); i <= (k); i++)
#define R(i, j, k) for (int i = (j); i >= (k); i--)
#define all(x) x.begin(), x.end()
#define eb emplace_back
using namespace std;
using LL = long long;
namespace FloatingMoon {
void main() {
int T;
cin >> T;
while (T--) {
LL n;
cin >> n;
cout << !!(n % 3) << ' ' << (n % 3 == 0 ? 1 : n % 3) << '\n';
}
}
}
int main() {
cin.tie(0)->sync_with_stdio(0);
FloatingMoon::main();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3568kb
input:
3 1 2 3
output:
1 1 1 2 0 1
result:
wrong answer 1st lines differ - expected: '0 1', found: '1 1'