QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#785922#9670. GG and YY’s Stone GameacdwzWA 3ms3668kbC++14266b2024-11-26 19:36:572024-11-26 19:37:01

Judging History

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

  • [2024-11-26 19:37:01]
  • 评测
  • 测评结果:WA
  • 用时:3ms
  • 内存:3668kb
  • [2024-11-26 19:36:57]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
void solve()
{
	int n;
	cin>>n;
	if(n%3==0){
		cout<<1<<' '<<n/3<<'\n';
	}
	else{
		cout<<0<<' '<<n/3+n%3<<'\n';
	}
	return;
}
int main()
{
	int __;
	cin>>__;
	while(__--){
		solve();
	}
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
1
2
3

output:

0 1
0 2
1 1

result:

ok 3 lines

Test #2:

score: 0
Accepted
time: 3ms
memory: 3532kb

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: 0ms
memory: 3544kb

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: -100
Wrong Answer
time: 1ms
memory: 3596kb

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 715827883
0 715827883
0 715827883
0 715827883
0 715827883
0 715827883
0 715827883
0 715827883
0 715827883
0 715827883
0 715827883
0 715827883
0 715827883
0 715827883
0 715827883
0 715827883
0 715827883
0 715827883
0 715827883
0 715827883
0 715827883
0 715827883
0 715827883
0 715827883
0 715827883
...

result:

wrong answer 1st lines differ - expected: '0 12803593898', found: '0 715827883'