QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#818510#9670. GG and YY’s Stone GamewcyQwQAC ✓2ms3628kbC++14522b2024-12-17 21:16:332024-12-17 21:16:33

Judging History

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

  • [2024-12-17 21:16:33]
  • 评测
  • 测评结果:AC
  • 用时:2ms
  • 内存:3628kb
  • [2024-12-17 21:16:33]
  • 提交

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 + n % 3 << '\n';
    }
  }
}

int main() {
  cin.tie(0)->sync_with_stdio(0);
  FloatingMoon::main();
  return 0;
}

这程序好像有点Bug,我给组数据试试?

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3544kb

input:

3
1
2
3

output:

0 1
0 2
1 1

result:

ok 3 lines

Test #2:

score: 0
Accepted
time: 2ms
memory: 3612kb

input:

10000
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
10...

output:

0 1
0 2
1 1
0 2
0 3
1 2
0 3
0 4
1 3
0 4
0 5
1 4
0 5
0 6
1 5
0 6
0 7
1 6
0 7
0 8
1 7
0 8
0 9
1 8
0 9
0 10
1 9
0 10
0 11
1 10
0 11
0 12
1 11
0 12
0 13
1 12
0 13
0 14
1 13
0 14
0 15
1 14
0 15
0 16
1 15
0 16
0 17
1 16
0 17
0 18
1 17
0 18
0 19
1 18
0 19
0 20
1 19
0 20
0 21
1 20
0 21
0 22
1 21
0 22
0 23
1...

result:

ok 10000 lines

Test #3:

score: 0
Accepted
time: 2ms
memory: 3624kb

input:

10000
422521
600816
891085
939925
23692
913952
514679
23134
156754
765399
247079
100044
950501
60689
996439
926509
535863
131803
989776
321172
40697
686118
476667
385215
218429
364612
596415
139970
752464
646010
564112
574730
759518
202614
569955
766939
917332
259507
995146
734649
702370
849380
5644...

output:

0 140841
1 200272
0 297029
0 313309
0 7898
0 304652
0 171561
0 7712
0 52252
1 255133
0 82361
1 33348
0 316835
0 20231
0 332147
0 308837
1 178621
0 43935
0 329926
0 107058
0 13567
1 228706
1 158889
1 128405
0 72811
0 121538
1 198805
0 46658
0 250822
0 215338
0 188038
0 191578
0 253174
1 67538
1 18998...

result:

ok 10000 lines

Test #4:

score: 0
Accepted
time: 2ms
memory: 3604kb

input:

10000
38410781692
681926141840
142414535018
910922174803
697649266882
407967245707
629764447166
643520679553
881906972282
957837075938
540132662746
844831978679
511129648742
792987123607
120480134977
206587821263
77708339420
990087691985
170922464925
607059871851
858284711220
239068059894
3545723732...

output:

0 12803593898
0 227308713948
0 47471511674
0 303640724935
0 232549755628
0 135989081903
0 209921482390
0 214506893185
0 293968990762
0 319279025314
0 180044220916
0 281610659561
0 170376549582
0 264329041203
0 40160044993
0 68862607089
0 25902779808
0 330029230663
1 56974154975
1 202353290617
1 2860...

result:

ok 10000 lines

Test #5:

score: 0
Accepted
time: 2ms
memory: 3628kb

input:

10000
1000000000000
999999999999
999999999998
999999999997
999999999996
999999999995
999999999994
999999999993
999999999992
999999999991
999999999990
999999999989
999999999988
999999999987
999999999986
999999999985
999999999984
999999999983
999999999982
999999999981
999999999980
999999999979
9999999...

output:

0 333333333334
1 333333333333
0 333333333334
0 333333333333
1 333333333332
0 333333333333
0 333333333332
1 333333333331
0 333333333332
0 333333333331
1 333333333330
0 333333333331
0 333333333330
1 333333333329
0 333333333330
0 333333333329
1 333333333328
0 333333333329
0 333333333328
1 333333333327
...

result:

ok 10000 lines

Extra Test:

score: 0
Extra Test Passed