QOJ.ac
QOJ
The 2nd Universal Cup Finals is coming! Check out our event page, schedule, and competition rules!
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#606354 | #680. Electronical plate | 3un_larryfunc | 100 ✓ | 47ms | 768kb | Pascal | 14.0kb | 2024-10-03 01:34:57 | 2024-10-03 01:34:57 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Pretests
Final Tests
Test #1:
score: 6.25
Accepted
time: 0ms
memory: 768kb
input:
6 0 0 0 1 1 1 0 0 0 0 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 1 0 1
output:
6 11 E 16 NWN 17 SE 27 WNW 28 NWNWNN 29 S
result:
ok 7 lines
Test #2:
score: 6.25
Accepted
time: 0ms
memory: 740kb
input:
3 1 1 0 1 1 1 0 1 0
output:
0
result:
ok single line: '0'
Test #3:
score: 6.25
Accepted
time: 0ms
memory: 724kb
input:
4 1 1 1 0 0 1 0 0 1 1 1 1 1 1 1 1
output:
2 6 W 11 NE
result:
ok 3 lines
Test #4:
score: 6.25
Accepted
time: 0ms
memory: 764kb
input:
5 0 1 1 1 0 0 0 0 0 1 0 0 1 0 1 1 0 1 1 1 0 0 1 1 0
output:
3 13 WW 18 WS 19 NNWWW
result:
ok 4 lines
Test #5:
score: 6.25
Accepted
time: 2ms
memory: 736kb
input:
6 0 1 1 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 1 0 0 0 0 1 1 0 0 1 0 0 1 1 1 0 0
output:
6 10 N 14 W 17 NN 20 W 26 EENEE 29 E
result:
ok 7 lines
Test #6:
score: 6.25
Accepted
time: 2ms
memory: 764kb
input:
7 0 1 0 0 0 1 0 0 1 1 1 1 1 0 0 1 0 0 0 1 0 1 0 0 1 0 1 0 0 0 1 1 1 1 0 0 1 0 0 1 0 0 0 1 0 0 1 1 0
output:
14 9 W 10 N 11 N 12 N 13 E 16 W 20 E 27 E 31 SS 32 SS 33 NNWWSWSW 34 E 37 W 40 EE
result:
ok 15 lines
Test #7:
score: 6.25
Accepted
time: 0ms
memory: 768kb
input:
7 1 1 1 1 1 1 1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 1 0 1 1 1 1 1 0 0 1 0 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 0
output:
6 23 SSS 25 NNEEE 26 SEE 27 NE 32 WSS 39 EEE
result:
ok 7 lines
Test #8:
score: 6.25
Accepted
time: 0ms
memory: 756kb
input:
8 0 1 0 0 1 1 1 1 0 1 0 0 1 0 0 0 0 1 0 0 1 1 0 0 0 1 1 0 1 0 0 1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 1 0 0 0
output:
14 10 W 13 EEE 18 W 21 WNN 22 SENE 26 W 27 NNN 29 WSWSSS 34 W 37 EESE 42 W 45 WSS 50 W 53 EEE
result:
ok 15 lines
Test #9:
score: 6.25
Accepted
time: 0ms
memory: 728kb
input:
8 1 1 1 1 1 1 1 1 0 0 0 0 0 0 1 0 0 0 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 1 0 1 1 0 1 1 1 0 0 0 0 0
output:
13 15 E 20 WNWW 22 EE 27 WNW 28 SWWSW 30 WSEEE 31 E 44 WSWW 46 WSS 47 E 52 S 54 S 55 E
result:
ok 14 lines
Test #10:
score: 6.25
Accepted
time: 20ms
memory: 764kb
input:
8 1 1 0 1 1 0 1 1 1 0 0 0 0 0 0 0 1 0 1 0 0 0 1 0 1 1 0 0 0 0 1 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 0 1 1 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1
output:
5 19 SSENNENWWN 23 NE 31 E 37 NENNN 46 ENE
result:
ok 6 lines
Test #11:
score: 6.25
Accepted
time: 8ms
memory: 768kb
input:
8 0 1 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 1 0 0 1 0 0 0 0 1 1 1 0 0
output:
9 18 W 21 EENN 30 EE 36 WNNNN 39 E 42 W 45 NNWNNEEN 51 WW 55 E
result:
ok 10 lines
Test #12:
score: 6.25
Accepted
time: 1ms
memory: 752kb
input:
9 1 1 1 0 0 0 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1 1 1 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 1 1 1
output:
14 20 SW 21 NWW 22 NN 23 NN 25 WNN 26 SE 42 EEE 48 WW 56 SS 57 SES 59 SS 60 NWWNNWSWW 61 NEE 62 SE
result:
ok 15 lines
Test #13:
score: 6.25
Accepted
time: 3ms
memory: 720kb
input:
9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 1 0 0 0 1 1 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0
output:
16 21 NN 22 NN 23 NN 24 NN 29 NNN 33 WWSWWSW 34 NNN 43 ENNNN 53 E 58 SWWW 59 SS 60 NNWSWWSWW 61 SS 62 E 69 S 71 E
result:
ok 17 lines
Test #14:
score: 6.25
Accepted
time: 27ms
memory: 736kb
input:
10 0 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 1 0 0 1 1 0 0 0 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 1 1 0 1 1 0 0 1 1 0 0 1 1 1 1 0 1 1 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0
output:
26 12 W 17 N 18 N 19 N 33 NWW 34 NNN 35 NNN 36 NNN 38 EE 42 NW 48 EE 52 W 55 WSSSS 58 EE 65 SSS 66 NNWWWSSWW 69 E 72 W 73 SS 76 SS 77 NNNNNEEE 78 SS 79 E 82 S 87 S 89 S
result:
ok 27 lines
Test #15:
score: 6.25
Accepted
time: 47ms
memory: 724kb
input:
13 1 1 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0 0 0 0 0 0 0 1 1 0 0 0 1 1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 1 1 0 0 0 1 0 0 0 0 1...
output:
35 15 W 16 N 24 N 25 E 29 WW 30 NN 36 NN 37 EE 43 WWW 44 NNN 45 NNN 46 NNN 47 NNN 48 NNN 57 WWWW 62 NEEE 63 EE 70 WWWW 73 SESWSWSWSWSWS 76 EE 84 WWWWW 85 SWSWSWSWSWS 89 EE 96 WWWW 101 EEE 108 WWW 113 EEEE 120 WW 125 EEEEE 132 W 137 ESS 139 SS 140 EEE 149 ES 153 EES
result:
ok 36 lines
Test #16:
score: 6.25
Accepted
time: 14ms
memory: 724kb
input:
15 0 1 1 1 0 0 0 0 0 0 0 0 0 1 0 0 1 1 0 0 0 1 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 1 0 0 1 1 0 0 0 0 1 1 0 1 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0...
output:
41 17 W 18 SWW 22 N 25 N 29 E 37 WNN 40 WNN 43 NN 44 E 49 WWW 50 NNN 52 WSWWWWW 55 ENNN 57 NNN 58 EE 84 NWNNNN 85 NEEEEE 94 WWW 95 SWWWW 96 NWWWWW 97 ESSSSSSSS 100 WSSSSSSSS 101 NEEEE 102 SEEE 103 EE 112 SWWWWWW 115 ESEEEE 141 WWWWW 142 SSSSS 145 EEEEE 152 SSW 153 SSSS 154 SSSS 156 WSSSS 160 ESSSS 1...
result:
ok 42 lines