The Game Is On
Pages
Home
FUN ZONE
Tuesday, 13 January 2015
Spoj solution of Alice Sieve problem ALICESIE
Alice Sieve problem
#include<iostream>
using namespace std;
int main()
{
long int t,n,m;
cin>>t;
while(t--)
{
cin>>n;
if(n%2==0)
{
m=n/2;
cout<<m<<endl;
}
else
{
m=n/2+1;
cout<<m<<endl;
}
}
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment