Search found 67 matches
- Wed Jul 12, 2006 3:06 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11034 - Ferry Loading IV
- Replies: 15
- Views: 7425
The ferry is initially on the left bank where it broke and it took quite some time to fix it. In the meantime, lines of cars formed on both banks that await to cross the river. In other words, cars on left side never have to wait on cars on the right side and vice verca. Two seperate waiting lines....
- Sun Jun 04, 2006 10:13 am
- Forum: Volume 2 (200-299)
- Topic: 208 - Firetruck
- Replies: 48
- Views: 17058
If there is a thread about your problem, please use it.
This question has already been asked in this thread:
http://online-judge.uva.es/board/viewtopic.php?t=6581
This question has already been asked in this thread:
http://online-judge.uva.es/board/viewtopic.php?t=6581
- Sat Jun 03, 2006 10:02 am
- Forum: Volume 100 (10000-10099)
- Topic: 10038 - Jolly Jumpers
- Replies: 445
- Views: 96729
I think you need to read the input/output specifications of the problem more carefully. Your program needs to handle more than one case (more than one line of input). That is, you should not have to restart your program for every new case, it should keep reading input until there is no more input to...
- Thu Jun 01, 2006 6:22 pm
- Forum: Volume 4 (400-499)
- Topic: 497 - Strategic Defense Initiative
- Replies: 144
- Views: 24765
- Thu Jun 01, 2006 12:37 pm
- Forum: Volume 4 (400-499)
- Topic: 497 - Strategic Defense Initiative
- Replies: 144
- Views: 24765
- Tue May 30, 2006 2:30 pm
- Forum: Volume 3 (300-399)
- Topic: 386 - Perfect Cubes
- Replies: 53
- Views: 8837
- Tue May 30, 2006 2:10 pm
- Forum: Volume 1 (100-199)
- Topic: 160 - Factors and Factorials
- Replies: 205
- Views: 29525
Try this input and see if you can spot your error (and don't forget to remove your code after you get AC).
input:
input:
Code: Select all
45
47
49
0
- Mon May 29, 2006 6:28 pm
- Forum: Volume 4 (400-499)
- Topic: 495 - Fibonacci Freeze
- Replies: 222
- Views: 36858
- Mon May 29, 2006 6:17 pm
- Forum: Volume 6 (600-699)
- Topic: 623 - 500!
- Replies: 187
- Views: 49348
As for the basic idea of biginteger multiplication. There are of course several methods and it all depends on how efficient you want it to be and how big numbers you have as well as what you want to use it for. But as a basic idea, you should represent your numbers as arrays of words, where each wor...
- Mon May 29, 2006 5:35 pm
- Forum: Volume 6 (600-699)
- Topic: 623 - 500!
- Replies: 187
- Views: 49348
- Mon May 29, 2006 5:03 pm
- Forum: Volume 4 (400-499)
- Topic: 495 - Fibonacci Freeze
- Replies: 222
- Views: 36858
- Mon May 22, 2006 6:42 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10769 - Pillars
- Replies: 22
- Views: 11519
At first glance your code looks fine to me. The only input I can come up with, which your program would fail on, is one that contains pieces of 0 height. Such as: 3 1 1 1 0 1 1 0 0 0 As I read the problem statement, the total height h is equal or greater to 1, but no such guarantee is made for the i...
- Fri Sep 23, 2005 12:45 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10200 - Prime Time
- Replies: 202
- Views: 67242
- Fri Jun 03, 2005 10:49 am
- Forum: Volume 107 (10700-10799)
- Topic: 10722 - Super Lucky Numbers
- Replies: 25
- Views: 10598
I ran a full search on your outputs, and you fail to strip a leading zero from one of your bignums before you print it.
input:
Otherwise all your outputs look ok.
input:
Code: Select all
5 53
0 0
- Mon May 30, 2005 10:42 am
- Forum: Volume 101 (10100-10199)
- Topic: 10139 - Factovisors
- Replies: 80
- Views: 30775
Re: 10139 Better Algorithm ?
I think it's the endless loop that gives you TLE.CodeJerk wrote:Code: Select all
do{ ... } while (true);