139302025-01-09 11:28:15kongopongJárda-L (40)cpp17Wrong answer 6/401ms508 KiB
#include <iostream>

using namespace std;

int main()
{
    int n;
    cin >> n;
    if(n==1)
        cout << 1;
    else{
        if(n==2)
            cout << 2;
        else
            cout << n*n - (n+1);
    }

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base6/40
1Accepted0/01ms508 KiB
2Wrong answer0/01ms316 KiB
3Accepted2/21ms316 KiB
4Accepted2/21ms316 KiB
5Accepted2/21ms316 KiB
6Wrong answer0/21ms316 KiB
7Wrong answer0/21ms316 KiB
8Wrong answer0/31ms316 KiB
9Wrong answer0/31ms320 KiB
10Wrong answer0/31ms316 KiB
11Wrong answer0/31ms316 KiB
12Wrong answer0/31ms500 KiB
13Wrong answer0/31ms316 KiB
14Wrong answer0/31ms316 KiB
15Wrong answer0/31ms316 KiB
16Wrong answer0/31ms376 KiB
17Wrong answer0/31ms508 KiB