Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- long long n,i,test,tc;
- scanf("%lld",&test);
- for(tc=1;tc<=test;tc++)
- {
- scanf("%lld",&n);
- i = n*(n-1);
- if(i%4)
- {
- printf("Case %lld: %lld/2\n",tc,i/2);
- }
- else
- {
- printf("Case %lld: %lld\n",tc,i/4);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment