QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#108535#4491. Find the Number of PathsMaMengQiTL 0ms0kbC++143.8kb2023-05-25 14:06:582023-05-25 14:07:02

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Time Limit Exceeded

input:

14
3 2
1 2

3 1
1 2

7 10
1 1 4 5 1 4

2 1
998244352

18 32
1 0 1 0 1 0 0 0 0 1 1 1 0 0 0 0 1

188 19
633886818 153877981 415015507 40745200 269787796 274990221 297547338 934403707 463583160 490465672 641355195 897012511 641637182 821068661 614724038 55504516 717220803 796828809 578138752 516258420 ...

output:

5 0 2 
409663694 257824498 842861758 
224334521 645968612 986157727 546299091 253300863 813568900 291194609 
0 1 
207902489 101145501 645866265 720194951 906259454 68739848 275255384 890058004 37826824 622126996 133630353 237745816 635802715 576405348 174316543 217379036 889707599 68756671 
79716426...

result: