Submission #19945

#TimeUsernameProblemLanguageResultExecution timeMemory
19945yukariko동전 (kriii4_E)C++98
0 / 100
0 ms1720 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...