Task: | LumberUolevi |
Sender: | aalto2024a_010 |
Submission time: | 2024-09-04 17:33:50 +0300 |
Language: | C++ (C++11) |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.00 s | details |
#2 | WRONG ANSWER | 0.00 s | details |
#3 | WRONG ANSWER | 0.00 s | details |
#4 | WRONG ANSWER | 0.00 s | details |
#5 | WRONG ANSWER | 0.00 s | details |
#6 | WRONG ANSWER | 0.00 s | details |
#7 | WRONG ANSWER | 0.00 s | details |
#8 | WRONG ANSWER | 0.00 s | details |
#9 | WRONG ANSWER | 0.00 s | details |
#10 | WRONG ANSWER | 0.00 s | details |
#11 | WRONG ANSWER | 0.00 s | details |
#12 | WRONG ANSWER | 0.00 s | details |
#13 | WRONG ANSWER | 0.00 s | details |
#14 | WRONG ANSWER | 0.00 s | details |
#15 | WRONG ANSWER | 0.00 s | details |
#16 | WRONG ANSWER | 0.00 s | details |
#17 | WRONG ANSWER | 0.00 s | details |
#18 | WRONG ANSWER | 0.00 s | details |
#19 | WRONG ANSWER | 0.00 s | details |
#20 | WRONG ANSWER | 0.00 s | details |
#21 | WRONG ANSWER | 0.00 s | details |
#22 | WRONG ANSWER | 0.00 s | details |
#23 | WRONG ANSWER | 0.00 s | details |
#24 | WRONG ANSWER | 0.00 s | details |
#25 | WRONG ANSWER | 0.00 s | details |
#26 | WRONG ANSWER | 0.00 s | details |
#27 | WRONG ANSWER | 0.00 s | details |
#28 | WRONG ANSWER | 0.00 s | details |
#29 | WRONG ANSWER | 0.00 s | details |
#30 | WRONG ANSWER | 0.00 s | details |
#31 | WRONG ANSWER | 0.00 s | details |
#32 | WRONG ANSWER | 0.00 s | details |
#33 | WRONG ANSWER | 0.00 s | details |
#34 | WRONG ANSWER | 0.00 s | details |
#35 | WRONG ANSWER | 0.00 s | details |
#36 | WRONG ANSWER | 0.00 s | details |
#37 | WRONG ANSWER | 0.00 s | details |
#38 | WRONG ANSWER | 0.00 s | details |
#39 | WRONG ANSWER | 0.00 s | details |
#40 | WRONG ANSWER | 0.00 s | details |
#41 | WRONG ANSWER | 0.00 s | details |
#42 | WRONG ANSWER | 0.00 s | details |
#43 | WRONG ANSWER | 0.00 s | details |
#44 | WRONG ANSWER | 0.00 s | details |
#45 | WRONG ANSWER | 0.00 s | details |
#46 | WRONG ANSWER | 0.00 s | details |
#47 | WRONG ANSWER | 0.00 s | details |
#48 | WRONG ANSWER | 0.00 s | details |
#49 | WRONG ANSWER | 0.00 s | details |
#50 | WRONG ANSWER | 0.00 s | details |
#51 | WRONG ANSWER | 0.00 s | details |
#52 | WRONG ANSWER | 0.00 s | details |
#53 | WRONG ANSWER | 0.00 s | details |
#54 | WRONG ANSWER | 0.00 s | details |
#55 | WRONG ANSWER | 0.00 s | details |
#56 | WRONG ANSWER | 0.00 s | details |
#57 | WRONG ANSWER | 0.00 s | details |
#58 | WRONG ANSWER | 0.00 s | details |
#59 | WRONG ANSWER | 0.00 s | details |
#60 | WRONG ANSWER | 0.00 s | details |
#61 | WRONG ANSWER | 0.00 s | details |
#62 | WRONG ANSWER | 0.00 s | details |
#63 | WRONG ANSWER | 0.00 s | details |
Code
#include <bits/stdc++.h> using namespace std; #define ln "\n" typedef long long ll; #define fastio ios_base::sync_with_stdio(false), cin.tie(NULL) int main() { int n; cin >>n; ll first = 1; ll second = 1; if(n ==1){ cout << 2; }else if(n == 2){ cout << 3; }else{ for(int i = 2; i <n+1; i++){ ll buffer = second; second = first+second; first = buffer; } cout << second << ln; } return 0; }
Test details
Test 1
Verdict: WRONG ANSWER
input |
---|
1 1 |
correct output |
---|
1 |
user output |
---|
2 |
Test 2
Verdict: WRONG ANSWER
input |
---|
2 1 |
correct output |
---|
2 |
user output |
---|
3 |
Test 3
Verdict: WRONG ANSWER
input |
---|
2 1 |
correct output |
---|
2 |
user output |
---|
3 |
Test 4
Verdict: WRONG ANSWER
input |
---|
3 2 |
correct output |
---|
1 2 |
user output |
---|
3 |
Test 5
Verdict: WRONG ANSWER
input |
---|
3 3 |
correct output |
---|
1 2 3 |
user output |
---|
3 |
Test 6
Verdict: WRONG ANSWER
input |
---|
4 1 |
correct output |
---|
4 |
user output |
---|
5 |
Test 7
Verdict: WRONG ANSWER
input |
---|
4 4 |
correct output |
---|
1 2 3 4 |
user output |
---|
5 |
Test 8
Verdict: WRONG ANSWER
input |
---|
5 1 |
correct output |
---|
5 |
user output |
---|
8 |
Test 9
Verdict: WRONG ANSWER
input |
---|
5 5 |
correct output |
---|
1 2 3 4 5 |
user output |
---|
8 |
Test 10
Verdict: WRONG ANSWER
input |
---|
6 1 |
correct output |
---|
6 |
user output |
---|
13 |
Test 11
Verdict: WRONG ANSWER
input |
---|
10 6 |
correct output |
---|
1 2 3 5 9 10 |
user output |
---|
89 |
Test 12
Verdict: WRONG ANSWER
input |
---|
10 5 |
correct output |
---|
1 2 3 4 10 |
user output |
---|
89 |
Test 13
Verdict: WRONG ANSWER
input |
---|
10 5 |
correct output |
---|
1 2 3 4 10 |
user output |
---|
89 |
Test 14
Verdict: WRONG ANSWER
input |
---|
10 6 |
correct output |
---|
1 2 3 5 9 10 |
user output |
---|
89 |
Test 15
Verdict: WRONG ANSWER
input |
---|
10 10 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 |
user output |
---|
89 |
Test 16
Verdict: WRONG ANSWER
input |
---|
11 3 |
correct output |
---|
1 2 8 |
user output |
---|
144 |
Test 17
Verdict: WRONG ANSWER
input |
---|
11 10 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 |
user output |
---|
144 |
Test 18
Verdict: WRONG ANSWER
input |
---|
11 1 |
correct output |
---|
11 |
user output |
---|
144 |
Test 19
Verdict: WRONG ANSWER
input |
---|
12 11 |
correct output |
---|
1 2 3 4 5 7 8 9 10 11 12 |
user output |
---|
233 |
Test 20
Verdict: WRONG ANSWER
input |
---|
12 1 |
correct output |
---|
12 |
user output |
---|
233 |
Test 21
Verdict: WRONG ANSWER
input |
---|
20 11 |
correct output |
---|
1 2 3 4 5 6 7 8 9 15 20 |
user output |
---|
10946 |
Test 22
Verdict: WRONG ANSWER
input |
---|
20 9 |
correct output |
---|
1 2 3 4 5 6 7 12 20 |
user output |
---|
10946 |
Test 23
Verdict: WRONG ANSWER
input |
---|
21 10 |
correct output |
---|
1 2 3 4 5 6 7 8 9 18 |
user output |
---|
17711 |
Test 24
Verdict: WRONG ANSWER
input |
---|
22 13 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 12 21 22 |
user output |
---|
28657 |
Test 25
Verdict: WRONG ANSWER
input |
---|
20 20 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
10946 |
Test 26
Verdict: WRONG ANSWER
input |
---|
20 5 |
correct output |
---|
1 2 3 4 10 |
user output |
---|
10946 |
Test 27
Verdict: WRONG ANSWER
input |
---|
23 21 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 13 14 15 ... |
user output |
---|
46368 |
Test 28
Verdict: WRONG ANSWER
input |
---|
24 2 |
correct output |
---|
1 23 |
user output |
---|
75025 |
Test 29
Verdict: WRONG ANSWER
input |
---|
20 18 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
10946 |
Test 30
Verdict: WRONG ANSWER
input |
---|
25 1 |
correct output |
---|
25 |
user output |
---|
121393 |
Test 31
Verdict: WRONG ANSWER
input |
---|
123 68 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
-7322231063339043533 |
Test 32
Verdict: WRONG ANSWER
input |
---|
201 84 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
2597805367549966775 |
Test 33
Verdict: WRONG ANSWER
input |
---|
200 88 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
3721511182311577122 |
Test 34
Verdict: WRONG ANSWER
input |
---|
202 112 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
6319316549861543897 |
Test 35
Verdict: WRONG ANSWER
input |
---|
200 194 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
3721511182311577122 |
Test 36
Verdict: WRONG ANSWER
input |
---|
204 46 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
-3210305606436497047 |
Test 37
Verdict: WRONG ANSWER
input |
---|
205 184 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
5706816310975013625 |
Test 38
Verdict: WRONG ANSWER
input |
---|
200 16 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
3721511182311577122 |
Test 39
Verdict: WRONG ANSWER
input |
---|
207 181 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
8203327015513530203 |
Test 40
Verdict: WRONG ANSWER
input |
---|
201 3 |
correct output |
---|
1 2 198 |
user output |
---|
2597805367549966775 |
Test 41
Verdict: WRONG ANSWER
input |
---|
1123 617 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
578069234949116813 |
Test 42
Verdict: WRONG ANSWER
input |
---|
2201 918 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
-8354061849200667784 |
Test 43
Verdict: WRONG ANSWER
input |
---|
3200 1396 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
-162588315068519710 |
Test 44
Verdict: WRONG ANSWER
input |
---|
2202 1213 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
-3986261498460756283 |
Test 45
Verdict: WRONG ANSWER
input |
---|
1200 1161 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
8682012693799176737 |
Test 46
Verdict: WRONG ANSWER
input |
---|
5204 1156 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
-1191491464101677886 |
Test 47
Verdict: WRONG ANSWER
input |
---|
6205 5541 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
5208869516718894041 |
Test 48
Verdict: WRONG ANSWER
input |
---|
3200 245 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
-162588315068519710 |
Test 49
Verdict: WRONG ANSWER
input |
---|
7207 6295 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
2104342257785383765 |
Test 50
Verdict: WRONG ANSWER
input |
---|
9201 96 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
389303100105049735 |
Test 51
Verdict: WRONG ANSWER
input |
---|
51123 28058 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
5401089208491482339 |
Test 52
Verdict: WRONG ANSWER
input |
---|
32201 13429 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
5480937801042328504 |
Test 53
Verdict: WRONG ANSWER
input |
---|
23200 10116 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
-134556784762018723 |
Test 54
Verdict: WRONG ANSWER
input |
---|
12202 6721 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
-4370088768259239783 |
Test 55
Verdict: WRONG ANSWER
input |
---|
21200 20502 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
3835877115195509090 |
Test 56
Verdict: WRONG ANSWER
input |
---|
35204 7816 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
3255298591289716802 |
Test 57
Verdict: WRONG ANSWER
input |
---|
46205 41255 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
-6297638400719553880 |
Test 58
Verdict: WRONG ANSWER
input |
---|
63200 4823 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
-6452909935362499102 |
Test 59
Verdict: WRONG ANSWER
input |
---|
87207 76170 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
-191468237230418997 |
Test 60
Verdict: WRONG ANSWER
input |
---|
99201 1030 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
6550752974742764455 |
Test 61
Verdict: WRONG ANSWER
input |
---|
100000 54883 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
-4040291346873926563 |
Test 62
Verdict: WRONG ANSWER
input |
---|
100000 41703 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
-4040291346873926563 |
Test 63
Verdict: WRONG ANSWER
input |
---|
100000 43601 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
-4040291346873926563 |