Search found 14 matches

by Rushow
Mon Aug 18, 2008 6:11 am
Forum: Volume 3 (300-399)
Topic: 392 - Polynomial Showdown
Replies: 93
Views: 18010

Re: 392 - Polynomial Showdown PE -- plz help

thnx I got it
Get AC :D :D
by Rushow
Sun Aug 17, 2008 5:34 pm
Forum: Volume 3 (300-399)
Topic: 392 - Polynomial Showdown
Replies: 93
Views: 18010

392 - Polynomial Showdown PE -- plz help

I have tried many I/O,but for all I got the correct ans but still PE . can anyone help me? Here's my code /* p392 */ /* Polynomial Showdown */ #include<stdio.h> int main(void) { int pol[12], i, j, flag, flag_1st, sum; //freopen("input.in", "r", stdin); while(scanf("%d%d%d%d%d%d%d%d%d", &pol[0], &pol...
by Rushow
Thu May 22, 2008 8:08 am
Forum: Volume 114 (11400-11499)
Topic: 11455 - Behold my quadrangle
Replies: 21
Views: 11016

Re: 11455 - WA need more test case

can u just mail me ur code plz??
by Rushow
Mon Nov 12, 2007 7:01 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 40830

102--Ecological Bin Packing--Getting Compilation error

Any one help me to solve this problem. My code is given below: /* p102 */ /* Ecological Bin Packing */ #include<stdio.h> #include<string.h> long exchange(long r[3][3],int a,int b,int c); void main() { long r[3][3],total,temp; char s[5]; while(scanf("%ld%ld%ld%ld%ld%ld%ld%ld%ld",&r[0][0],&r[0][1],&r[...
by Rushow
Mon Mar 26, 2007 10:39 pm
Forum: General
Topic: Plz give me some problems
Replies: 3
Views: 2008

Thank you abdullah<cse du>.
I'll try my best to solve them.
by Rushow
Mon Mar 26, 2007 9:00 am
Forum: General
Topic: Plz give me some problems
Replies: 3
Views: 2008

Plz give me some problems

I am a solver of ACM problems. I have solved 38 problems. Now I'm trying the base conversion problems. Can anybody give me some problem numbers
of base conversion.
by Rushow
Sat Mar 24, 2007 8:35 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 57038

You are not considering carry forwarded. try the case: input 999 989 output 3 I have tried this case. And I have found output 3. So, again question what's the problem? I have changed my code as below. But no result: /* p10035 */ /* Primary Arithmetic */ #include<stdio.h> #include<math.h> void main(...
by Rushow
Sat Mar 24, 2007 8:25 pm
Forum: Volume 5 (500-599)
Topic: 541 - Error Correction
Replies: 27
Views: 11723

Thank u abdullah<cse du>.
I have got AC.
by Rushow
Fri Mar 23, 2007 5:34 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 57038

10035-Primary Arithmetic

I can't understand what is the wrong actually I did in this code. Please help me . My code is as follows: /* p10035 */ /* Primary Arithmetic */ #include<stdio.h> #include<math.h> void main() { int n1,n2,r1,r2,s,sum; while(scanf("%d%d",&n1,&n2)!=EOF) { if(n1==0&&n2==0) break; s=0; while((n1>0)||(n2>0...
by Rushow
Fri Mar 23, 2007 5:26 pm
Forum: Volume 5 (500-599)
Topic: 541 - Error Correction
Replies: 27
Views: 11723

541-error correction --help is wanted

I think it is an easy problem to solve. But I can't understand what is problem with my code, that make me to get WA. Here is my code. Is there anybody to help me?
by Rushow
Tue Nov 21, 2006 4:21 am
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 57038

Thank you asif. You have said, Your code is wrong for the following input: Code: 591 209 I have changed my code. But still getting WA /* p10035 */ /* Primary Arithmetic */ #include<stdio.h> #include<math.h> void main() { unsigned long int n1,n2,r1,r2; int s,sum,num; while(scanf("%lu%lu",&n1,&n2)!=EO...
by Rushow
Thu Nov 16, 2006 7:29 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 57038

10035-WA-Why

If anyone can help to solve this problem. I can't understand whats the bug. Plz help me . /* p10035 */ /* Primary Arithmetic */ #include<stdio.h> #include<math.h> void main() { int n1,n2,r1,r2,s,sum; while(scanf("%d%d",&n1,&n2)!=EOF) { if(n1==0&&n2==0) break; s=0; while((n1>0)||(n2>0)) { r1=n1%10; n...
by Rushow
Thu Nov 16, 2006 7:22 pm
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 35374

272 - TEX Quotes

I think this is the most easiest, but I don't khow why getting WA. Plz help me to debug this. Thax in advance. /* p272 */ /* Tex qoutes */ #include<stdio.h> #include<string.h> void main() { int i,c; char r[2000]; while(gets(r)) { c=1; for(i=0;r !='\0';i++) { if(r =='"'&&c%2==0) { printf("''"); c++; ...
by Rushow
Thu Nov 02, 2006 5:46 pm
Forum: Volume 103 (10300-10399)
Topic: 10327 - Flip Sort
Replies: 81
Views: 22641

10327

This is my source code. Anyone can tell what's the problem in it? /* p10327 */ /* Flip Sort */ #include<stdio.h> void main() { long s[1002],n,i,j,x,m; while(scanf("%ld",&n)!=EOF) { m=0; for(i=0;i<n;i++) scanf("%d",&s ); for(i=0;i<n-1;i++) { for(j=i+1;j<n;j++) { if(s >s[j]) { x=s ; s =s[j]; s[j]=x; m...

Go to advanced search