QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#818506#9670. GG and YY’s Stone GamewcyQwQWA 0ms3568kbC++14534b2024-12-17 21:15:002024-12-17 21:15:01

Judging History

你现在查看的是最新测评结果

  • [2024-12-17 21:15:01]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3568kb
  • [2024-12-17 21:15:00]
  • 提交

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'