QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#42781#4477. Pandaemonium Asphodelos: The First Circle (Savage)larryzhongAC ✓761ms38576kbC++172.7kb2022-08-03 19:07:362022-08-03 19:07:54

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 761ms
memory: 38576kb

input:

16
16 12
3 10 16
4 2
1 1 6
1 5 6
1 9 7
1 15 7
2 2 10
2 2 13
3 1 16
4 16
4 9
4 4
100 10
3 52 336470888
2 46 95
4 98
3 3 971207868
2 6 18
2 27 38
3 68 717268783
4 69
4 30
2 2 54
100000000 100
3 23264237 374288891
1 51244358 31960832
3 66089174 543529670
3 19728747 580543238
3 68188689 490702144
1 3862...

output:

16
32
32
16
336470888
2024947539
2024947539
1989063943
1989063943
3947292200
2332517148
3947292200
2332517148
2332517148
2173902728
3154913316
3154913316
7792501902
5025837134
5196716262
7081781397
5196716262
6177726850
7031735014
7081781397
7081781397
7589349584
10153736164
9944646904
12358787010
9...

result:

ok 166382 lines