6550 | 2023-12-08 22:57:06 | mmated | Falfelújítás FalFöldön | cpp17 | Accepted 100/100 | 3ms | 3536 KiB |
#include <bits/stdc++.h>
using namespace std;
#define f(i,k,n) for(int i=k; i<n; i++)
#define ll long long
const int inf = INT_MAX;
void solve()
{
int n;
cin>>n;
cout<<n*n-(n-2)*(n-2)+n-2<<"\n";
}
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
int t=1;
//cin>>t;
while(t--) solve();
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1888 KiB | ||||
2 | Accepted | 3ms | 2088 KiB | ||||
subtask2 | 20/20 | ||||||
3 | Accepted | 3ms | 2300 KiB | ||||
4 | Accepted | 3ms | 2508 KiB | ||||
5 | Accepted | 3ms | 2996 KiB | ||||
6 | Accepted | 3ms | 2952 KiB | ||||
subtask3 | 80/80 | ||||||
7 | Accepted | 3ms | 3180 KiB | ||||
8 | Accepted | 3ms | 3536 KiB | ||||
9 | Accepted | 3ms | 3388 KiB | ||||
10 | Accepted | 3ms | 3380 KiB | ||||
11 | Accepted | 3ms | 3512 KiB | ||||
12 | Accepted | 3ms | 3524 KiB | ||||
13 | Accepted | 3ms | 3524 KiB | ||||
14 | Accepted | 3ms | 3520 KiB | ||||
15 | Accepted | 2ms | 3528 KiB | ||||
16 | Accepted | 3ms | 3528 KiB |