235862026-01-25 18:03:56BalázsJárda-L (40)cpp17Wrong answer 2/402ms572 KiB
#include <iostream>
#include<bits/stdc++.h>

using namespace std;

int main()
{
    int elozo=5;
    vector<long long>elozoek(24);
    for(int i=4; i<28; i++){
        elozoek[i-4]=(elozo-1)*2;
        elozo=(elozo-1)*2;
    }
    int n;
    cin>>n;
    if(n<3){
        cout<<"1";
        return 0;
    }
    if(n==3){
        cout<<"5";
        return 0;
    }
    if (n>3){
    cout<<elozoek[n-4];
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base2/40
1Accepted0/01ms316 KiB
2Wrong answer0/01ms316 KiB
3Accepted2/21ms508 KiB
4Wrong answer0/21ms316 KiB
5Wrong answer0/22ms316 KiB
6Wrong answer0/21ms316 KiB
7Wrong answer0/21ms316 KiB
8Wrong answer0/31ms316 KiB
9Wrong answer0/31ms324 KiB
10Wrong answer0/31ms316 KiB
11Wrong answer0/31ms508 KiB
12Wrong answer0/31ms316 KiB
13Wrong answer0/31ms376 KiB
14Wrong answer0/31ms572 KiB
15Wrong answer0/31ms316 KiB
16Wrong answer0/31ms392 KiB
17Wrong answer0/31ms508 KiB