QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#693955#9408. Hero of the Kingdomucup-team2389TL 3ms3648kbC++23517b2024-10-31 17:01:212024-10-31 17:01:22

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3640kb

input:

3
5 2 3
8 1 5
14 36
5 2 0
8 1 3
17 6
100 1 0
10000 1 0
99 100000

output:

32
20
99

result:

ok 3 lines

Test #2:

score: 0
Accepted
time: 3ms
memory: 3608kb

input:

500
252 34074578 3386884
628907 1207868 18
279 125908043
17268783 50414369 277106
17532337 45 0
17268784 4606
5506 3465964 19
5543 4786900 7
8109756 50825
23718927 66546966 0
23718931 96 0
117090491 99433206
537909 33389755 4
537910 1362118 0
538731 3
47 117 17333
1724743 7699 402536
79710763 684241...

output:

1886244
17268784
8109756
117090495
538731
136625731
586
25929035
17864
7905961573
38782804
670869825
16635
88588674
4502
3995
6379706119
1070452
134333292
495166
324797075
156
598405696216
53895
3503164
4727693
124349483
3764139838369
2840566939118
85930522
4319452
996195
54156125533
32693
216299285...

result:

ok 500 lines

Test #3:

score: 0
Accepted
time: 1ms
memory: 3648kb

input:

500
9859 96 66
18107 8 30
9950 322595515
6685 7 72
14282 47 17
710156469 985188306
786 32 8
2933 21 57
2530 475357775
1535 61 92
9610 100 90
6051 234173340
235 86 81
5512 27 68
9835 714622972
687 56 37
3582 70 100
629389147 226582349
9168 61 11
12755 16 97
664916091 247483035
2739 64 90
5897 44 9
38...

output:

25584109990
139311465421
19256441236
11744948201
33372232765
5835380797
12193720615
13079297133
19440097830
56779063033
331648541482
2723772225
237117790
10437118404
395216971
31345418497
32698954033
11916385660
17791542518
6032738252
36336942872
32227281718
49751088535
16843534938
33842489055
27371...

result:

ok 500 lines

Test #4:

score: -100
Time Limit Exceeded

input:

500
31708734 1 0
31708735 1 0
31708734 1000000000
71574353 1 0
71574354 1 0
71574353 1000000000
46622902 1 0
46622903 1 0
46622902 1000000000
76021915 1 0
76021916 1 0
76021915 1000000000
89054722 1 0
89054723 1 0
89054722 1000000000
88299900 1 0
88299901 1 0
88299900 1000000000
82784529 1 0
8278453...

output:


result: