QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505468#5873. Perpetual Motionxiaowuc129 ✓1324ms6904kbC++173.8kb2024-08-05 05:36:122024-08-05 05:36:14

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 5
Accepted

Test #1:

score: 5
Accepted
time: 1ms
memory: 3624kb

input:

25
3 3
|-/
|||
--|
3 4
----
||||
\\//
4 4
|---
\-\|
\|||
|--\
4 4
----
----
----
----
4 4
|--|
--/\
|--|
--/\
4 3
|\/
/\|
|\/
/\|
3 4
\-\-
\|\|
|-|-
4 4
----
-||-
-||-
----
4 4
--\-
--\-
--\-
--\-
3 3
\--
/|\
\\/
4 4
--||
--|\
/\-\
||-|
4 4
---\
---\
-/--
-/--
3 3
///
///
///
4 4
\\\\
\\\\
\\\\
\\\\...

output:

Case #1: 2
Case #2: 0
Case #3: 16
Case #4: 256
Case #5: 16
Case #6: 4
Case #7: 8
Case #8: 16
Case #9: 64
Case #10: 2
Case #11: 16
Case #12: 64
Case #13: 8
Case #14: 256
Case #15: 16
Case #16: 256
Case #17: 2
Case #18: 16
Case #19: 0
Case #20: 2
Case #21: 4
Case #22: 4
Case #23: 256
Case #24: 16
Case...

result:

ok 25 lines

Subtask #2:

score: 24
Accepted

Test #2:

score: 24
Accepted
time: 1324ms
memory: 6904kb

input:

25
96 94
|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|
/-/-/-...

output:

Case #1: 551207
Case #2: 167345
Case #3: 2
Case #4: 578321
Case #5: 4096
Case #6: 402745
Case #7: 889396
Case #8: 16
Case #9: 12433
Case #10: 947381
Case #11: 348520
Case #12: 508506
Case #13: 98615
Case #14: 988195
Case #15: 369387
Case #16: 269980
Case #17: 4
Case #18: 539197
Case #19: 834330
Case...

result:

ok 25 lines

Extra Test:

score: 0
Extra Test Passed