6547 | 2023-12-08 15:00:31 | BakosCsongor | Falfelújítás FalFöldön | cpp17 | Accepted 100/100 | 3ms | 3600 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;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1876 KiB | ||||
2 | Accepted | 3ms | 2112 KiB | ||||
subtask2 | 20/20 | ||||||
3 | Accepted | 3ms | 2364 KiB | ||||
4 | Accepted | 3ms | 2444 KiB | ||||
5 | Accepted | 3ms | 2568 KiB | ||||
6 | Accepted | 3ms | 2820 KiB | ||||
subtask3 | 80/80 | ||||||
7 | Accepted | 3ms | 3092 KiB | ||||
8 | Accepted | 3ms | 3116 KiB | ||||
9 | Accepted | 3ms | 3232 KiB | ||||
10 | Accepted | 3ms | 3040 KiB | ||||
11 | Accepted | 3ms | 3112 KiB | ||||
12 | Accepted | 3ms | 3236 KiB | ||||
13 | Accepted | 3ms | 3360 KiB | ||||
14 | Accepted | 3ms | 3600 KiB | ||||
15 | Accepted | 3ms | 3556 KiB | ||||
16 | Accepted | 3ms | 3476 KiB |