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 |
---|---|---|---|---|---|---|
1386 | Baltic Olympiad in Informatics 2020, Day 1 (IOI, Unofficial Mirror Contest, Unrated) | FINISHED | False | 18000 | 141936911 | July 22, 2020, 11:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 125 ) | B | Mixture | PROGRAMMING | *special data structures geometry math sortings |
B'Serge, the chef of the famous restaurant "Salt, Pepper & Garlic" is trying to obtain his first Michelin star. He has been informed that a secret expert plans to visit his restaurant this evening. Even though the expert 's name hasn 't been disclosed, Serge is certain he knows which dish from the menu will be ordered as well as what the taste preferences of the expert are. Namely, the expert requires an extremely precise proportion of salt, pepper and garlic powder in his dish. Serge keeps a set of bottles with mixtures of salt, pepper and garlic powder on a special shelf in the kitchen. For each bottle, he knows the exact amount of each of the ingredients in kilograms. Serge can combine any number of bottled mixtures (or just use one of them directly) to get a mixture of particular proportions needed for a certain dish. Luckily, the absolute amount of a mixture that needs to be added to a dish is so small that you can assume that the amounts in the bottles will always be sufficient. However, the numeric values describing the proportions may be quite large. Serge would like to know whether it is possible to obtain the expert 's favourite mixture from the available bottles, and if so --what is the smallest possible number of bottles needed to achieve that. Furthermore, the set of bottles on the shelf may change over time as Serge receives new ones or lends his to other chefs. So he would like to answer this question after each such change. For example, assume that expert 's favorite mixture is 1:1:1 and there are three bottles of mixtures on the shelf: To obtain the desired mixture it is enough to use an equivalent amount of mixtures from bottles 1 and 2. If bottle 2 is removed, then it is no longer possible to obtain it. Write a program that helps Serge to solve this task! The first row contains three non-negative integers S_f , P_f and G_f ( 0 <= q S_f, P_f, G_f ; 0 < S_f+P_f+G_f <= q 10^6 ) describing the amount of salt, pepper'... |
T |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
87726610 | emoairx | B | July 23, 2020, 2:19 a.m. | OK | GNU C++11 | TESTS | 73 | 109 | 10547200 | ||
90999574 | duality | B | Aug. 25, 2020, 7:37 p.m. | OK | GNU C++11 | TESTS | 73 | 139 | 4300800 | ||
87854621 | vjudge3 | B | July 24, 2020, 11:14 a.m. | OK | GNU C++11 | TESTS | 73 | 139 | 10137600 | ||
87682243 | clarencechew | B | July 22, 2020, 1:39 p.m. | OK | GNU C++11 | TESTS | 73 | 156 | 9728000 | ||
87854526 | charlieyan | B | July 24, 2020, 11:13 a.m. | OK | GNU C++11 | TESTS | 73 | 156 | 10137600 | ||
89111460 | train_driver | B | Aug. 6, 2020, 10:41 a.m. | OK | GNU C++11 | TESTS | 73 | 312 | 13516800 | ||
87730878 | atoiz | B | July 23, 2020, 4:01 a.m. | OK | GNU C++11 | TESTS | 73 | 358 | 10547200 | ||
87815281 | fagu | B | July 23, 2020, 11:28 p.m. | OK | GNU C++11 | TESTS | 73 | 451 | 11571200 | ||
87815326 | fagu | B | July 23, 2020, 11:31 p.m. | OK | GNU C++11 | TESTS | 73 | 452 | 11571200 | ||
87935251 | fagu | B | July 24, 2020, 6:44 p.m. | OK | GNU C++11 | TESTS | 73 | 483 | 11673600 | ||
87978632 | KMAASZRAA | B | July 25, 2020, 10:31 a.m. | OK | GNU C++14 | TESTS | 73 | 218 | 11673600 | ||
87978592 | KMAASZRAA | B | July 25, 2020, 10:31 a.m. | OK | GNU C++14 | TESTS | 73 | 233 | 11673600 | ||
88763118 | krijgertje | B | Aug. 2, 2020, 11 p.m. | OK | GNU C++14 | TESTS | 73 | 280 | 12083200 | ||
87684129 | rfpermen | B | July 22, 2020, 1:55 p.m. | OK | GNU C++14 | TESTS | 73 | 327 | 36454400 | ||
89550042 | Aaeria | B | Aug. 11, 2020, 5:24 a.m. | OK | GNU C++14 | TESTS | 73 | 592 | 14745600 | ||
87679188 | Chelly | B | July 22, 2020, 1:11 p.m. | OK | GNU C++14 | TESTS | 73 | 1216 | 32972800 | ||
89536584 | AlanChen | B | Aug. 10, 2020, 9:23 p.m. | OK | GNU C++14 | TESTS | 73 | 2089 | 8704000 | ||
88240946 | kamilos1089 | B | July 28, 2020, 11:53 p.m. | OK | GNU C++17 | TESTS | 73 | 186 | 8704000 | ||
88733465 | Renaats | B | Aug. 2, 2020, 1:13 p.m. | OK | GNU C++17 | TESTS | 73 | 218 | 20275200 | ||
87722282 | Shayan.P | B | July 22, 2020, 11:24 p.m. | OK | GNU C++17 | TESTS | 73 | 218 | 20582400 | ||
87675969 | imeimi | B | July 22, 2020, 12:40 p.m. | OK | GNU C++17 | TESTS | 73 | 233 | 11571200 | ||
88731808 | gs18115 | B | Aug. 2, 2020, 12:46 p.m. | OK | GNU C++17 | TESTS | 73 | 311 | 13926400 | ||
88108226 | Mr.Robot_28 | B | July 27, 2020, 8:06 a.m. | OK | GNU C++17 | TESTS | 73 | 342 | 9728000 | ||
87689789 | fedoseev.timofey | B | July 22, 2020, 2:50 p.m. | OK | GNU C++17 | TESTS | 73 | 592 | 55808000 | ||
87709024 | icecuber | B | July 22, 2020, 6:30 p.m. | OK | GNU C++17 | TESTS | 73 | 811 | 21196800 | ||
87729836 | tabr | B | July 23, 2020, 3:36 a.m. | OK | GNU C++17 | TESTS | 73 | 826 | 9318400 | ||
87694396 | firecookie | B | July 22, 2020, 3:29 p.m. | OK | GNU C++17 | TESTS | 73 | 889 | 11366400 | ||
87679810 | dacin21 | B | July 22, 2020, 1:16 p.m. | OK | GNU C++17 (64) | TESTS | 73 | 124 | 12800000 | ||
87734113 | 2qbingxuan | B | July 23, 2020, 5:09 a.m. | OK | GNU C++17 (64) | TESTS | 73 | 155 | 10854400 | ||
87954420 | Combi | B | July 25, 2020, 3:32 a.m. | OK | GNU C++17 (64) | TESTS | 73 | 171 | 12390400 | ||
87697622 | Benq | B | July 22, 2020, 3:59 p.m. | OK | GNU C++17 (64) | TESTS | 73 | 187 | 11264000 | ||
88110419 | cz_xuyixuan | B | July 27, 2020, 8:38 a.m. | OK | GNU C++17 (64) | TESTS | 73 | 187 | 12390400 | ||
87681510 | jiangly | B | July 22, 2020, 1:32 p.m. | OK | GNU C++17 (64) | TESTS | 73 | 187 | 16076800 | ||
87694536 | Elegia | B | July 22, 2020, 3:31 p.m. | OK | GNU C++17 (64) | TESTS | 73 | 187 | 22835200 | ||
89829023 | walnutwaldo20 | B | Aug. 13, 2020, 9:57 p.m. | OK | GNU C++17 (64) | TESTS | 73 | 202 | 6451200 | ||
91233981 | JeanBombeur | B | Aug. 28, 2020, 5:47 p.m. | OK | GNU C++17 (64) | TESTS | 73 | 202 | 6963200 | ||
87708375 | 300iqWontWinIOI2020 | B | July 22, 2020, 6:22 p.m. | OK | GNU C++17 (64) | TESTS | 73 | 202 | 11264000 | ||
88900683 | Tlatoani | B | Aug. 4, 2020, 7:48 p.m. | OK | Java 8 | TESTS | 73 | 404 | 26726400 |
Back to search problems