Search found 32 matches

by Taman
Fri Jun 08, 2012 11:55 pm
Forum: Bugs and suggestions
Topic: Problem 11556-Wrong Data
Replies: 0
Views: 1648

Problem 11556-Wrong Data

Input The input file contains several test cases, each of them as described below. The input consists of two integers N ( 1<=N<=10^15 ) and b ( 0<b<50 ), giving the number of files in your collection and the maximum number of bits a compressed file is allowed to have. But I'm sure that there are ca...
by Taman
Fri Sep 02, 2011 9:04 pm
Forum: Volume 104 (10400-10499)
Topic: 10407 - Simple division
Replies: 34
Views: 11790

Re: 10407 - Simple division

I found the following type of test cases very helpful :wink: :wink:

Code: Select all

2 4 6 8 0
5 10 0
0
by Taman
Tue Feb 08, 2011 7:07 pm
Forum: Volume 119 (11900-11999)
Topic: 11908 - Skyscraper
Replies: 6
Views: 2099

Re: 11908 - Skyscrapper

Spoiler I got accepted by implementing O(N) dp. think that when I am thinking from i'th floor, suppose I can place an advertisement that is x floors long and have a profit of p unit. so profit[i+x]=max(profit[i+x],profit[i-1]+p); P.S.: please don't misunderstand,this is copy-pasted from Topcoder for...
by Taman
Tue Feb 08, 2011 6:58 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 49653

Re: 102

@Russel07: will it be sort(c,c+5) or sort(c,c+6)?
by Taman
Sat Jan 15, 2011 6:49 pm
Forum: Volume 111 (11100-11199)
Topic: 11110 - Equidivisions
Replies: 33
Views: 18984

Re: 11110 - Equidivision

One of the worst problem description and judge data set I have ever faced. . .
by Taman
Fri Jan 14, 2011 11:59 pm
Forum: Volume 1 (100-199)
Topic: 143 - Orchard Trees
Replies: 90
Views: 12631

Re: 143 Orchard Tree TLE

tgoulart wrote:Try these:

Code: Select all

1 1 1 1 1.1 1.1
99.00001 99.00001 99.99999 99.99999 99.99999 99.99999
0 0 0 0 0 0

Code: Select all

 1
0
well i can't understand how 1 1 1 1 1.1 1.1 points make a triangle. I also found a similar test case by Sohel bro which says that 1 1 2 2 3 3 as a valid input. Am i missing something?
by Taman
Thu May 27, 2010 5:19 pm
Forum: Volume 115 (11500-11599)
Topic: 11586 - Train Tracks
Replies: 14
Views: 8319

Re: 11586 - Train Tracks

@Aliahmed: You can do it simply by counting male & female conector. if male conector equals to female conector then LOOP other wise NO LOOP Well then consider the case, 1 MF FM What should be the output? Or have I misunderstood the problem? My AC program gives "NO LOOP" as output, and I think it sho...
by Taman
Mon May 03, 2010 6:34 am
Forum: Volume 117 (11700-11799)
Topic: 11736 - Debugging RAM
Replies: 5
Views: 2339

Re: debugging ram

@Tanmoy:
I am afraid you have forgotten that there are multiple test cases(At least your code agrees with me). Make sure that you are taking all the inputs :wink:
Hope it helps. . .
by Taman
Sun May 02, 2010 4:23 pm
Forum: Volume 111 (11100-11199)
Topic: 11150 - Cola
Replies: 43
Views: 22753

Re: 11150 - Cola

@shinningangel:
Well, as the range of n is very small(only 200), I don't think you are getting RTE for stack overflow.
Two more vital reasons are left, first of all, if you are using array to keep your input or output check the size of it.
Second, Make sure you are not dividing any number by zero.
by Taman
Tue Feb 16, 2010 11:34 pm
Forum: Volume 117 (11700-11799)
Topic: 11770 - Lighting Away
Replies: 27
Views: 8540

Re: WA in problem 11770

@calicratis19:
Well, you should try this case,
1
4 5
1 2
2 1
2 3
3 2
4 2

The output should be 1, where your code prints 2. . .
Hope it helps :)
by Taman
Tue Feb 16, 2010 10:51 pm
Forum: Algorithms
Topic: need algorithms for these kinds of problems
Replies: 1
Views: 2416

Re: need algorithms for these kinds of problems

Well, you should just enhance your string knowledge more :). As u r looking to hold thousands of digits, look, a string can even store 10^7 digits :) so take the input as a string. and then you should just convert a character from ASCII value to numeric value and use them as you want. If you need fu...
by Taman
Tue Feb 09, 2010 4:54 pm
Forum: Other words
Topic: Spams trouble
Replies: 3
Views: 4707

Spams trouble

I want to draw the attention of the admins that spams are making a great trouble now a days. In addition reporting spam does not work well, as I see a spam still in the same place after reporting it more than a month ago.
Hope steps will be taken to make the forum more enjoyable :)
~Thanks.
by Taman
Wed Jan 27, 2010 11:18 pm
Forum: Volume 3 (300-399)
Topic: 343 - What Base Is This?
Replies: 72
Views: 21454

Re: 343(What Base is This?)

You should try to avoid built_in pow() function for this type of problem. It may cause some troubles. . .I also got a WA and when I removed the pow() function, I got accepted ;)
Hope it helps :)
by Taman
Sat Jan 16, 2010 11:07 pm
Forum: Volume 117 (11700-11799)
Topic: 11760 - Brother Arif, Please feed us!
Replies: 15
Views: 4125

Re: 11760(brother arif please feed us!) Runtime error.

In this problem i got runtime error all time. but i do not understand why this is?please help me. Well, i have not read your full code, but what i have found is, you have used a two dimensional array to keep track of the 2d grid. But the grid size may be 10000*10000 for this problem; I am afraid po...
by Taman
Wed Jan 13, 2010 10:31 pm
Forum: Volume 105 (10500-10599)
Topic: 10545 - Maximal Quadrilateral
Replies: 13
Views: 6310

Re: 10545 - Maximal Quadrilateral

It can be solved without any hint of the mathworld. I found it to be one of the easiest geometrical problem set by Shahriar Manzoor sir.
I agree with what little joey said. There exist either one or zero quadrilateral that satisfies the conditions. :)

Go to advanced search