QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#670772#7680. SubwaygoodmanWA 1ms6096kbC++142.6kb2024-10-24 00:55:002024-10-24 00:55:00

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
1 2 1
2 1 2
3 3 2

output:

2
7 10000 -1 2 1 10004 -1 10009 -10000 10014 -1 3 3 10018 -1 
11 10002 -1 2 1 10006 -1 10007 -2000 10008 -1 1 2 10010 -1 10011 -2000 10012 -1 3 3 10016 -1 

result:

ok ok Sum L = 18

Test #2:

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

input:

1
1 1 1

output:

1
3 10000 -1 1 1 10002 -1 

result:

ok ok Sum L = 3

Test #3:

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

input:

1
1 1 50

output:

50
3 10000 -1 1 1 10100 -1 
3 10002 -1 1 1 10102 -1 
3 10004 -1 1 1 10104 -1 
3 10006 -1 1 1 10106 -1 
3 10008 -1 1 1 10108 -1 
3 10010 -1 1 1 10110 -1 
3 10012 -1 1 1 10112 -1 
3 10014 -1 1 1 10114 -1 
3 10016 -1 1 1 10116 -1 
3 10018 -1 1 1 10118 -1 
3 10020 -1 1 1 10120 -1 
3 10022 -1 1 1 10122 -...

result:

ok ok Sum L = 150

Test #4:

score: -100
Wrong Answer
time: 1ms
memory: 6096kb

input:

50
662 -567 48
728 -120 7
307 669 27
-885 -775 21
100 242 9
-784 -537 41
940 198 46
736 -551 30
-449 456 16
-945 382 18
-182 810 49
213 187 44
853 245 48
617 -305 19
-81 261 3
617 208 8
-548 -652 6
-888 -667 14
-371 -812 43
202 -702 10
-668 -725 5
961 -919 33
-870 -697 50
428 810 29
560 405 7
348 -3...

output:

50
19 10000 -1 961 -919 10066 -1 10131 -130000 10196 -1 -306 -897 10282 -1 10351 -138000 10420 -1 -371 -812 10506 -1 10639 -266000 10772 -1 -870 -697 10872 -1 11287 -830000 11702 -1 -3 -296 11802 -1 
27 10002 -1 961 -919 10068 -1 10131 -126000 10194 -1 -306 -897 10280 -1 10349 -138000 10418 -1 -371 ...

result:

wrong answer Self-intersecting polyline 1.