QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#344464#8135. Minimum Cost Flow²ucup-team2880WA 2ms7676kbC++203.9kb2024-03-04 16:48:052024-03-04 16:48:05

详细

Test #1:

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

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: 2ms
memory: 7676kb

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
-206324276
-292560608
-164617756
-490993359
-814940528
696231300
-894405195
-606725632
575449008
815301924
962495434
959528233
-906849402
653404982
532887171
-94425714
278689192

result:

wrong answer 2nd numbers differ by non-multiple of MOD, - expected: '279046442', found: '-206324276'