QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#134145#5724. Glow, Little Pixel, Glowlmq26052003AC ✓103ms10408kbC++201.1kb2023-08-03 09:33:362023-08-03 09:33:40

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3560kb

input:

4
h 1 4 1
v 2 4 2
h 10 2 2
v 11 2 3

output:

2

result:

ok single line: '2'

Test #2:

score: 0
Accepted
time: 1ms
memory: 3336kb

input:

4
h 1 10 1
h 5 10 2
v 1 10 1
v 5 10 3

output:

4

result:

ok single line: '4'

Test #3:

score: 0
Accepted
time: 1ms
memory: 3460kb

input:

7
v 1 3 1
v 1 15 2
h 4 5 1
h 5 5 2
h 6 5 3
h 7 5 4
h 8 5 5

output:

5

result:

ok single line: '5'

Test #4:

score: 0
Accepted
time: 0ms
memory: 3456kb

input:

2
h 200000 200000 100000
v 1 200000 100000

output:

1

result:

ok single line: '1'

Test #5:

score: 0
Accepted
time: 1ms
memory: 3620kb

input:

2
h 200000 200000 100000
v 1 100000 100000

output:

0

result:

ok single line: '0'

Test #6:

score: 0
Accepted
time: 1ms
memory: 3408kb

input:

4
h 1 5 1
h 1 5 2
h 1 5 3
h 1 5 4

output:

0

result:

ok single line: '0'

Test #7:

score: 0
Accepted
time: 0ms
memory: 3404kb

input:

4
v 1 5 1
v 1 5 2
v 1 5 3
v 1 5 4

output:

0

result:

ok single line: '0'

Test #8:

score: 0
Accepted
time: 103ms
memory: 10260kb

input:

200000
h 1 1 1
v 1 1 1
h 2 1 2
v 2 1 2
h 3 1 3
v 3 1 3
h 4 1 4
v 4 1 4
h 5 1 5
v 5 1 5
h 6 1 6
v 6 1 6
h 7 1 7
v 7 1 7
h 8 1 8
v 8 1 8
h 9 1 9
v 9 1 9
h 10 1 10
v 10 1 10
h 11 1 11
v 11 1 11
h 12 1 12
v 12 1 12
h 13 1 13
v 13 1 13
h 14 1 14
v 14 1 14
h 15 1 15
v 15 1 15
h 16 1 16
v 16 1 16
h 17 1 17...

output:

10000000000

result:

ok single line: '10000000000'

Test #9:

score: 0
Accepted
time: 86ms
memory: 10408kb

input:

200000
h 1 1 1
v 1 1 1
h 1 1 2
v 1 1 2
h 1 1 3
v 1 1 3
h 1 1 4
v 1 1 4
h 1 1 5
v 1 1 5
h 1 1 6
v 1 1 6
h 1 1 7
v 1 1 7
h 1 1 8
v 1 1 8
h 1 1 9
v 1 1 9
h 1 1 10
v 1 1 10
h 1 1 11
v 1 1 11
h 1 1 12
v 1 1 12
h 1 1 13
v 1 1 13
h 1 1 14
v 1 1 14
h 1 1 15
v 1 1 15
h 1 1 16
v 1 1 16
h 1 1 17
v 1 1 17
h 1 1...

output:

100000

result:

ok single line: '100000'

Test #10:

score: 0
Accepted
time: 1ms
memory: 3460kb

input:

10
v 62479 159199 50330
h 85112 121329 7136
h 14743 90327 25271
v 195363 36506 26660
h 20079 194705 81645
v 90552 18516 78273
h 44788 35948 24379
v 111209 69170 26300
h 7024 182643 15897
h 54756 177278 66185

output:

17

result:

ok single line: '17'

Test #11:

score: 0
Accepted
time: 1ms
memory: 3632kb

input:

100
v 197220 162691 14707
v 86838 169398 18804
v 106351 178788 45887
v 109297 119172 86773
v 88744 20141 61992
h 136539 45508 30815
h 117775 137052 94023
h 68415 81730 9243
v 84100 116634 65531
h 123971 39372 32491
v 33206 83477 95261
h 123269 176682 61157
h 24282 42330 16505
v 127017 189891 77278
v...

output:

1503

result:

ok single line: '1503'

Test #12:

score: 0
Accepted
time: 2ms
memory: 3492kb

input:

1000
v 37512 6607 88007
h 32890 120392 43381
v 100032 37029 933
h 123672 11968 19165
v 45899 199586 88523
v 22329 25826 41433
v 31780 44298 15834
h 159879 50989 47297
h 137139 134406 92651
h 167832 191258 56673
v 165850 129861 89401
v 149076 141534 96119
h 119135 62811 94801
h 156570 36897 20875
h 1...

output:

160174

result:

ok single line: '160174'

Test #13:

score: 0
Accepted
time: 8ms
memory: 3788kb

input:

10000
v 119319 145824 54085
v 112008 99213 29404
h 183043 15219 14009
v 164496 82980 95695
h 139109 166430 84574
v 76201 143201 71762
v 184360 24631 63844
h 13848 194562 24418
h 101763 6194 81941
v 8766 29667 31626
h 76091 134996 55243
h 66835 153168 57111
v 30918 100710 7303
v 136242 138651 48195
v...

output:

15862961

result:

ok single line: '15862961'

Test #14:

score: 0
Accepted
time: 77ms
memory: 6352kb

input:

100000
v 89321 114215 98816
h 14486 141771 14307
v 81642 34187 95704
h 143826 73969 66415
v 104439 16404 65519
v 126397 11861 51669
v 179937 93576 31203
h 112022 118591 16787
v 180358 151138 50779
v 50873 131116 96099
h 137341 162300 93429
h 197164 113089 58042
v 72697 65094 82289
v 70656 130501 748...

output:

1574402626

result:

ok single line: '1574402626'

Test #15:

score: 0
Accepted
time: 2ms
memory: 3416kb

input:

500
h 103692 188279 66654
h 52680 110279 86592
v 88156 121126 63625
v 60239 49075 34635
v 88177 158996 52818
v 166562 55330 87772
v 13338 191173 63868
v 192522 121124 68209
v 104667 137206 87371
v 93913 180513 711
h 304 13205 54081
h 121390 193668 12214
v 122503 40144 80841
v 38227 153757 54649
v 17...

output:

40467

result:

ok single line: '40467'

Test #16:

score: 0
Accepted
time: 5ms
memory: 3464kb

input:

5000
v 156241 49829 83364
h 154784 197086 94706
h 3086 183205 85184
v 197015 157134 51839
h 92190 102536 11768
h 85929 20591 65671
h 65206 158744 71156
v 141043 60584 865
h 49864 113629 88378
h 58150 125177 33405
v 86586 148358 33874
v 5203 138692 86929
v 26421 63952 93638
v 126003 75783 67276
v 936...

output:

3980841

result:

ok single line: '3980841'

Test #17:

score: 0
Accepted
time: 35ms
memory: 4744kb

input:

50000
h 196487 24560 25032
v 139127 134448 83296
h 191722 99628 18072
h 178235 40724 13569
v 62912 64598 84058
h 179351 158128 23674
v 16986 91231 64800
h 47904 116784 1361
v 37042 156746 61210
v 134587 17115 80394
h 129269 66374 28132
h 76564 170222 5790
v 91196 117899 35889
h 96463 161029 22270
v ...

output:

394793141

result:

ok single line: '394793141'