UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#733#14. Amathematician1004675ms112732kbC++1.9kb2018-07-06 13:27:502018-07-06 13:39:38

answer


Details

小提示:点击横条可展开更详细的信息

Test #1:

score: 10
Accepted
time: 25ms
memory: 7472kb

input:

20 400 100000
4 19 865402815
7 6 702593544
6 15 122931475
8 10 870957273
9 15 96584641
11 1 59229670...

output:

80513112
103306808
47796691
60423821
23203711
95628093
80513112
82086866
44979907
103306808
47796691...

result:

ok 100000 numbers

Test #2:

score: 10
Accepted
time: 19ms
memory: 7476kb

input:

20 400 100000
5 11 982574473
18 6 470980599
15 11 910103979
16 11 596098883
1 1 210028199
4 9 158249...

output:

135607591
58158127
28055894
95326255
88919141
33530391
90987773
128575993
90987773
204365732
8891914...

result:

ok 100000 numbers

Test #3:

score: 10
Accepted
time: 159ms
memory: 26528kb

input:

500 250000 100000
214 404 30602940
49 478 923193212
15 95 844386473
375 163 370085681
201 399 627417...

output:

4988328
6095128
8929365
7096996
10575869
7572512
7250714
8783870
9654629
4811365
5239552
2864211
796...

result:

ok 100000 numbers

Test #4:

score: 10
Accepted
time: 156ms
memory: 26528kb

input:

500 250000 100000
51 212 172601000
130 433 96049894
57 189 222930797
10 357 364151590
200 381 903107...

output:

8877485
10777852
7073512
5217495
4108968
8933597
3921439
8647826
6385065
10842036
5966334
5998619
92...

result:

ok 100000 numbers

Test #5:

score: 10
Accepted
time: 492ms
memory: 112728kb

input:

3000 500000 100000
1529 868 4
2587 1970 55
2602 2631 74
2146 1442 45
2048 1840 94
1634 2431 97
1981 ...

output:

1
1
1
1
1
1
1
1
1
2
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
...

result:

ok 100000 numbers

Test #6:

score: 10
Accepted
time: 488ms
memory: 112732kb

input:

3000 500000 100000
1057 1382 50
1986 2587 39
1509 856 89
1370 1680 44
1659 2561 97
1851 2182 11
2038...

output:

1
1
1
1
1
2
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
...

result:

ok 100000 numbers

Test #7:

score: 10
Accepted
time: 840ms
memory: 112604kb

input:

3000 500000 100000
692 394 418562722
2067 2094 925998807
1521 2928 471565896
1598 2387 287480573
823...

output:

30397171
25640795
19766971
41432798
30960197
29063810
22509800
35356599
26810179
12402943
35645675
3...

result:

ok 100000 numbers

Test #8:

score: 10
Accepted
time: 817ms
memory: 112608kb

input:

3000 500000 100000
2177 1832 656000420
2989 2850 448709445
470 1339 365048027
860 2435 754717249
179...

output:

16755801
14005145
32305780
28390717
33131254
23963096
29974426
16952690
32366629
37682137
30067348
3...

result:

ok 100000 numbers

Test #9:

score: 10
Accepted
time: 836ms
memory: 112604kb

input:

3000 500000 100000
2423 2286 580760593
1006 387 493749664
48 622 324280214
1429 2311 497465693
676 1...

output:

21892753
21330162
42311507
20383496
23922760
25688009
26897858
24979524
35498526
21248186
27453461
2...

result:

ok 100000 numbers

Test #10:

score: 10
Accepted
time: 843ms
memory: 112604kb

input:

3000 500000 100000
1922 2408 205391256
2951 1733 582445920
465 404 923479893
2367 1837 613405488
907...

output:

28088078
31102818
29853721
30211342
26814605
30052282
27747749
24941193
22204658
31008031
32383092
1...

result:

ok 100000 numbers