Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.
ContestId |
Name |
Phase |
Frozen |
Duration (Seconds) |
Relative Time |
Start Time |
---|---|---|---|---|---|---|
331 | ABBYY Cup 3.0 - Finals (online version) | FINISHED | False | 8100 | 357748199 | July 17, 2013, 3:30 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1384 ) | A1 | Oh Sweet Beaverette | PROGRAMMING | brute force implementation | 1400 |
B" -- Oh my sweet Beaverette, would you fancy a walk along a wonderful woodland belt with me? -- Of course, my Smart Beaver! Let us enjoy the splendid view together. How about Friday night? At this point the Smart Beaver got rushing. Everything should be perfect by Friday, so he needed to prepare the belt to the upcoming walk. He needed to cut down several trees. Let's consider the woodland belt as a sequence of trees. Each tree i is described by the esthetic appeal ai -- some trees are very esthetically pleasing, others are 'so-so', and some trees are positively ugly! The Smart Beaver calculated that he needed the following effects to win the Beaverette's heart: Now help the Smart Beaver! Which trees does he need to cut down to win the Beaverette's heart? The first line contains a single integer n -- the initial number of trees in the woodland belt, 2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n. The second line contains space-separated integers ai -- the esthetic appeals of each tree. All esthetic appeals do not exceed 109 in their absolute value. In the first line print two integers -- the total esthetic appeal of the woodland belt after the Smart Beaver's intervention and the number of the cut down trees k. In the next line print k integers -- the numbers of the trees the Beaver needs to cut down. Assume that the trees are numbered from 1 to n from left to right. If there are multiple solutions, print any of them. It is guaranteed that at least two trees have equal esthetic appeal."... |
ABBYY Cup 3.0 — Finals. Solutions |
No solutions yet.