QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#785029#7082. Edges Countingucup-team4645#WA 40ms48760kbC++232.0kb2024-11-26 16:40:012024-11-26 16:40:05

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 40ms
memory: 46972kb

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: 40ms
memory: 48760kb

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
23075487
0
600297359
0
0
1023237336
0
0
0
0
0
332697059
565318091
0
0
0
284927482
0
0
853964140
0
0
0
0
531469393
0
0
0
176490962
74465721
0
0
0
0
778643833
0
685023913
144023215
77583653
625018126
0
0
712173657
855795702
0
0
0
0
745326178
0
618572106
919854185
186441924
301065779
0
0
0
0
0
0
0
0
...

result:

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