QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#596644#3669. Counting StairsGuanYunchangTL 1ms3792kbC++98977b2024-09-28 16:10:442024-09-28 16:10:44

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
3
5
17
25

output:

1
1
5
12

result:

ok 4 number(s): "1 1 5 12"

Test #2:

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

input:

10
1
2
3
4
5
6
7
8
9
10

output:

1
0
1
1
1
1
1
2
2
2

result:

ok 10 numbers

Test #3:

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

input:

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

output:

1
0
1
1
1
1
1
2
2
2
2
3
3
3
4
5
5
5
6
7
8
8
9
11
12
12
14
16
17
18
20
23
25
26
29
33
35
37
41
46
49
52
57
63
68
72
78
87
93
98
107
117
125
133
144
157
168
178
192
209
223
236
255
276
294
312
335
361
385
408
437
471
501
530
568
609
647
686
732
784
833
881
939
1004
1065
1126
1199
1279
1355
1433
1523
1...

result:

ok 100 numbers

Test #4:

score: -100
Time Limit Exceeded

input:

1000
1
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
0
1
1
1
1
1
2
2
2
2
3
3
3
4
5
5
5
6
7
8
8
9
11
12
12
14
16
17
18
20
23
25
26
29
33
35
37
41
46
49
52
57
63
68
72
78
87
93
98
107
117
125
133
144
157
168
178
192
209
223
236
255
276
294
312
335
361
385
408
437
471
501
530
568
609
647
686
732
784
833
881
939
1004
1065
1126
1199
1279
1355
1433
1523
1...

result: