Search found 4 matches

by rafay-hasan
Thu Jul 28, 2011 7:42 pm
Forum: Volume 7 (700-799)
Topic: 762 - We Ship Cheap
Replies: 51
Views: 20067

762 - We Ship Cheap

Can anyone please help me.i got 9 RTE for this problem, and i could not found the error. no one experienced a RTE for this problem yet in the board.thanks in advance. #include<stdio.h> #include<string.h> #include<queue> using namespace std; bool matrix[27][27],visit[680]; char a[680][5],c,d,c1,c2,g[...
by rafay-hasan
Tue Apr 19, 2011 4:28 pm
Forum: Volume 119 (11900-11999)
Topic: 11946 - Code Number
Replies: 49
Views: 8886

11946- Code Number

I am getting TLE for this problem. can anyone tell me whats wrong with my code. #include<stdio.h> #include<string.h> char a[91]; int c,i,j,found,got,t,test,line; int main() { scanf("%d",&test); getchar(); for(t=1;t<=test;t++) { while(1) { gets(a); c=strlen(a); if(c==0) break; found=got=0; found=chec...
by rafay-hasan
Wed Dec 08, 2010 3:47 pm
Forum: Volume 101 (10100-10199)
Topic: 10168 - Summation of Four Primes
Replies: 51
Views: 20047

Re: 10168 - Summation of Four Primes

Whats wrong with my code!!!!anyone please help me. #include<stdio.h> #include<string.h> #include<math.h> #define u 10000000 long prime ,a,b,c,d,m=0; bool tag ; int p() { long i,j,x; memset(tag,true,sizeof(tag)); prime[m++]=2; for(i=3;i<=u;i=i+2) { if(tag ) prime[m++]=i; if(i<=u/i) { x=i<<1; for(j=i*...
by rafay-hasan
Sun Jul 18, 2010 4:31 pm
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 25302

492

i got RTE for this problem.can anyone please help me!!!!!!!! #include<stdio.h> #include<string.h> int main() { char a[1000000]; long c1,i,k,m; while(gets(a)) { c1=strlen(a),k=0; for(i=0;i<c1;i++) { if(a ==32) { if(a[k]==65|| a[k]==69 || a[k]==73||a[k]==79||a[k]==85||a[k]==97||a[k]==101||a[k]==105||a...

Go to advanced search