Submission #19945

# Submission time Handle Problem Language Result Execution time Memory
19945 2016-02-25T07:43:31 Z yukariko 동전 (kriii4_E) C++
0 / 100
0 ms 1720 KB
#include <bits/stdc++.h>
using namespace std;

#define MOD 1000000007

typedef long long lld;

int main(){
	int n;
	while(~scanf("%d", &n)){
		if(n < 3) puts("1");
		else {
			n -= 3;
			printf("%d\n", n*n + n + 2);
		}
	}
	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1720 KB Output is correct
2 Correct 0 ms 1720 KB Output is correct
3 Correct 0 ms 1720 KB Output is correct
4 Correct 0 ms 1720 KB Output is correct
5 Correct 0 ms 1720 KB Output is correct
6 Correct 0 ms 1720 KB Output is correct
7 Incorrect 0 ms 1720 KB Output isn't correct
8 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Halted 0 ms 0 KB -