QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#387494#6791. Domino Tilingucup-team1005AC ✓14ms3872kbC++203.8kb2024-04-12 16:03:462024-04-12 16:03:47

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
1 1
4 3
4 4

output:

Impossible!
3 3 1
5 6 1
5 6 2
4 4 2
7 3 3 1
7 5 6 1
8 5 6 2
8 4 4 2

result:

ok 3 cases

Test #2:

score: 0
Accepted
time: 14ms
memory: 3656kb

input:

1839
1 1
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
1 20
1 21
1 22
1 23
1 24
1 25
1 26
1 27
1 28
1 29
1 30
1 31
1 32
1 33
1 34
1 35
1 36
1 37
1 38
1 39
1 40
2 1
2 2
2 3
2 4
2 5
2 6
2 7
2 8
2 9
2 10
2 11
2 12
2 13
2 14
2 15
2 16
2 17
2 18
2 19
2 20
2 21
2 22
2 2...

output:

Impossible!
1 1
Impossible!
1 1 2 2
Impossible!
1 1 2 2 3 3
Impossible!
1 1 2 2 3 3 4 4
Impossible!
1 1 2 2 3 3 4 4 5 5
Impossible!
1 1 2 2 3 3 4 4 5 5 6 6
Impossible!
1 1 2 2 3 3 4 4 5 5 6 6 7 7
Impossible!
1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8
Impossible!
1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9
Impossible!
...

result:

ok 1839 cases