#include<stdio.h>
#define MAX 1000000
#define MAXH MAX/2
char pr[MAX/16+10];
int a[78599];
void seive()
{
int l=1090,i,j;
for(i=3;i<l;i +=2)
{
if(!(pr[i>>4]&(1<<((i>>1)&0x7))))
{
for(j=i*i/2;j<=MAXH;j +=i)
pr[j>>3] |=(1<<(j&0x7));
}
}
}
void isprime()
{
register int i,p=1;
a[0]=2 ...
Search found 6 matches
- Sat May 05, 2012 8:27 am
- Forum: Volume 109 (10900-10999)
- Topic: 10948 - The primary problem
- Replies: 27
- Views: 27177
- Fri Mar 30, 2012 10:21 pm
- Forum: Volume 120 (12000-12099)
- Topic: 12005 - Find Solutions
- Replies: 9
- Views: 5818
- Sun Mar 20, 2011 1:55 pm
- Forum: Volume 5 (500-599)
- Topic: 579 - Clock Hands
- Replies: 44
- Views: 22633
Re: 579 - ClockHands
tnx Bro
ACC

- Sat Mar 12, 2011 2:34 pm
- Forum: Volume 5 (500-599)
- Topic: 579 - Clock Hands
- Replies: 44
- Views: 22633
- Fri Mar 11, 2011 10:39 am
- Forum: Volume 103 (10300-10399)
- Topic: 10324 - Zeros and Ones
- Replies: 179
- Views: 67132
Re: 10324 - Zeros and Ones
10324 - Zeros and Ones WA PLz HELP
#include<stdio.h>
#include<string.h>
char a[1000010];
int main()
{
freopen("G:\\in.txt","r",stdin);
freopen("G:\\out.txt","w",stdout);
int i,e,r=1,t,y,u,v;
while(gets(a))
{
printf("Case %d:\n",r);
r++;
v=1;
int z,q,w;
scanf("%d",&y);
while(v<=y ...
#include<stdio.h>
#include<string.h>
char a[1000010];
int main()
{
freopen("G:\\in.txt","r",stdin);
freopen("G:\\out.txt","w",stdout);
int i,e,r=1,t,y,u,v;
while(gets(a))
{
printf("Case %d:\n",r);
r++;
v=1;
int z,q,w;
scanf("%d",&y);
while(v<=y ...
- Thu Mar 10, 2011 5:27 pm
- Forum: Volume 5 (500-599)
- Topic: 579 - Clock Hands
- Replies: 44
- Views: 22633
Re: 579 - ClockHands
Why WA plz help #include<stdio.h>
int main()
{
//freopen("G:\\in.txt","r",stdin);
//freopen("G:\\out.txt","w",stdout);
long double B,a,d[100];
while(1)
{
char c;
int m,h,b,M,u=1,i=1,k;
scanf("%d%c%d",&h,&c,&m);
if(h==0)
return 0;
M= (int) m/5;
b=m%5;
a=(long double) m*6;
if(h>=M ...
int main()
{
//freopen("G:\\in.txt","r",stdin);
//freopen("G:\\out.txt","w",stdout);
long double B,a,d[100];
while(1)
{
char c;
int m,h,b,M,u=1,i=1,k;
scanf("%d%c%d",&h,&c,&m);
if(h==0)
return 0;
M= (int) m/5;
b=m%5;
a=(long double) m*6;
if(h>=M ...