QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#670779#7680. SubwaygoodmanWA 1ms6188kbC++142.9kb2024-10-24 01:03:192024-10-24 01:03:19

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
1 2 1
2 1 2
3 3 2

output:

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

result:

ok ok Sum L = 18

Test #2:

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

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: 5992kb

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: 6188kb

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
47 10040 -1 961 -919 10106 -1 10131 -50000 10156 -1 -306 -897 10242 -1 10319 -154000 10396 -1 -371 -812 10482 -1 10507 -50000 10532 -1 -885 -775 10574 -1 10601 -54000 10628 -1 -462 -719 10646 -1 10647 -2000 10648 -1 202 -702 10668 -1 10687 -38000 10706 -1 -870 -697 10806 -1 10927 -242000 11048 -1...

result:

wrong answer Self-intersecting polyline 1.