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;

}

Posted by Unknown at 10:24
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Unknown
View my complete profile

Blog Archive

  • ▼  2015 (20)
    • ►  February (1)
    • ▼  January (19)
      • Solution of spoj Naya Shatranj (New Chess) CODCHESS
      • SPOJ solution of CHOTU ( FARIDI AND YADAV)
      • SPOJ CANDY 3 solution
      • Spoj CANDY I solution problem code candy
      • Solution Of Candy Distribution Spoj CADYDIST
      • Solution of spoj black widow rings ,bwidow
      • spoj solution of Beehive Numbers problem BEENUMS
      • spoj solution of Break the Chocolate problem BC
      • spoj solution of atoms in the lab problem ATOMS
      • Spoj solution of Army Strength problem army
      • Solution of AP - Complete The Series (Easy) probl...
      • Spoj solution of Christmas Play problem AMR10G
      • Spoj solution of Alice Sieve problem ALICESIE
      • Spoj solution of Adding Reversed Numbers problem...
      • Solution of What’s Next spoj problem ACPC10A
      • Spoj solution abs(a-b) I problem ABSP1
      • imges of vanice italy
      • imges of vanice italy
      • sherlock holmes wallpaper
Watermark theme. Powered by Blogger.