QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#784596#7082. Edges Countingucup-team4645#WA 41ms49012kbC++232.0kb2024-11-26 15:27:332024-11-26 15:27:34

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 41ms
memory: 49012kb

input:

7 998244353
1
2
3
4
5
6
7

output:

0
0
3
60
1050
19380
393750

result:

ok 7 tokens

Test #2:

score: -100
Wrong Answer
time: 41ms
memory: 46976kb

input:

3000 1053818881
1256
234
2691
86
1204
2625
904
1996
2937
2621
1117
2922
299
864
2321
1836
1966
481
2514
1911
432
1807
1624
1362
1507
242
2434
2979
1244
996
506
2861
1957
1187
1199
331
2656
601
133
737
466
1904
2499
28
945
1680
2624
1318
2430
546
1342
948
835
233
84
1145
1630
1931
2992
1181
2261
2817...

output:

0
360607529
0
568608893
0
0
437735448
0
0
0
0
0
993012112
257670019
0
0
0
926028919
0
0
262035664
0
0
0
0
389316335
0
0
0
98970376
549508622
0
0
0
0
459357437
0
144545609
706802237
512648244
326314436
0
0
983905732
1034094239
0
0
0
0
260211579
0
525562940
304381157
613592025
1031623843
0
0
0
0
0
0
0...

result:

wrong answer 1st words differ - expected: '125083503', found: '0'