QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#318134#8132. Freshman's DreamHuangHanShengWA 13ms3764kbC++20420b2024-01-30 16:15:392024-01-30 16:15:40

詳細信息

Test #1:

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

input:

5
2
3
6
10
18

output:

1 1
-1
3 1
5 3
9 7

result:

ok ok

Test #2:

score: 0
Accepted
time: 13ms
memory: 3764kb

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:

1 1
-1
2 2
-1
3 1
-1
4 4
-1
5 3
-1
6 2
-1
7 1
-1
8 8
-1
9 7
-1
10 6
-1
11 5
-1
12 4
-1
13 3
-1
14 2
-1
15 1
-1
16 16
-1
17 15
-1
18 14
-1
19 13
-1
20 12
-1
21 11
-1
22 10
-1
23 9
-1
24 8
-1
25 7
-1
26 6
-1
27 5
-1
28 4
-1
29 3
-1
30 2
-1
31 1
-1
32 32
-1
33 31
-1
34 30
-1
35 29
-1
36 28
-1
37 27
-1
...

result:

ok ok

Test #3:

score: 0
Accepted
time: 13ms
memory: 3616kb

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:

38158 27378
-1
517574 6714
-1
-1
-1
220329 41815
217350 44794
-1
-1
123724 7348
-1
-1
-1
-1
384689 139599
198776 63368
-1
-1
71288 59784
203672 58472
-1
399263 125025
-1
147214 114930
207499 54645
-1
-1
-1
10908 5476
-1
514620 9668
85609 45463
392054 132234
-1
-1
-1
-1
449562 74726
-1
-1
-1
163210 9...

result:

ok ok

Test #4:

score: -100
Wrong Answer
time: 6ms
memory: 3740kb

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
-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
-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
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
...

result:

wrong answer jury has answer but participant doesn't