65472023-12-08 15:00:31BakosCsongorFalfelújítás FalFöldöncpp17Accepted 100/1003ms3600 KiB
// NOTE: it is recommended to use this even if you don't understand the following code.
#include <iostream>

using namespace std;

int main() {

    int N;
    cin >> N;
    int kek;
    if(N > 2){
    kek = 2*N + 3*(N-2);
    }
    else if(N == 2) kek = 4;
    else kek = 1;
    cout << kek << endl; // print the result
    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1876 KiB
2Accepted3ms2112 KiB
subtask220/20
3Accepted3ms2364 KiB
4Accepted3ms2444 KiB
5Accepted3ms2568 KiB
6Accepted3ms2820 KiB
subtask380/80
7Accepted3ms3092 KiB
8Accepted3ms3116 KiB
9Accepted3ms3232 KiB
10Accepted3ms3040 KiB
11Accepted3ms3112 KiB
12Accepted3ms3236 KiB
13Accepted3ms3360 KiB
14Accepted3ms3600 KiB
15Accepted3ms3556 KiB
16Accepted3ms3476 KiB