Search found 32 matches

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

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...
Fri Sep 02, 2011 9:04 pm
Forum: Volume 104 (10400-10499)
Topic: 10407 - Simple division
Replies: 34
Views: 11529

Re: 10407 - Simple division

I found the following type of test cases very helpful

Code: Select all

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

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...
Tue Feb 08, 2011 6:58 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 32170

Re: 102

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

Re: 11110 - Equidivision

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

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?
Thu May 27, 2010 5:19 pm
Forum: Volume 115 (11500-11599)
Topic: 11586 - Train Tracks
Replies: 14
Views: 8162

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...
Mon May 03, 2010 6:34 am
Forum: Volume 117 (11700-11799)
Topic: 11736 - Debugging RAM
Replies: 5
Views: 2297

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
Hope it helps. . .
Sun May 02, 2010 4:23 pm
Forum: Volume 111 (11100-11199)
Topic: 11150 - Cola
Replies: 43
Views: 22364

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.
Tue Feb 16, 2010 11:34 pm
Forum: Volume 117 (11700-11799)
Topic: 11770 - Lighting Away
Replies: 27
Views: 8324

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
Tue Feb 16, 2010 10:51 pm
Forum: Algorithms
Topic: need algorithms for these kinds of problems
Replies: 1
Views: 2389

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...
Tue Feb 09, 2010 4:54 pm
Forum: Other words
Topic: Spams trouble
Replies: 3
Views: 4605

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.
Wed Jan 27, 2010 11:18 pm
Forum: Volume 3 (300-399)
Topic: 343 - What Base Is This?
Replies: 72
Views: 21093

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
Sat Jan 16, 2010 11:07 pm
Forum: Volume 117 (11700-11799)
Topic: 11760 - Brother Arif, Please feed us!
Replies: 15
Views: 3958

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...
Wed Jan 13, 2010 10:31 pm
Forum: Volume 105 (10500-10599)