QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#805691#9818. Hash Collisionucup-team4744#RE 1ms4096kbC++201.1kb2024-12-08 17:58:062024-12-08 17:58:07

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3820kb

input:

6
2
3
5
2
5

output:

? 6 1
? 1 2
? 1 3
? 2 5
? 2 2
! 2 5

result:

ok 

Test #2:

score: 0
Accepted
time: 1ms
memory: 4092kb

input:

4
4
2
4
4

output:

? 4 1
? 1 4
? 1 2
? 2 4
! 4 4

result:

ok 

Test #3:

score: 0
Accepted
time: 0ms
memory: 4092kb

input:

1
1
1
1

output:

? 1 1
? 1 1
? 1 1
! 1 1

result:

ok 

Test #4:

score: 0
Accepted
time: 1ms
memory: 3700kb

input:

2
1
1
1

output:

? 2 1
? 1 1
? 1 1
! 1 1

result:

ok 

Test #5:

score: 0
Accepted
time: 1ms
memory: 3872kb

input:

2
1
1
1

output:

? 2 1
? 1 1
? 1 1
! 1 1

result:

ok 

Test #6:

score: 0
Accepted
time: 0ms
memory: 3820kb

input:

2
1
2
1
2

output:

? 2 1
? 1 1
? 1 2
? 1 1
! 1 2

result:

ok 

Test #7:

score: 0
Accepted
time: 1ms
memory: 3876kb

input:

2
2
2
2

output:

? 2 1
? 1 2
? 1 2
! 2 2

result:

ok 

Test #8:

score: 0
Accepted
time: 0ms
memory: 4096kb

input:

100000
1
1
1

output:

? 100000 1
? 1 1
? 1 1
! 1 1

result:

ok 

Test #9:

score: 0
Accepted
time: 0ms
memory: 4092kb

input:

100000
42
42
42

output:

? 100000 1
? 1 42
? 1 42
! 42 42

result:

ok 

Test #10:

score: -100
Runtime Error

input:

100000
1
2
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
41
43
45
47
49
51
53
55
57
59
61
63
65
67
69
71
73
75
77
79
81
83
85
87
89
91
93
95
97
99
101
103
105
107
109
111
113
115
117
119
121
123
125
127
129
131
133
135
137
139
141
143
145
147
149
151
153
155
157
159
161
163
165
167
169
171
17...

output:

? 100000 1
? 1 1
? 1 2
? 2 3
? 2 5
? 2 7
? 2 9
? 2 11
? 2 13
? 2 15
? 2 17
? 2 19
? 2 21
? 2 23
? 2 25
? 2 27
? 2 29
? 2 31
? 2 33
? 2 35
? 2 37
? 2 39
? 2 41
? 2 43
? 2 45
? 2 47
? 2 49
? 2 51
? 2 53
? 2 55
? 2 57
? 2 59
? 2 61
? 2 63
? 2 65
? 2 67
? 2 69
? 2 71
? 2 73
? 2 75
? 2 77
? 2 79
? 2 81
?...

result: