Search found 50 matches

by razibcse
Fri Jan 31, 2003 8:23 pm
Forum: Volume 100 (10000-10099)
Topic: 10099 - The Tourist Guide
Replies: 91
Views: 28177

10099

I subtracted the guide from passenger list..but it's still not etting AC... what's the problem?pls someone help me #include <stdio.h> #include <math.h> #define MAXSZ 1000 long max(long a,long b); long min(long a,long b); void make_2d_array(long k,long n); long source[MAXSZ],dest[MAXSZ],node[MAXSZ],c...
by razibcse
Fri Jan 31, 2003 8:13 pm
Forum: Volume 100 (10000-10099)
Topic: 10093 - An Easy Problem!
Replies: 52
Views: 14763

10093:Why WA

I tried to check all possibilities including negative or zero number.. but it kept getting WA... if someone kindly suggest me what to do, i'll b very greatful... #include <stdio.h> #include <string.h> #include <ctype.h> #define MAX 100000 void main() { char str[MAX]; long flag,max,min_base,val,a,b,l...
by razibcse
Thu Jan 23, 2003 8:34 pm
Forum: Volume 100 (10000-10099)
Topic: 10050 - Hartals
Replies: 59
Views: 18632

10050?What's wrong??

can anyone help me with this WA... i thot it would b easy #include <stdio.h> #define MAX 3700 void crossout(long par); long n,hartal[MAX],hp[MAX],count; void main() { long p,a,b,t,cut; scanf("%ld",&t); for(a=0;a<t;a++) { count=0; scanf("%ld",&n); scanf("%ld",&p); for(b=1;b<=p;b++) scanf("%ld",&hp[b...
by razibcse
Thu Jan 23, 2003 8:29 pm
Forum: Volume 100 (10000-10099)
Topic: 10099 - The Tourist Guide
Replies: 91
Views: 28177

10099?What's wrong??

can anyone help me with this WA... i thot it would b easy..coz guide is one of the passengers... so i subtracted 1 from the passenger number each time... am i wrong??? pls someone give me suggestions... #include <stdio.h> #include <math.h> #define MAXSZ 150 long max(long a,long b); long min(long a,l...
by razibcse
Wed Jan 15, 2003 4:17 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 19213

107: Why WA

I m gettin WA for this program, but it seems to give correct result.. someone pls help me with the input file or suggestions... #include <stdio.h> #include <math.h> void main() { long n,n2,m,level,a,flag; double temp,height_of_stack,num_of_worker; double height_of_first,non_working; float rev,n1; fo...
by razibcse
Tue Jan 14, 2003 5:13 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 19213

107: Why Wrong Answer?pls help...

My program seems to give correct result for all possible values.. but i mgettin WA... someone pls help me with input file or suggestions.... #include <stdio.h> #include <math.h> void main() { long n,n2,m,level,a,flag; double temp,height_of_stack,num_of_worker; double height_of_first,non_working; flo...
by razibcse
Mon Dec 23, 2002 2:17 pm
Forum: Volume 101 (10100-10199)
Topic: 10106 - Product
Replies: 98
Views: 26907

Thanx a lot man!!!i got it accepted...

thanx a looot man for ur advice.

i got it accepted...
Razib
by razibcse
Mon Dec 23, 2002 2:16 pm
Forum: Volume 101 (10100-10199)
Topic: 10106 - Product
Replies: 98
Views: 26907

Thanx a lot man!!!

thanx a looot man for ur advice.

i got it accepted...
Razib
by razibcse
Tue Dec 10, 2002 5:02 pm
Forum: Volume 101 (10100-10199)
Topic: 10106 - Product
Replies: 98
Views: 26907

10106: Why WA??? tell me someone..

#include <stdio.h> #include <string.h> #define MAX 300 void string_mul(char aa[],char bb[],long aa_l,long bb_l); void main() { char num1[MAX],num2[MAX],max[MAX],min[MAX]; long max_length,min_length,num1_l,num2_l,a; while(scanf("%s %s",num1,num2)==2) { num1_l=strlen(num1); num2_l=strlen(num2); // To...
by razibcse
Tue Dec 10, 2002 4:53 pm
Forum: Volume 5 (500-599)
Topic: 594 - One Little, Two Little, Three Little Endians
Replies: 46
Views: 13184

594 - One Little, Two Little, Three Little Endians

#include <stdio.h> #include <math.h> #include <string.h> void dec_to_bin(long num); void dec_to_bin_2s_complement(long num); long binary_to_decimal(long num[],long l); void main() { long num; while(scanf("%ld",&num)==1) { printf("%ld ",num); if(num>=0) dec_to_bin(num); else if(num<0) dec_to_bin_2s_...
by razibcse
Mon Sep 16, 2002 8:19 pm
Forum: Volume 4 (400-499)
Topic: 412 - Pi
Replies: 104
Views: 17462

What's the problem with 412?

Please someone inform me abot my coding of this problem... #include <stdio.h> #include <math.h> void main() { int t,p,n,a,b,c,nm[50],i,j,u,l; float pis,d; for(;;) { scanf("%d",&n); if(n==0) break; for(a=0;a<n;a++) scanf("%d",&nm[a]); u=0; l=0; for(a=0;a<(n-1);a++) for(b=a+1;b<n;b++) { p=1; l++; if(n...
by razibcse
Mon Sep 16, 2002 8:12 pm
Forum: Volume 102 (10200-10299)
Topic: 10257 - Dick and Jane
Replies: 14
Views: 7414

10257

I thought it would b very easy..but always WA..can somebody tell me what's wrong with my output?

Code: Select all

#include <stdio.h>

void main()
{
long s,p,y,j,x,z,t,pp,ss;
while(scanf("%ld %ld %ld %ld",&s,&p,&y,&j)==4)
{
z=12+j-p-y;
x=z/3;
pp=x+p;
t=x+pp;
ss=(12+j)-t;
printf("%ld %ld %ld\n",ss,pp,x);
}
}
by razibcse
Mon Sep 16, 2002 9:09 am
Forum: Volume 4 (400-499)
Topic: 444 - Encoder and Decoder
Replies: 155
Views: 20865

Tell me Why 444 always Tme limit exceeds?

#include <stdio.h> #include <string.h> #include <ctype.h> #include <math.h> #define MAX 100 void encode(char mas[],long b); void decode(char mas[],long b); void rev(int n); void main() { char mas[MAX]; long p,b; while(gets(mas)) { b=strlen(mas); if(!isdigit(mas[0])) p=0; else if(isdigit(mas[0])) p=...
by razibcse
Wed Aug 28, 2002 8:44 pm
Forum: Volume 6 (600-699)
Topic: 618 - Doing Windows
Replies: 4
Views: 3739

618 - Doing Windows

I am in real trouble...
Anyone would help me???
I can't solve the 618 problem...so if any kind person sends me the code....i'll b greatful for all my life
by razibcse
Thu Aug 08, 2002 9:00 pm
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 23882

Thanx for ur support !!!

Hi,
thanx a lot for ur sujession...
I got the problem 160 accepted b4 i received ur reply...
I had to cut the spaces just...
Then everything was fine...

Thanx again...
Razib :lol:

Go to advanced search