Create 1307_chronix.cpp

pull/23/head
Kirigaya Kazuto 2016-08-05 11:59:16 +08:00 committed by GitHub
parent c6e14ad4d5
commit 0b17724621
1 changed files with 10 additions and 0 deletions

10
VIJOS/1307_chronix.cpp Normal file
View File

@ -0,0 +1,10 @@
#include <iostream>
int main(){
long long re,n;
std::cin>>n;
re=n*(n+1)*(2*n+1);
re/=6;
std::cout<<re;
return 0;
}