226172026-01-15 12:32:27FintaTihamerJárda-L (40)cpp17Wrong answer 0/401ms560 KiB
#include<iostream>
using namespace std;

int main()
{int n;
//cin>>n;
    n=28;
    if(n==1) cout<<1;
    if(n==2) cout<<2;
    int f1=5, f2=2;
    int f3=f1;
    for(int i=3; i<n; i++){
        f1=2*f3+f2;
        f2=f3;
        f3=f1;
    }
    cout<<f3;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/40
1Wrong answer0/01ms316 KiB
2Wrong answer0/01ms316 KiB
3Wrong answer0/21ms512 KiB
4Wrong answer0/21ms316 KiB
5Wrong answer0/21ms316 KiB
6Wrong answer0/21ms508 KiB
7Wrong answer0/21ms316 KiB
8Wrong answer0/31ms316 KiB
9Wrong answer0/31ms316 KiB
10Wrong answer0/31ms316 KiB
11Wrong answer0/31ms316 KiB
12Wrong answer0/31ms316 KiB
13Wrong answer0/31ms316 KiB
14Wrong answer0/31ms316 KiB
15Wrong answer0/31ms560 KiB
16Wrong answer0/31ms380 KiB
17Wrong answer0/31ms316 KiB