QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#456635#8132. Freshman's DreamZhaoZiLongAC ✓208ms3636kbC++201.9kb2024-06-28 09:52:242024-06-28 09:52:26

详细

Test #1:

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

input:

5
2
3
6
10
18

output:

1152921504606846973 1
-1
1152921504606846971 1
1152921504606846965 5
1152921504606846957 9

result:

ok ok

Test #2:

score: 0
Accepted
time: 195ms
memory: 3568kb

input:

100000
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101...

output:

1152921504606846973 1
-1
1152921504606846971 2
-1
1152921504606846971 1
-1
1152921504606846967 4
-1
1152921504606846965 5
-1
1152921504606846967 2
-1
1152921504606846967 1
-1
1152921504606846959 8
-1
1152921504606846957 9
-1
1152921504606846955 10
-1
1152921504606846955 9
-1
1152921504606846959 4
-1...

result:

ok ok

Test #3:

score: 0
Accepted
time: 197ms
memory: 3636kb

input:

100000
76316
55087
1035148
480523
322879
607749
440658
434700
941531
657517
247448
953385
569641
592597
188131
769378
397552
94739
487375
142576
407344
532339
798526
521099
294428
414998
415977
646853
941103
21816
299379
1029240
171218
784108
711027
121363
223925
197035
899124
613355
178257
213375
3...

output:

1152921504606770671 38146
-1
1152921504606320119 9282
-1
-1
-1
1152921504606543533 83113
1152921504606543351 86274
-1
-1
1152921504606714735 8516
-1
-1
-1
-1
1152921504606183101 279185
1152921504606580607 67592
-1
-1
1152921504606705535 70152
1152921504606575583 67720
-1
1152921504606312415 135297
-...

result:

ok ok

Test #4:

score: 0
Accepted
time: 207ms
memory: 3544kb

input:

100000
279938093875
699023415517
1048269983590
537007992988
908117019805
683806387338
334400705624
484515916103
888494261285
220468538805
253319179778
357268673752
644637898889
919322454545
854350801341
1022830170092
486578580191
750669735889
4206967959
937169662800
852140555915
924210466276
2534095...

output:

-1
-1
1152920937385785275 43086069905
1152921225296994159 10805856322
-1
1152920885526968181 277176685125
1152921190770863023 146635631140
-1
-1
-1
1152921356388530173 21558726913
1152921151738981231 174233528868
-1
-1
-1
1152920919865751543 73326010386
-1
-1
-1
1152920876968435119 159053580456
-1
1...

result:

ok ok

Test #5:

score: 0
Accepted
time: 208ms
memory: 3628kb

input:

100000
1040995214518856201
963834979320064344
718413469456747239
720594233881658007
133510227004253867
342816554559204856
24244360004792499
32003367585596768
68757795892900724
211638297745299764
478782413658379896
503496146580989968
288072253164348517
131667719615682949
186429177128265488
6043925869...

output:

-1
486350789824738991 184653225122075812
-1
-1
-1
828370874803418879 153142352523825668
-1
1134587677962123967 2332142851924624
1115691417849552315 2851188810844298
970523481667923675 76578874066273418
818386222571842495 95144075205814532
828517118547818479 72656312768533512
-1
-1
967055311896566767...

result:

ok ok

Test #6:

score: 0
Accepted
time: 0ms
memory: 3600kb

input:

1
1152921504606846975

output:

-1

result:

ok ok

Extra Test:

score: 0
Extra Test Passed