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 |
|---|---|---|---|---|---|---|
| 45 | School Team Contest 3 (Winter Computer School 2010/11) | FINISHED | False | 18000 | 486673180 | Nov. 13, 2010, 11 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 2781 ) | I | TCMCF+++ | PROGRAMMING | greedy | 1500 |
Vasya has gotten interested in programming contests in TCMCF+++ rules. On the contest n problems were suggested and every problem had a cost — a certain integral number of points (perhaps, negative or even equal to zero). According to TCMCF+++ rules, only accepted problems can earn points and the overall number of points of a contestant was equal to the product of the costs of all the problems he/she had completed. If a person didn't solve anything, then he/she didn't even appear in final standings and wasn't considered as participant. Vasya understood that to get the maximal number of points it is not always useful to solve all the problems. Unfortunately, he understood it only after the contest was finished. Now he asks you to help him: find out what problems he had to solve to earn the maximal number of points. The first line contains an integer n ( 1 ≤ n ≤ 100 ) — the number of the suggested problems. The next line contains n space-separated integers c i ( - 100 ≤ c i ≤ 100 ) — the cost of the i -th task. The tasks' costs may coinсide. Print space-separated the costs of the problems that needed to be solved to get the maximal possible number of points. Do not forget, please, that it was necessary to solve at least one problem. If there are several solutions to that problem, print any of them. |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 194596 | Frodo94 | I | Nov. 13, 2010, 3:10 p.m. | OK | Delphi | TESTS | 65 | 30 | 819200 | 1500 | |
| 192825 | Steelrat Firen mandarinka | I | Nov. 13, 2010, 12:44 p.m. | OK | Delphi | TESTS | 65 | 30 | 819200 | 1500 | |
| 192557 | Red_November AnyMAX Parapheen | I | Nov. 13, 2010, 12:28 p.m. | OK | Delphi | TESTS | 65 | 30 | 819200 | 1500 | |
| 192012 | DarkRaven nook Laurelindorinen | I | Nov. 13, 2010, 11:59 a.m. | OK | Delphi | TESTS | 65 | 30 | 819200 | 1500 | |
| 194632 | masha | I | Nov. 13, 2010, 3:14 p.m. | OK | Delphi | TESTS | 65 | 30 | 921600 | 1500 | |
| 194088 | Denor albotros Xottab | I | Nov. 13, 2010, 2:15 p.m. | OK | Delphi | TESTS | 65 | 30 | 921600 | 1500 | |
| 193954 | mishanay hallodogy | I | Nov. 13, 2010, 2:03 p.m. | OK | Delphi | TESTS | 65 | 30 | 921600 | 1500 | |
| 193852 | DanDrago | I | Nov. 13, 2010, 1:52 p.m. | OK | Delphi | TESTS | 65 | 30 | 921600 | 1500 | |
| 193770 | daraseliya vovapolu Qary. | I | Nov. 13, 2010, 1:47 p.m. | OK | Delphi | TESTS | 65 | 30 | 921600 | 1500 | |
| 193617 | grigory51 Filins Kiberbit | I | Nov. 13, 2010, 1:37 p.m. | OK | Delphi | TESTS | 65 | 30 | 921600 | 1500 | |
| 194500 | WladFed DenisPodlesnykh | I | Nov. 13, 2010, 2:59 p.m. | OK | FPC | TESTS | 65 | 30 | 819200 | 1500 | |
| 194347 | Vikont133 Antil alexpatushin | I | Nov. 13, 2010, 2:42 p.m. | OK | FPC | TESTS | 65 | 30 | 819200 | 1500 | |
| 193667 | maniak Venture | I | Nov. 13, 2010, 1:40 p.m. | OK | FPC | TESTS | 65 | 30 | 819200 | 1500 | |
| 192886 | Kraev Roschin Petrushenko | I | Nov. 13, 2010, 12:47 p.m. | OK | FPC | TESTS | 65 | 30 | 819200 | 1500 | |
| 192794 | kostya_by | I | Nov. 13, 2010, 12:42 p.m. | OK | FPC | TESTS | 65 | 30 | 819200 | 1500 | |
| 192087 | BrightDays Lapenkov Surogatov_S | I | Nov. 13, 2010, 12:03 p.m. | OK | FPC | TESTS | 65 | 30 | 819200 | 1500 | |
| 191879 | flashmt | I | Nov. 13, 2010, 11:52 a.m. | OK | FPC | TESTS | 65 | 30 | 819200 | 1500 | |
| 191845 | Luzan Isachenko Tatyana_Petrashko | I | Nov. 13, 2010, 11:51 a.m. | OK | FPC | TESTS | 65 | 30 | 819200 | 1500 | |
| 191819 | Oryshych | I | Nov. 13, 2010, 11:50 a.m. | OK | FPC | TESTS | 65 | 30 | 819200 | 1500 | |
| 191531 | ZumZoom taras.klaskovsky iRomchig | I | Nov. 13, 2010, 11:36 a.m. | OK | FPC | TESTS | 65 | 30 | 819200 | 1500 | |
| 191631 | zpl1 chensqi plokzfadai | I | Nov. 13, 2010, 11:40 a.m. | OK | GNU C | TESTS | 65 | 30 | 1331200 | 1500 | |
| 194983 | yulya3102 ryad0m boltonidze | I | Nov. 13, 2010, 3:51 p.m. | OK | GNU C++ | TESTS | 65 | 30 | 1331200 | 1500 | |
| 194950 | 123pro nguyentiennam2910 | I | Nov. 13, 2010, 3:48 p.m. | OK | GNU C++ | TESTS | 65 | 30 | 1331200 | 1500 | |
| 194897 | yulya3102 ryad0m boltonidze | I | Nov. 13, 2010, 3:43 p.m. | OK | GNU C++ | TESTS | 65 | 30 | 1331200 | 1500 | |
| 193846 | Ksunya | I | Nov. 13, 2010, 1:52 p.m. | OK | GNU C++ | TESTS | 65 | 30 | 1331200 | 1500 | |
| 193372 | lyrics | I | Nov. 13, 2010, 1:20 p.m. | OK | GNU C++ | TESTS | 65 | 30 | 1331200 | 1500 | |
| 193009 | cheptil Arcady27 VilgO | I | Nov. 13, 2010, 12:55 p.m. | OK | GNU C++ | TESTS | 65 | 30 | 1331200 | 1500 | |
| 192990 | OKOKOK SamerSeed Aleksey | I | Nov. 13, 2010, 12:54 p.m. | OK | GNU C++ | TESTS | 65 | 30 | 1331200 | 1500 | |
| 192563 | random_2 | I | Nov. 13, 2010, 12:29 p.m. | OK | GNU C++ | TESTS | 65 | 30 | 1331200 | 1500 | |
| 192525 | Nicolai_Kovrov golovozhop | I | Nov. 13, 2010, 12:26 p.m. | OK | GNU C++ | TESTS | 65 | 30 | 1331200 | 1500 | |
| 192488 | hpfdf ysyshtc | I | Nov. 13, 2010, 12:24 p.m. | OK | GNU C++ | TESTS | 65 | 30 | 1331200 | 1500 | |
| 191834 | master_j Abra Andronnix | I | Nov. 13, 2010, 11:50 a.m. | OK | Java 6 | TESTS | 65 | 110 | 43315200 | 1500 | |
| 192468 | riadwaw Lmshonok HeroShadow | I | Nov. 13, 2010, 12:23 p.m. | OK | MS C++ | TESTS | 65 | 30 | 1331200 | 1500 | |
| 191982 | Och-Iv2000 Palci-Udalci RomaKoks | I | Nov. 13, 2010, 11:58 a.m. | OK | MS C++ | TESTS | 65 | 30 | 1331200 | 1500 | |
| 191942 | Kostroma Dimp maxim-m94 | I | Nov. 13, 2010, 11:56 a.m. | OK | MS C++ | TESTS | 65 | 30 | 1331200 | 1500 | |
| 191924 | The_Guardian kirill vanilla | I | Nov. 13, 2010, 11:55 a.m. | OK | MS C++ | TESTS | 65 | 30 | 1331200 | 1500 | |
| 191903 | yvasyliv knock-knock Renderhp | I | Nov. 13, 2010, 11:54 a.m. | OK | MS C++ | TESTS | 65 | 30 | 1331200 | 1500 | |
| 191706 | antonkov | I | Nov. 13, 2010, 11:44 a.m. | OK | MS C++ | TESTS | 65 | 30 | 1331200 | 1500 | |
| 191615 | iroro xyz StopKran | I | Nov. 13, 2010, 11:39 a.m. | OK | MS C++ | TESTS | 65 | 30 | 1331200 | 1500 | |
| 191556 | NikitaD | I | Nov. 13, 2010, 11:37 a.m. | OK | MS C++ | TESTS | 65 | 30 | 1331200 | 1500 | |
| 191377 | xDDD 2a2l | I | Nov. 13, 2010, 11:30 a.m. | OK | MS C++ | TESTS | 65 | 30 | 1331200 | 1500 | |
| 191375 | skaramouche | I | Nov. 13, 2010, 11:30 a.m. | OK | MS C++ | TESTS | 65 | 30 | 1331200 | 1500 |
Back to search problems