QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#344814#4116. 约数个数和Milmon100 ✓205ms4980kbC++141.3kb2024-03-05 14:20:012024-03-05 14:20:01

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 10
Accepted
time: 12ms
memory: 4940kb

input:

50000
79 40
65 59
71 5
12 96
67 45
51 93
90 50
22 63
69 9
3 67
3 67
95 43
68 58
25 27
93 5
38 97
38 91
10 76
89 57
9 84
79 96
92 45
34 71
85 61
74 61
76 84
59 44
1 92
37 83
75 58
49 34
9 75
40 49
95 99
85 75
45 36
49 58
40 29
25 50
74 57
6 2
19 66
1 31
18 94
32 73
7 73
1 41
94 23
93 68
76 20
24 21
3...

output:

42628
53373
2630
12277
40391
69389
65479
15563
5565
1273
1273
57272
55695
6447
3661
50629
47170
7282
75140
7100
121860
59344
30372
77292
65072
99548
33249
435
40654
62622
19465
6166
24040
156944
99138
19338
37471
12550
13782
60387
37
13542
113
19617
29372
4263
160
25995
98054
17306
4572
20585
53373
...

result:

ok 50000 lines

Test #2:

score: 10
Accepted
time: 15ms
memory: 4884kb

input:

50000
72 53
29 24
51 86
32 53
6 92
72 43
83 24
93 25
74 15
89 3
43 6
9 36
54 86
23 95
25 80
32 99
40 17
81 16
40 18
35 44
16 50
40 52
77 76
80 55
59 35
23 40
81 11
17 62
73 46
72 49
7 59
99 67
76 79
7 56
25 26
27 22
5 91
87 93
28 6
89 18
57 88
3 73
95 76
39 88
10 98
60 74
26 73
53 84
1 46
96 82
5 38...

output:

53472
6701
63075
19828
4814
41597
24094
29029
11657
1786
1903
2569
67583
26281
24324
42314
6439
14324
7069
17722
7994
25949
89280
63652
25088
9367
8624
10817
45861
48924
3263
103546
91826
3119
6159
5523
3575
131327
1138
18304
74654
1416
114444
46636
9856
64409
22712
64050
186
127912
1229
5483
122576...

result:

ok 50000 lines

Test #3:

score: 10
Accepted
time: 0ms
memory: 4980kb

input:

10
391 198
238 34
123 491
498 425
729 812
801 656
807 409
633 164
163 471
456 965

output:

1864101
127326
1379507
5955104
19265966
16818685
9875761
2589821
1833086
13712941

result:

ok 10 lines

Test #4:

score: 10
Accepted
time: 1ms
memory: 4880kb

input:

10
171 255
370 800
863 532
774 904
348 202
828 681
69 379
969 161
382 689
533 917

output:

959265
8716901
14411181
23295787
1662989
18229504
515189
4121008
7619351
15467211

result:

ok 10 lines

Test #5:

score: 10
Accepted
time: 2ms
memory: 4960kb

input:

10
110 175
546 311
28 996
832 30
352 132
531 869
264 695
673 234
852 826
124 496

output:

366909
4610107
525697
467808
1029411
14486076
5027568
4218942
23455793
1412924

result:

ok 10 lines

Test #6:

score: 10
Accepted
time: 0ms
memory: 4932kb

input:

10
28744 33192
24766 37565
42850 29653
7369 11339
974 35371
33909 24988
47624 38822
30745 7920
3805 38114
6996 8237

output:

70469021240
68535784782
96299222923
4875004863
1765534322
61896508921
144900079966
15755899694
8834244828
3237984818

result:

ok 10 lines

Test #7:

score: 10
Accepted
time: 1ms
memory: 4856kb

input:

10
18683 8113
33943 46075
42015 28118
30427 5465
3210 2069
18379 35177
30818 27370
30448 27994
32508 14251
43587 48816

output:

9382988457
120750143526
88929625873
10332323759
293344782
46032993501
61604489006
62310747212
31958133316
168842825183

result:

ok 10 lines

Test #8:

score: 10
Accepted
time: 201ms
memory: 4980kb

input:

50000
23548 14130
43163 10329
10837 24774
19732 25775
32831 10540
14757 46296
33946 47265
28752 25911
45461 10538
11459 49558
32576 4413
41261 15073
32868 22212
26120 5628
37912 18493
39512 9704
28261 36759
4538 40576
26932 49735
38145 20722
40343 9291
31221 16180
14334 49454
3005 26292
25203 2373
3...

output:

22263236135
30549582257
17580234315
35438504483
23186637650
48804226182
124158690095
53791834694
33044988064
39802427661
8780809802
44069219868
52604105948
9036838490
50287837490
25906658567
77316188981
11505078858
101941450995
57341894786
25257799609
35149410921
50783785269
4530754238
3322738600
10...

result:

ok 50000 lines

Test #9:

score: 10
Accepted
time: 205ms
memory: 4924kb

input:

50000
45255 40050
2339 839
28234 23239
42023 20901
36068 27238
48459 7484
34141 4813
28456 27753
42931 36675
48049 39136
12080 17229
1091 13970
32771 11119
687 18452
49267 17374
9052 24361
28241 23966
12775 11147
8222 46575
9551 33629
10090 40517
28253 14283
26952 10879
34890 48053
35238 36878
47636...

output:

141805144081
74350250
46820444651
64322810458
72745877911
24288175408
10174179107
57332643349
121663273913
147595870114
13312481559
726432915
24541362811
583339461
62458244156
14157623704
48436015379
8774994058
25807198992
21351433316
27793310365
27492654176
19357305875
130251156703
98705671099
9347...

result:

ok 50000 lines

Test #10:

score: 10
Accepted
time: 201ms
memory: 4792kb

input:

50000
21035 17107
8471 37606
28741 26280
299 8380
47455 36628
3486 31509
46403 12550
17792 49750
6150 11662
6126 19088
6651 31014
29098 40200
41180 38452
27036 18552
4417 13862
40782 44413
11342 24045
25261 28632
49631 31205
16414 46809
33575 8860
10759 3937
40473 38081
37687 26950
40765 42815
8143 ...

output:

24268843769
21132428989
54611580664
94204580
135469472400
6516906498
40952726357
64790770324
4119315195
7042305751
13112675953
87993833605
122408530301
34902993891
3450412297
141705596199
17889979046
52082648924
119440121444
55503526124
19624760062
2297699617
118868959650
75432984833
136097458402
50...

result:

ok 50000 lines