QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#658894#7014. Rikka with Grid GraphsZhaoZiLongAC ✓2515ms4548kbC++204.9kb2024-10-19 17:51:312024-10-19 17:51:31

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
2 2
+-+

+ +
2 2
+-+
|
+ +
2 2
+-+
|
+-+
2 2
+-+
| |
+-+

output:

2
4
8
14

result:

ok 4 lines

Test #2:

score: 0
Accepted
time: 2515ms
memory: 4548kb

input:

60
1 1
+
6 6
+-+-+-+-+-+
| | | | | |
+-+-+-+-+-+
| | | | | |
+-+-+-+-+-+
| | | | | |
+-+-+-+-+-+
| | | | | |
+-+-+-+-+-+
| | | | | |
+-+-+-+-+-+
6 4
+ + + +

+ + + +

+ + + +

+ + + +

+ + + +

+ + + +
4 5
+-+-+-+ +
|       |
+-+-+-+ +
  |     |
+-+ +-+ +
| |
+ + +-+ +
5 6
+ + +-+ + +
| | |   | |
+-...

output:

1
39931856138212664
1
32768
2097152
396928
1912140726272
17072685056
33681342464
1070508371744
4877910016
470169766912
181121759168
814322432
891691528874048
358663151840
1905966526844408
851738327552
191458384162304
288115586432
1368156669845336
356038587648896
3776487925133468
691176008890304
1090...

result:

ok 60 lines