QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#418021#8567. Cheap ConstructionZhaoZiLongML 0ms12236kbC++141.4kb2024-05-23 09:22:582024-05-23 09:23:00

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1
3
1 1
2 2
1 3

output:

1 1
1 3
3 2

result:

ok 3 lines

Test #2:

score: -100
Memory Limit Exceeded

input:

2
3
1 1
1 2
3 1
3
1 3
2 1
3 3

output:

1 1
1 1
1 2
1 1
1 3
3 3
3 1
2 3
6 3
5 1
3 3
9 3
7 1
4 3
12 3
9 1
5 3
15 3
11 1
6 3
18 3
13 1
7 3
21 3
15 1
8 3
24 3
17 1
9 3
27 3
19 1
10 3
30 3
21 1
11 3
33 3
23 1
12 3
36 3
25 1
13 3
39 3
27 1
14 3
42 3
29 1
15 3
45 3
31 1
16 3
48 3
33 1
17 3
51 3
35 1
18 3
54 3
37 1
19 3
57 3
39 1
20 3
60 3
41 1
...

result: