QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#95182#5470. Hasty Santa ClausZhaoZiLongWA 2ms5568kbC++201.1kb2023-04-09 11:40:072023-04-09 11:40:08

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5 1
23 25
23 27
24 25
25 25
25 26

output:

23
27
24
25
26

result:

ok ok

Test #2:

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

input:

7 2
1 31
1 31
1 31
1 31
1 31
1 31
1 31

output:

31
31
30
30
29
29
28

result:

ok ok

Test #3:

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

input:

6 2
24 25
24 25
24 25
25 26
25 26
25 26

output:

25
24
24
26
26
25

result:

ok ok

Test #4:

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

input:

20 5
9 26
7 29
7 30
4 30
4 27
19 30
8 27
13 25
6 29
1 25
8 31
2 29
13 25
9 26
8 31
1 28
8 26
3 26
5 25
1 28

output:

26
29
30
30
27
30
27
25
29
25
31
29
25
26
31
28
26
26
25
28

result:

ok ok

Test #5:

score: -100
Wrong Answer
time: 2ms
memory: 5404kb

input:

100 5
9 25
2 30
2 31
4 29
2 25
1 27
7 26
3 25
15 30
2 26
9 26
2 30
6 30
24 31
7 28
15 27
2 29
23 31
18 29
23 31
1 31
2 27
7 29
2 27
23 31
16 31
17 31
10 29
4 30
3 26
2 26
19 28
1 30
8 30
4 31
10 29
1 31
22 30
6 29
3 26
3 30
5 28
1 31
9 28
2 30
2 26
13 30
4 25
2 27
1 25
5 27
5 26
9 27
1 28
19 31
5 31...

output:

13
24
27
20
12
15
15
12
26
14
15
23
25
31
18
17
20
31
23
31
27
16
21
16
31
30
30
22
24
14
13
19
23
25
28
22
27
26
20
14
24
18
27
18
23
13
26
12
16
12
16
14
16
17
30
28
28
29
19
17
19
26
22
14
27
24
25
28
15
18
26
21
18
29
25
13
21
15
30
29
29
20
19
22
31
17
17
13
19
21
23
25
28
30
21
20
12
22
24
29

result:

FAIL Checker must end with quit or quitf call.