#include<stdio.h>
#include<string.h>
char s1[10000000];
char s2[10000000];
int main(){
int i,j,m,n,k,count,l;
freopen("492.txt","r",stdin);
count=0;
while(gets(s1)){
if(count>0)printf("\n");
count++;
l=strlen(s1);
n=0;
for(j=0;j<l;j++){
m=int(s1[j]);
if((m>=65&&m<=91)||(m>=97&&m<=123 ...
Search found 5 matches
- Sun Aug 23, 2009 11:06 pm
- Forum: Volume 4 (400-499)
- Topic: 492 - Pig-Latin
- Replies: 213
- Views: 49433
- Sat Aug 22, 2009 11:49 pm
- Forum: Volume 5 (500-599)
- Topic: 583 - Prime Factors
- Replies: 171
- Views: 61195
583>>>Need some critical input....getting WA
#include<stdio.h>
#include<math.h>
#include<iostream>
using namespace std;
#define max 10000000
bool flag[max];
long arr[10000000];
void sieve(){
long i,j,k=sqrt(double(max));
flag[0]=true;
flag[1]=true;
for(i=4;i<=max;i+=2)flag =true;
for(i=3;i<=k;i+=2)if(!flag )for(j=i+i;j<=max;j+=i)flag[j ...
#include<math.h>
#include<iostream>
using namespace std;
#define max 10000000
bool flag[max];
long arr[10000000];
void sieve(){
long i,j,k=sqrt(double(max));
flag[0]=true;
flag[1]=true;
for(i=4;i<=max;i+=2)flag =true;
for(i=3;i<=k;i+=2)if(!flag )for(j=i+i;j<=max;j+=i)flag[j ...
- Fri Aug 21, 2009 9:18 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11219 - How old are you?
- Replies: 117
- Views: 49516
Re: 11219 - How old are you?
thanks.but i still getting WA.
plz check this one
#include<stdio.h>
#include<string.h>
int main()
{
int lens1,lens2,i,j,k,l,m,m1,n,p,q,r,d,d1,y,y1,t,flag,fac;
char s1[2000];
char s2[2000];
freopen("11219.txt","r",stdin);
scanf("%d",&n);
for(i=0;i<n;i++)
{
printf("Case #%d: ",i+1);
d=d1=m ...
plz check this one
#include<stdio.h>
#include<string.h>
int main()
{
int lens1,lens2,i,j,k,l,m,m1,n,p,q,r,d,d1,y,y1,t,flag,fac;
char s1[2000];
char s2[2000];
freopen("11219.txt","r",stdin);
scanf("%d",&n);
for(i=0;i<n;i++)
{
printf("Case #%d: ",i+1);
d=d1=m ...
- Sat Aug 08, 2009 9:42 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11219 - How old are you?
- Replies: 117
- Views: 49516
11219 need some critical input........
here is my code
#include<stdio.h>
#include<string.h>
int main()
{
int lens1,lens2,i,j,k,l,m,m1,n,p,q,r,d,d1,y,y1,t,flag,fac;
char s1[2000];
char s2[2000];
freopen("11219.txt","r",stdin);
scanf("%d",&n);
for(i=0;i<n;i++)
{
printf("Case #%d: ",i+1);
d=d1=m=m1=y=y1=0;
scanf("%s",&s1 ...
#include<stdio.h>
#include<string.h>
int main()
{
int lens1,lens2,i,j,k,l,m,m1,n,p,q,r,d,d1,y,y1,t,flag,fac;
char s1[2000];
char s2[2000];
freopen("11219.txt","r",stdin);
scanf("%d",&n);
for(i=0;i<n;i++)
{
printf("Case #%d: ",i+1);
d=d1=m=m1=y=y1=0;
scanf("%s",&s1 ...
- Wed Jun 10, 2009 10:55 pm
- Forum: Volume 3 (300-399)
- Topic: 355 - The Bases Are Loaded
- Replies: 74
- Views: 30624
355 F1 F1
can anyone tell me why it shows wrong answer
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<iostream>
using namespace std;
char s1[10000000];
int main()
{
int m,t,i,k,a,b,p,q,w[10000];
long int l,j,n;
freopen("355.txt","r",stdin);
while(scanf("%d %d %s",&a,&b,&s1)==3)
{
m ...
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<iostream>
using namespace std;
char s1[10000000];
int main()
{
int m,t,i,k,a,b,p,q,w[10000];
long int l,j,n;
freopen("355.txt","r",stdin);
while(scanf("%d %d %s",&a,&b,&s1)==3)
{
m ...