QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#344454#8135. Minimum Cost Flow²ucup-team2880WA 1ms3724kbC++203.0kb2024-03-04 16:27:152024-03-04 16:27:16

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3724kb

input:

4
4 4
1 2 1
2 4 1
1 3 1
3 4 1
3 3
1 2 1
1 3 1
2 3 1
5 6
1 2 1
2 3 3
2 4 1
3 4 1
3 5 1
1 5 8
4 5
1 2 1
1 3 2
2 3 1
3 4 1
4 2 8

output:

1
665496236
713031683
614304219

result:

ok 4 number(s): "1 665496236 713031683 614304219"

Test #2:

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

input:

18
3 3
3 1 716147853
2 1 865756093
3 2 749398397
9 15
7 1 928709747
9 1 692128293
8 2 960581386
6 7 744136630
4 9 233596968
9 7 190944262
3 5 289260315
3 7 164971041
1 8 664146999
5 6 436111746
4 1 780866816
7 5 366276343
8 9 28381218
9 5 140872991
9 2 196864247
4 5
3 4 839263691
2 4 940408725
1 4 4...

output:

509847883
279046442
799909987
81894899
87396695
252566082
696231300
791580749
310547727
575449008
440135980
930628345
287050173
357985276
653404982
532887171
487274780
308326199

result:

wrong answer 12th numbers differ by non-multiple of MOD, - expected: '246650056', found: '930628345'