Search found 37 matches

by alamgir kabir
Sun Jul 20, 2008 8:34 pm
Forum: Volume 104 (10400-10499)
Topic: 10487 - Closest Sums
Replies: 89
Views: 30296

Re: 10487 - Closest Sums

Code: Select all

code removed after acc
by alamgir kabir
Sun Jul 20, 2008 1:36 am
Forum: Volume 110 (11000-11099)
Topic: 11000 - Bee
Replies: 25
Views: 12258

Re: 11000 - Bee

I have had a stupid mistake.
for n = 0
my solutaion gave 1 0 but it will be
0 1
Now i got accepted.
Thnx :D
by alamgir kabir
Sun Jul 20, 2008 1:29 am
Forum: Volume 110 (11000-11099)
Topic: 11000 - Bee
Replies: 25
Views: 12258

Re: 11000 - Bee

Please help me. I am getting WA. my code is given bellow. I calculate fibonacci(n) and fibonacci(n +1) then subtract 1 from both of them and print. #include<stdio.h> unsigned long a; unsigned long fib(unsigned long n) { unsigned long d, b, c, i; a = 1; b = 1; for(i = 1; i <= n; i ++) { c = a; a += b...
by alamgir kabir
Sat Jul 19, 2008 10:55 pm
Forum: Volume 114 (11400-11499)
Topic: 11408 - Count DePrimes
Replies: 12
Views: 5789

Re: 11408 - Count DePrimes

Code: Select all

cut after ac
by alamgir kabir
Sat Jul 19, 2008 10:49 pm
Forum: Volume 101 (10100-10199)
Topic: 10139 - Factovisors
Replies: 80
Views: 27057

Re: 10139 - Factovisors

Please help me. I am getting WA. I think it is really a simple problem but i am getting WA. I use number theory for getting the prime factors of a given factorial then check that the prime factor of the number and the prime factor of the factorial is same or smaller. #include<stdio.h> #include<math...
by alamgir kabir
Sat Jul 12, 2008 8:45 pm
Forum: Volume 114 (11400-11499)
Topic: 11408 - Count DePrimes
Replies: 12
Views: 5789

Re: 11408 - Count DePrimes

I am getting TLE. please help me. I used sieve method to store all the prime between the range. then find the dePrime and store. I use cumulative array to store all the sum. but i am getting TLE. Why?????????? My code is given below #include<iostream> #include<cmath> #define SIZE 5000003 using names...
by alamgir kabir
Sat Jul 12, 2008 8:38 pm
Forum: Volume 103 (10300-10399)
Topic: 10391 - Compound Words
Replies: 40
Views: 17513

Re: 10391 - Compound Words

I am getting TLE. please help me. I use a string array to store all the string. Then I take string and concate every string with it and binary search from the array to check whether compound word is present or not. If present output it. Why I am getting TLE. My code is given bellow. cut after acc th...
by alamgir kabir
Thu Nov 29, 2007 6:26 pm
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 21946

333 Please help me.

Code: Select all

Code removed after acc
by alamgir kabir
Mon Nov 26, 2007 3:46 pm
Forum: Volume 3 (300-399)
Topic: 362 - 18,000 Seconds Remaining
Replies: 75
Views: 26399

362 - WA please help me.

I have got it accepted but very much surprised!!!!!!!!!
Ii's a very much technical and fraction error.
so everyone be careful to handle fraction errors.
I type cast the double into long
Thanks all
by alamgir kabir
Fri Nov 23, 2007 5:27 pm
Forum: Volume 5 (500-599)
Topic: 567 - Risk
Replies: 46
Views: 16876

WA please help me.

Thanks a lot Sapnil.
I have now ACC.

Code: Select all

code removed after ACC.
Thanks.
by alamgir kabir
Fri Nov 23, 2007 5:20 pm
Forum: Volume 4 (400-499)
Topic: 485 - Pascal's Triangle of Death
Replies: 50
Views: 4971

Thanks Jan.
I missed only the line "When any number in the triangle is exceeds or equals 10^60"
I calculate only less than 10^60 so I get WA

Code: Select all

code removed after acc
Thanks again Jan.
by alamgir kabir
Sun Nov 18, 2007 4:17 pm
Forum: Volume 109 (10900-10999)
Topic: 10946 - You want what filled?
Replies: 38
Views: 18228

I have used a queue and used it's size 600
for this I have get wrong ans.
Now I have used size 6000 and get ACC

Thanks everybody
by alamgir kabir
Sun Nov 18, 2007 1:58 pm
Forum: Volume 109 (10900-10999)
Topic: 10946 - You want what filled?
Replies: 38
Views: 18228

WA please help me

My prog has passed successfully
all the sample i/o in the board.
But i am getting wa but why?
please help me......

Code: Select all


//code removed

Please help me.

Thanks.
by alamgir kabir
Wed Nov 14, 2007 3:04 pm
Forum: Volume 106 (10600-10699)
Topic: 10656 - Maximum Sum (II)
Replies: 52
Views: 16335

I do not consider this case.
Now I have acc it.
Thanks a lot Jan. I am greatful to u.

Code: Select all

//code removed
Thanks for helping me.
I hope u wil help me in future.
by alamgir kabir
Fri Nov 09, 2007 3:45 pm
Forum: Volume 106 (10600-10699)
Topic: 10656 - Maximum Sum (II)
Replies: 52
Views: 16335

Code: Select all

//remove
Thanks Jan for helping me.

Go to advanced search