Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Buenos Amigos
//g++ 5.4.0 #include <iostream> using namespace std; int main() { int casos,n,res; cin>>casos; while(casos--){ cin>>n; res=((n-1)*(n-2))/2; cout<<res<<"\n"; } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Ss
Comp Conexe
POI
string_match
Sorting sort function stl in c++
generating all valid parenthesis
Ballin primality test
sorting using array and pointer
Insertion Sort
Dar
Please log in to post a comment.