mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1110.cpp
This commit is contained in:
parent
523ea7f4da
commit
373dae1453
10
QUSTOJ/1110.cpp
Normal file
10
QUSTOJ/1110.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user