CSES - Datatähti 2021 alku - Results
Submission details
Task:Sanalista
Sender:Kertor
Submission time:2020-09-29 12:03:22 +0300
Language:C++ (C++11)
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.01 sdetails
#20.01 sdetails
#30.01 sdetails

Code

#include <iostream>
#include <iomanip>
#include <sstream>
#include <vector>
#include <string>
#include <bits/stdc++.h> 
#define ll long long int

using namespace std;

int main() {
	ll n;
	cin >> n;
	ll PossibleMoves = n*n*(n*n-1)/2;
	ll Dangers = 4*(n-1)*(n-2);
	cout << PossibleMoves - Dangers;
}

Test details

Test 1

Verdict:

input
1000
korvata
sopimusaika
nuhatartunta
korttiautomaatti
...

correct output
15

user output
499995511992

Test 2

Verdict:

input
1000
pub
hansikaslokero
erikoisvalmisteinen
unijukka
...

correct output
42

user output
499995511992

Test 3

Verdict:

input
1000
haapalastu
toipumisaika
mustalaiskieli
taidelainaamo
...

correct output
70

user output
499995511992