Task: | Epic Subset |
Sender: | Piltit |
Submission time: | 2019-05-25 15:33:37 +0300 |
Language: | C++ |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.01 s | details |
#2 | ACCEPTED | 0.03 s | details |
#3 | ACCEPTED | 0.02 s | details |
#4 | ACCEPTED | 0.01 s | details |
#5 | ACCEPTED | 0.02 s | details |
#6 | ACCEPTED | 0.02 s | details |
#7 | ACCEPTED | 0.02 s | details |
#8 | ACCEPTED | 0.01 s | details |
#9 | ACCEPTED | 0.01 s | details |
#10 | ACCEPTED | 0.01 s | details |
#11 | ACCEPTED | 0.03 s | details |
#12 | ACCEPTED | 0.01 s | details |
#13 | ACCEPTED | 0.01 s | details |
#14 | ACCEPTED | 0.03 s | details |
#15 | ACCEPTED | 0.01 s | details |
#16 | ACCEPTED | 0.02 s | details |
#17 | ACCEPTED | 0.02 s | details |
#18 | ACCEPTED | 0.02 s | details |
#19 | WRONG ANSWER | 0.02 s | details |
#20 | WRONG ANSWER | 0.02 s | details |
#21 | ACCEPTED | 0.02 s | details |
#22 | ACCEPTED | 0.02 s | details |
#23 | ACCEPTED | 0.02 s | details |
#24 | ACCEPTED | 0.02 s | details |
#25 | WRONG ANSWER | 0.01 s | details |
#26 | WRONG ANSWER | 0.02 s | details |
#27 | WRONG ANSWER | 0.03 s | details |
#28 | WRONG ANSWER | 0.02 s | details |
#29 | WRONG ANSWER | 0.01 s | details |
#30 | WRONG ANSWER | 0.02 s | details |
#31 | WRONG ANSWER | 0.02 s | details |
#32 | WRONG ANSWER | 0.03 s | details |
#33 | WRONG ANSWER | 0.02 s | details |
#34 | ACCEPTED | 0.01 s | details |
#35 | WRONG ANSWER | 0.02 s | details |
#36 | WRONG ANSWER | 0.01 s | details |
#37 | WRONG ANSWER | 0.02 s | details |
#38 | WRONG ANSWER | 0.02 s | details |
#39 | WRONG ANSWER | 0.02 s | details |
#40 | WRONG ANSWER | 0.01 s | details |
#41 | WRONG ANSWER | 0.03 s | details |
#42 | WRONG ANSWER | 0.02 s | details |
#43 | WRONG ANSWER | 0.02 s | details |
#44 | WRONG ANSWER | 0.02 s | details |
#45 | WRONG ANSWER | 0.02 s | details |
#46 | WRONG ANSWER | 0.02 s | details |
#47 | WRONG ANSWER | 0.02 s | details |
#48 | WRONG ANSWER | 0.03 s | details |
#49 | WRONG ANSWER | 0.03 s | details |
#50 | WRONG ANSWER | 0.03 s | details |
#51 | WRONG ANSWER | 0.02 s | details |
#52 | WRONG ANSWER | 0.02 s | details |
#53 | WRONG ANSWER | 0.03 s | details |
#54 | WRONG ANSWER | 0.03 s | details |
#55 | WRONG ANSWER | 0.02 s | details |
#56 | WRONG ANSWER | 0.01 s | details |
#57 | WRONG ANSWER | 0.03 s | details |
#58 | WRONG ANSWER | 0.01 s | details |
#59 | WRONG ANSWER | 0.03 s | details |
#60 | WRONG ANSWER | 0.01 s | details |
#61 | WRONG ANSWER | 0.02 s | details |
#62 | WRONG ANSWER | 0.01 s | details |
#63 | WRONG ANSWER | 0.03 s | details |
#64 | WRONG ANSWER | 0.01 s | details |
#65 | WRONG ANSWER | 0.01 s | details |
#66 | WRONG ANSWER | 0.02 s | details |
#67 | WRONG ANSWER | 0.03 s | details |
#68 | WRONG ANSWER | 0.02 s | details |
#69 | WRONG ANSWER | 0.03 s | details |
#70 | WRONG ANSWER | 0.02 s | details |
#71 | WRONG ANSWER | 0.02 s | details |
#72 | WRONG ANSWER | 0.02 s | details |
#73 | WRONG ANSWER | 0.02 s | details |
#74 | WRONG ANSWER | 0.02 s | details |
#75 | WRONG ANSWER | 0.02 s | details |
#76 | WRONG ANSWER | 0.03 s | details |
#77 | WRONG ANSWER | 0.02 s | details |
#78 | WRONG ANSWER | 0.01 s | details |
#79 | WRONG ANSWER | 0.01 s | details |
#80 | WRONG ANSWER | 0.02 s | details |
Code
#include <iostream> #include <vector> using namespace std; int f[9] = {1, 2, 3, 5, 8, 13, 21, 34, 55}; vector<int> v; int main() { int n; cin >> n; for (int i = 0; i < n; i++) { if (f[i] > n) break; v.push_back(f[i]); } cout << v.size() << endl; for (auto u : v) cout << u << ' '; cout << endl; }
Test details
Test 1
Verdict: ACCEPTED
input |
---|
1 |
correct output |
---|
1 1 |
user output |
---|
1 1 |
Test 2
Verdict: ACCEPTED
input |
---|
2 |
correct output |
---|
2 1 2 |
user output |
---|
2 1 2 |
Test 3
Verdict: ACCEPTED
input |
---|
3 |
correct output |
---|
3 1 2 3 |
user output |
---|
3 1 2 3 |
Test 4
Verdict: ACCEPTED
input |
---|
4 |
correct output |
---|
3 1 3 4 |
user output |
---|
3 1 2 3 |
Test 5
Verdict: ACCEPTED
input |
---|
5 |
correct output |
---|
4 1 3 4 5 |
user output |
---|
4 1 2 3 5 |
Test 6
Verdict: ACCEPTED
input |
---|
6 |
correct output |
---|
4 1 3 5 6 |
user output |
---|
4 1 2 3 5 |
Test 7
Verdict: ACCEPTED
input |
---|
7 |
correct output |
---|
4 1 3 6 7 |
user output |
---|
4 1 2 3 5 |
Test 8
Verdict: ACCEPTED
input |
---|
8 |
correct output |
---|
5 1 4 6 7 8 |
user output |
---|
5 1 2 3 5 8 |
Test 9
Verdict: ACCEPTED
input |
---|
9 |
correct output |
---|
5 1 3 5 8 9 |
user output |
---|
5 1 2 3 5 8 |
Test 10
Verdict: ACCEPTED
input |
---|
10 |
correct output |
---|
5 1 3 5 9 10 |
user output |
---|
5 1 2 3 5 8 |
Test 11
Verdict: ACCEPTED
input |
---|
11 |
correct output |
---|
5 1 3 5 10 11 |
user output |
---|
5 1 2 3 5 8 |
Test 12
Verdict: ACCEPTED
input |
---|
12 |
correct output |
---|
5 1 3 5 11 12 |
user output |
---|
5 1 2 3 5 8 |
Test 13
Verdict: ACCEPTED
input |
---|
13 |
correct output |
---|
6 1 4 7 11 12 13 |
user output |
---|
6 1 2 3 5 8 13 |
Test 14
Verdict: ACCEPTED
input |
---|
14 |
correct output |
---|
6 1 3 5 8 13 14 |
user output |
---|
6 1 2 3 5 8 13 |
Test 15
Verdict: ACCEPTED
input |
---|
15 |
correct output |
---|
6 1 3 5 8 14 15 |
user output |
---|
6 1 2 3 5 8 13 |
Test 16
Verdict: ACCEPTED
input |
---|
16 |
correct output |
---|
6 1 3 5 8 15 16 |
user output |
---|
6 1 2 3 5 8 13 |
Test 17
Verdict: ACCEPTED
input |
---|
17 |
correct output |
---|
6 1 3 5 8 16 17 |
user output |
---|
6 1 2 3 5 8 13 |
Test 18
Verdict: ACCEPTED
input |
---|
18 |
correct output |
---|
6 1 3 5 8 17 18 |
user output |
---|
6 1 2 3 5 8 13 |
Test 19
Verdict: WRONG ANSWER
input |
---|
19 |
correct output |
---|
7 1 5 9 12 17 18 19 |
user output |
---|
6 1 2 3 5 8 13 |
Test 20
Verdict: WRONG ANSWER
input |
---|
20 |
correct output |
---|
7 1 3 5 8 11 19 20 |
user output |
---|
6 1 2 3 5 8 13 |
Test 21
Verdict: ACCEPTED
input |
---|
21 |
correct output |
---|
7 1 3 5 8 11 20 21 |
user output |
---|
7 1 2 3 5 8 13 21 |
Test 22
Verdict: ACCEPTED
input |
---|
22 |
correct output |
---|
7 1 3 5 8 11 21 22 |
user output |
---|
7 1 2 3 5 8 13 21 |
Test 23
Verdict: ACCEPTED
input |
---|
23 |
correct output |
---|
7 1 3 5 8 11 22 23 |
user output |
---|
7 1 2 3 5 8 13 21 |
Test 24
Verdict: ACCEPTED
input |
---|
24 |
correct output |
---|
7 1 3 5 8 11 23 24 |
user output |
---|
7 1 2 3 5 8 13 21 |
Test 25
Verdict: WRONG ANSWER
input |
---|
25 |
correct output |
---|
8 1 6 11 17 21 23 24 25 |
user output |
---|
7 1 2 3 5 8 13 21 |
Test 26
Verdict: WRONG ANSWER
input |
---|
26 |
correct output |
---|
8 1 6 11 18 22 24 25 26 |
user output |
---|
7 1 2 3 5 8 13 21 |
Test 27
Verdict: WRONG ANSWER
input |
---|
27 |
correct output |
---|
8 1 5 7 9 12 17 26 27 |
user output |
---|
7 1 2 3 5 8 13 21 |
Test 28
Verdict: WRONG ANSWER
input |
---|
28 |
correct output |
---|
8 1 3 5 9 12 15 27 28 |
user output |
---|
7 1 2 3 5 8 13 21 |
Test 29
Verdict: WRONG ANSWER
input |
---|
29 |
correct output |
---|
8 1 3 5 9 12 15 28 29 |
user output |
---|
7 1 2 3 5 8 13 21 |
Test 30
Verdict: WRONG ANSWER
input |
---|
30 |
correct output |
---|
8 1 3 5 9 12 15 29 30 |
user output |
---|
7 1 2 3 5 8 13 21 |
Test 31
Verdict: WRONG ANSWER
input |
---|
31 |
correct output |
---|
8 1 3 5 9 12 15 30 31 |
user output |
---|
7 1 2 3 5 8 13 21 |
Test 32
Verdict: WRONG ANSWER
input |
---|
32 |
correct output |
---|
8 1 3 5 9 12 15 31 32 |
user output |
---|
7 1 2 3 5 8 13 21 |
Test 33
Verdict: WRONG ANSWER
input |
---|
33 |
correct output |
---|
8 1 3 5 9 12 15 32 33 |
user output |
---|
7 1 2 3 5 8 13 21 |
Test 34
Verdict: ACCEPTED
input |
---|
34 |
correct output |
---|
8 1 3 5 9 12 15 33 34 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 35
Verdict: WRONG ANSWER
input |
---|
35 |
correct output |
---|
9 1 5 8 11 16 21 33 34 35 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 36
Verdict: WRONG ANSWER
input |
---|
36 |
correct output |
---|
9 1 6 11 21 23 29 32 35 36 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 37
Verdict: WRONG ANSWER
input |
---|
37 |
correct output |
---|
9 1 3 7 10 13 18 23 36 37 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 38
Verdict: WRONG ANSWER
input |
---|
38 |
correct output |
---|
9 2 4 8 11 14 19 24 37 38 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 39
Verdict: WRONG ANSWER
input |
---|
39 |
correct output |
---|
9 1 6 8 10 16 19 22 38 39 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 40
Verdict: WRONG ANSWER
input |
---|
40 |
correct output |
---|
9 1 3 5 10 15 18 21 39 40 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 41
Verdict: WRONG ANSWER
input |
---|
41 |
correct output |
---|
9 1 3 5 10 15 18 21 40 41 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 42
Verdict: WRONG ANSWER
input |
---|
42 |
correct output |
---|
9 1 3 5 10 15 18 21 41 42 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 43
Verdict: WRONG ANSWER
input |
---|
43 |
correct output |
---|
9 1 3 5 10 15 18 21 42 43 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 44
Verdict: WRONG ANSWER
input |
---|
44 |
correct output |
---|
9 1 3 5 10 15 18 21 43 44 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 45
Verdict: WRONG ANSWER
input |
---|
45 |
correct output |
---|
9 1 3 5 10 15 18 21 44 45 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 46
Verdict: WRONG ANSWER
input |
---|
46 |
correct output |
---|
10 1 3 5 20 25 33 36 39 45 46 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 47
Verdict: WRONG ANSWER
input |
---|
47 |
correct output |
---|
10 2 4 6 21 26 34 37 40 46 47 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 48
Verdict: WRONG ANSWER
input |
---|
48 |
correct output |
---|
10 1 3 5 9 12 15 25 30 47 48 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 49
Verdict: WRONG ANSWER
input |
---|
49 |
correct output |
---|
10 1 3 5 9 14 19 26 29 48 49 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 50
Verdict: WRONG ANSWER
input |
---|
50 |
correct output |
---|
10 2 4 6 10 15 20 27 30 49 50 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 51
Verdict: WRONG ANSWER
input |
---|
51 |
correct output |
---|
10 3 5 7 11 16 21 28 31 50 51 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 52
Verdict: WRONG ANSWER
input |
---|
52 |
correct output |
---|
10 1 4 7 11 13 15 26 31 51 52 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 53
Verdict: WRONG ANSWER
input |
---|
53 |
correct output |
---|
10 1 4 8 10 12 20 25 30 52 53 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 54
Verdict: WRONG ANSWER
input |
---|
54 |
correct output |
---|
10 1 3 5 9 12 19 24 29 53 54 |
user output |
---|
8 1 2 3 5 8 13 21 34 |
Test 55
Verdict: WRONG ANSWER
input |
---|
55 |
correct output |
---|
10 1 3 5 9 12 19 24 29 54 55 |
user output |
---|
17 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 56
Verdict: WRONG ANSWER
input |
---|
56 |
correct output |
---|
10 1 3 5 9 12 19 24 29 55 56 |
user output |
---|
17 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 57
Verdict: WRONG ANSWER
input |
---|
57 |
correct output |
---|
10 1 3 5 9 12 19 24 29 56 57 |
user output |
---|
17 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 58
Verdict: WRONG ANSWER
input |
---|
58 |
correct output |
---|
11 1 3 14 21 24 27 41 49 53 57 58... |
user output |
---|
16 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 59
Verdict: WRONG ANSWER
input |
---|
59 |
correct output |
---|
11 1 5 7 9 23 34 39 46 49 58 59 |
user output |
---|
16 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 60
Verdict: WRONG ANSWER
input |
---|
60 |
correct output |
---|
11 1 3 5 9 27 32 39 46 49 59 60 |
user output |
---|
16 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 61
Verdict: WRONG ANSWER
input |
---|
61 |
correct output |
---|
11 1 7 9 13 17 24 33 42 47 60 61 |
user output |
---|
16 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 62
Verdict: WRONG ANSWER
input |
---|
62 |
correct output |
---|
11 1 3 5 9 14 23 35 38 45 61 62 |
user output |
---|
17 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 63
Verdict: WRONG ANSWER
input |
---|
63 |
correct output |
---|
11 2 4 6 10 15 24 36 39 46 62 63 |
user output |
---|
17 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 64
Verdict: WRONG ANSWER
input |
---|
64 |
correct output |
---|
11 1 3 5 9 17 28 33 43 46 63 64 |
user output |
---|
17 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 65
Verdict: WRONG ANSWER
input |
---|
65 |
correct output |
---|
11 1 5 7 9 16 21 33 43 46 64 65 |
user output |
---|
16 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 66
Verdict: WRONG ANSWER
input |
---|
66 |
correct output |
---|
11 1 4 10 15 20 22 35 39 43 65 66... |
user output |
---|
16 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 67
Verdict: WRONG ANSWER
input |
---|
67 |
correct output |
---|
11 1 3 5 9 15 18 25 36 41 66 67 |
user output |
---|
17 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 68
Verdict: WRONG ANSWER
input |
---|
68 |
correct output |
---|
11 1 4 6 11 18 22 26 35 41 67 68 |
user output |
---|
17 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 69
Verdict: WRONG ANSWER
input |
---|
69 |
correct output |
---|
11 1 3 5 11 16 21 28 37 40 68 69 |
user output |
---|
17 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 70
Verdict: WRONG ANSWER
input |
---|
70 |
correct output |
---|
11 1 5 7 9 18 23 28 35 38 69 70 |
user output |
---|
16 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 71
Verdict: WRONG ANSWER
input |
---|
71 |
correct output |
---|
11 1 5 7 9 18 23 28 35 38 70 71 |
user output |
---|
16 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 72
Verdict: WRONG ANSWER
input |
---|
72 |
correct output |
---|
12 1 3 5 9 17 31 36 51 54 61 71 7... |
user output |
---|
17 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 73
Verdict: WRONG ANSWER
input |
---|
73 |
correct output |
---|
12 2 4 6 10 18 32 37 52 55 62 72 ... |
user output |
---|
17 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 74
Verdict: WRONG ANSWER
input |
---|
74 |
correct output |
---|
12 3 5 7 11 19 33 38 53 56 63 73 ... |
user output |
---|
16 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 75
Verdict: WRONG ANSWER
input |
---|
75 |
correct output |
---|
12 1 4 7 13 27 32 40 53 57 64 74 ... |
user output |
---|
17 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 76
Verdict: WRONG ANSWER
input |
---|
76 |
correct output |
---|
12 1 3 5 9 18 33 38 54 57 64 75 7... |
user output |
---|
16 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 77
Verdict: WRONG ANSWER
input |
---|
77 |
correct output |
---|
12 1 3 5 11 21 32 39 51 54 63 76 ... |
user output |
---|
17 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 78
Verdict: WRONG ANSWER
input |
---|
78 |
correct output |
---|
12 1 3 5 9 12 15 27 40 45 61 77 7... |
user output |
---|
17 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 79
Verdict: WRONG ANSWER
input |
---|
79 |
correct output |
---|
12 1 3 5 9 15 18 27 43 48 59 78 7... |
user output |
---|
16 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |
Test 80
Verdict: WRONG ANSWER
input |
---|
80 |
correct output |
---|
12 1 5 9 12 17 19 29 38 44 57 79 ... |
user output |
---|
17 1 2 3 5 8 13 21 34 55 0 0 0 0 ... |