QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#74260#5439. Meet in the MiddleBeyondHeaven#WA 71ms8080kbC++174.2kb2023-01-31 12:24:382023-01-31 12:24:39

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 3352kb

input:

3 4
1 2 1
2 3 2
1 2 2
2 3 1
1 1
1 2
2 1
2 2

output:

6
4
5
3

result:

ok 4 number(s): "6 4 5 3"

Test #2:

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

input:

2 1
1 2 1
1 2 1
1 1

output:

2

result:

ok 1 number(s): "2"

Test #3:

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

input:

2 1
1 2 1
1 2 1
1 2

output:

1

result:

ok 1 number(s): "1"

Test #4:

score: -100
Wrong Answer
time: 71ms
memory: 8080kb

input:

10000 50000
8101 5996 108427744
5996 7605 870838849
5996 5599 603303696
8101 3006 339377417
8101 6463 442516687
6463 5560 109174079
5560 4063 127596224
3006 1682 947915262
5996 1986 130416311
6463 5455 279771516
6463 2634 516688796
4063 3034 217886863
7605 5092 742375061
5599 2266 193804402
5092 140...

output:

466304897728
413980620016
295050708481
455532906022
259931418049
464309428844
470268201252
295159237432
335871795640
495665671636
503100891980
426554267086
453109449529
472025027604
382230227154
355474166753
318620353602
518280589036
377891644816
418601658330
361380878208
358552212132
520041906856
4...

result:

wrong answer 1st numbers differ - expected: '647838384844', found: '466304897728'