QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#141836#7000. Vertex CoversdoiAC ✓626ms5832kbC++232.2kb2023-08-18 02:44:522023-08-18 02:44:54

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3712kb

input:

2
4 3 998244353
1 1 1 1
1 2
2 3
3 4
4 6 998244353
1 1 1 1
1 2
1 3
1 4
2 3
2 4
3 4

output:

Case #1: 8
Case #2: 5

result:

ok 6 tokens

Test #2:

score: 0
Accepted
time: 626ms
memory: 5832kb

input:

3600
1 0 998244353
998244352
16 31 193411369
477207229 916703640 909302166 983274717 229397084 41101796 919088033 402794328 895812312 179725422 695677808 217739795 505014052 547307364 769345425 697015651
3 16
12 13
15 8
1 8
6 8
16 8
8 9
1 14
12 11
9 7
4 10
7 14
12 6
15 11
1 9
7 8
6 2
5 7
10 15
7 16
...

output:

Case #1: 0
Case #2: 142481032
Case #3: 65117134
Case #4: 18385980
Case #5: 95452795
Case #6: 281761355
Case #7: 731368257
Case #8: 179220326
Case #9: 355361021
Case #10: 257021139
Case #11: 82188770
Case #12: 153686063
Case #13: 335641809
Case #14: 233530174
Case #15: 387074080
Case #16: 173230111
C...

result:

ok 10800 tokens