Search found 3 matches

by Dimpl
Tue Jan 06, 2015 4:54 am
Forum: Bugs and suggestions
Topic: 100
Replies: 0
Views: 1187

100

The pdf version of the question reads differently to the html, with regard to the size of the inputs: in the pdf, it says i and j will be less than 10 000, but in the html, it says they will be less than 1 000 000.
by Dimpl
Sun Jan 04, 2015 4:47 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 42865

Re: 102 - Ecological Bin Packing

I don't understand why I received a time out error... the algorithm seems to run fine on my machine.

http://pastebin.com/WxZy9WN8

Thanks!
by Dimpl
Mon Dec 22, 2014 7:00 am
Forum: Volume 100 (10000-10099)
Topic: 10055 - Hashmat the Brave Warrior
Replies: 166
Views: 46068

Re: 10055 - Hashmat the Brave Warrior

Is there any reason that UVa would have an issue with Math.abs? My solution was not accepted until I replaced:

System.out.println(Math.abs(a - b));

with

if (a > b)
System.out.println(b - a);
else
System.out.println(a - b);

Go to advanced search