Nice to know you liked the problem!! :)
I was also thinking of a (binary search + greedy) solution but wasn't too sure about it. I basically wrote the judge solution with (binary search + network flow).
Can you share your greedy approach?
I am newbie in C++, so would you tell me please how could ...
Search found 8 matches
- Wed Jan 24, 2007 3:10 am
- Forum: Volume 111 (11100-11199)
- Topic: 11157 - Dynamic Frog
- Replies: 22
- Views: 18367
- Wed Jan 24, 2007 1:26 am
- Forum: Volume 111 (11100-11199)
- Topic: 11155 - Be Efficient
- Replies: 15
- Views: 13168
- Fri Jan 05, 2007 8:54 am
- Forum: Volume 111 (11100-11199)
- Topic: 11148 - Moliu Fractions
- Replies: 19
- Views: 15596
- Fri Jan 05, 2007 4:50 am
- Forum: Other words
- Topic: dynamic programming with profile
- Replies: 1
- Views: 2924
dynamic programming with profile
I wish you to post some problems from UVA which could be solved using dynamic programming with profile. I couldn't find anything with http://shygypsy.com
- Fri Jan 05, 2007 4:32 am
- Forum: Volume 111 (11100-11199)
- Topic: 11148 - Moliu Fractions
- Replies: 19
- Views: 15596
In the contest I got AC, but in the oj I got restricted function. What should I do?
Code: Select all
got AC
- Mon Jan 01, 2007 5:25 am
- Forum: Volume 111 (11100-11199)
- Topic: 11151 - Longest Palindrome
- Replies: 65
- Views: 43067
- Sun Dec 31, 2006 12:43 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11151 - Longest Palindrome
- Replies: 65
- Views: 43067
- Sun Dec 31, 2006 12:02 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11151 - Longest Palindrome
- Replies: 65
- Views: 43067
Hi. I am newcomer in c++ language. I got ac in the contest with pascal, but same algorithm in c++ got wa. I wish somebody explain me, what is wrong in c++ code:Giorgi wrote:there is no critical input. what algorithm did you use?
Code: Select all
got AC