Search found 100 matches

by Kallol
Wed Aug 30, 2006 6:59 am
Forum: Volume 3 (300-399)
Topic: 357 - Let Me Count The Ways
Replies: 90
Views: 7193

hey I am getting crazy with this problem. I have a got a lot of WA's but I dont know why ? plz someone check my code.. #include<stdio.h> #include<memory.h> #define MAX 40009 long long coin[MAX]; int a[11]={1,5,10,25,50}; void make() { long i,j; for(i=0;i<MAX;i++) { coin[i]=1; } for(i=1;i<5;i++) { fo...
by Kallol
Wed Aug 30, 2006 6:31 am
Forum: Volume 1 (100-199)
Topic: 147 - Dollars
Replies: 233
Views: 20438

why am I getting WA with my code. Well, I didnt divide the coins with 5 cents but it didnt caused a TLE. But I am getting WA . Can anyone check my code plz..

Code: Select all

cut off after AC
by Kallol
Wed Aug 30, 2006 5:49 am
Forum: Volume 109 (10900-10999)
Topic: 10930 - A-Sequence
Replies: 102
Views: 31534

well, i submitted the same code without sorting , but again i got a WA. I myself dont have any reason to sort the sequence. After getting WA without sorting , I found in one of the threads here that someone got AC with sorting. So, I sorted it. Anyway now my code looks like as follows: can you guess...
by Kallol
Mon Aug 28, 2006 1:02 pm
Forum: Volume 109 (10900-10999)
Topic: 10930 - A-Sequence
Replies: 102
Views: 31534

hey !
i dont know what to do ..... i applied a very straight forward method and passed all the test cases. I was afraid to get TLE but it got WA!!!

I cant have any clue ... is there anyone to help?

Code: Select all

cut after AC
by Kallol
Fri Aug 25, 2006 9:56 pm
Forum: Volume 100 (10000-10099)
Topic: 10042 - Smith Numbers
Replies: 75
Views: 22808

Thanx a lot.
I just missed out the case for 2.
I almost left trying that problem and wasted lots of my time for that silly mistake.Now I got ACCEPTED.
Thank u once again :lol:
by Kallol
Fri Aug 25, 2006 3:57 pm
Forum: Volume 104 (10400-10499)
Topic: 10484 - Divisibility of Factors
Replies: 39
Views: 18461

Another problem in Jamu's inputs.
The problem statement said 0<|D| .... so D can not be equal to 0. But in Jamu's input there were D=0 number of times.
by Kallol
Thu Aug 24, 2006 9:20 am
Forum: Volume 100 (10000-10099)
Topic: 10042 - Smith Numbers
Replies: 75
Views: 22808

I am at my wits end what to do. I tried by all means but could not break the vicious cycle of WA from the online judge !! here is my code: cut after ACC It passes all the inputs . I checked it with almost possible inputs and everytime it gives me the right answer. I dont know where it is going wrong...
by Kallol
Wed Aug 23, 2006 7:49 pm
Forum: Volume 105 (10500-10599)
Topic: 10505 - Montesco vs Capuleto
Replies: 73
Views: 36900

frastated

Hey ! i am totally fade up with htis problem. I left no stone unturned but invain. My code passes all the sample cases given in this forum but for an unknows reason judge giving it a WA !! here is my code: #include<stdio.h> #include<memory.h> #define WHITE 0 #define GREY 1 #define BLACK 2 #define RE...
by Kallol
Wed Aug 23, 2006 1:08 pm
Forum: Volume 102 (10200-10299)
Topic: 10287 - Gifts in a Hexagonal Box
Replies: 8
Views: 2278

why WA ? is my formula wrong? plz anyone check it... #include<stdio.h> #include<math.h> #define PI 2*acos(0.0) int main(void) { long double a,r1,r2,r3,r4; while(scanf("%Lf",&a)==1) { r1=a*sin(PI/3.0); r2=a*((sqrt(3))/(2+(sqrt(3)))); r3=(sqrt(3))*(a/4.0); r4 = r1*sqrt(r1*r1 + a*a)/(2*r1 + sqrt(r1*r1 ...
by Kallol
Tue Aug 22, 2006 2:04 pm
Forum: Volume 101 (10100-10199)
Topic: 10180 - Rope Crisis in Ropeland!
Replies: 39
Views: 21365

I am fade up with it ! my programme passed all the test cases here but its a series of WA i got from the judge! is there anyone to check my code plz ... #include<stdio.h> #include<math.h> #define PI 2*acos(0.0) #define EPS 1e-5 class point { public: long double x,y; point() { } point(long double a,l...
by Kallol
Thu Aug 17, 2006 8:06 pm
Forum: Volume 5 (500-599)
Topic: 524 - Prime Ring Problem
Replies: 74
Views: 18886

Your recursion is wrong. It does give u all the combinations , but doesnt give them is sorted order. For example, for input : 16 both ur code and my ACC code give 81024 lines. but the last line for my output is: 1 16 15 14 9 10 13 6 11 12 7 4 3 8 5 2 but urs is: 1 16 15 2 3 4 13 6 5 14 9 8 11 12 7 1...
by Kallol
Thu Aug 17, 2006 8:06 pm
Forum: Volume 5 (500-599)
Topic: 524 - Prime Ring Problem
Replies: 74
Views: 18886

cutt off
by Kallol
Thu Aug 17, 2006 11:21 am
Forum: Volume 5 (500-599)
Topic: 524 - Prime Ring Problem
Replies: 74
Views: 18886

a little silly mistake :lol:
dont print a blank line after the last case .
by Kallol
Fri Aug 11, 2006 6:19 am
Forum: Volume 1 (100-199)
Topic: 179 - Code Breaking
Replies: 16
Views: 7007

Oh yea !

Thank you mf . Now I have got accepted. I was just thinking in oposit way. Thanks a lot.
by Kallol
Fri Aug 11, 2006 6:05 am
Forum: Volume 108 (10800-10899)
Topic: 10861 - Security by Ambiguity
Replies: 2
Views: 3506

10861 - Security by Ambiguity

I was trying to solve this problem but could not get any clue. Can anyone help me ?

Go to advanced search