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 |
---|---|---|---|---|---|---|
1473 | Educational Codeforces Round 102 (Rated for Div. 2) | FINISHED | False | 7200 | 126631463 | Jan. 14, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 985 ) | F | Strange Set | PROGRAMMING | flows |
B"Note that the memory limit is unusual. You are given an integer n and two sequences a_1, a_2, ... , a_n and b_1, b_2, ... , b_n . Let's call a set of integers S such that S subseteq {1, 2, 3, ... , n } strange, if, for every element i of S , the following condition is met: for every j in [1, i - 1] , if a_j divides a_i , then j is also included in S . An empty set is always strange. The cost of the set S is sum limits_{i in S} b_i . You have to calculate the maximum possible cost of a strange set. The first line contains one integer n ( 1 <= n <= 3000 ). The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 100 ). The third line contains n integers b_1, b_2, ... , b_n ( -10^5 <= b_i <= 10^5 ). Print one integer -- the maximum cost of a strange set. The strange set with the maximum cost in the first example is {1, 2, 4, 8, 9 } . The strange set with the maximum cost in the second example is empty. "... |
Educational Codeforces Round 102 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
104376698 | liangs333 | F | Jan. 15, 2021, 4:11 a.m. | OK | GNU C++11 | TESTS | 52 | 46 | 1638400 | ||
104355679 | FluffyBunny | F | Jan. 14, 2021, 5:48 p.m. | OK | GNU C++11 | TESTS | 52 | 62 | 7372800 | ||
104348825 | wiwitrifai | F | Jan. 14, 2021, 4:37 p.m. | OK | GNU C++11 | TESTS | 52 | 78 | 2252800 | ||
104377621 | prabowo | F | Jan. 15, 2021, 4:35 a.m. | OK | GNU C++11 | TESTS | 52 | 93 | 1331200 | ||
104357906 | serotonin | F | Jan. 14, 2021, 6:20 p.m. | OK | GNU C++11 | TESTS | 52 | 93 | 1740800 | ||
104369636 | zzctommy | F | Jan. 14, 2021, 11:47 p.m. | OK | GNU C++11 | TESTS | 52 | 280 | 1331200 | ||
104341488 | 8178541919 | F | Jan. 14, 2021, 4:25 p.m. | OK | GNU C++11 | TESTS | 52 | 295 | 11366400 | ||
104381184 | Joysh | F | Jan. 15, 2021, 6:02 a.m. | OK | GNU C++11 | TESTS | 52 | 296 | 3481600 | ||
104372165 | Hongzy | F | Jan. 15, 2021, 1:47 a.m. | OK | GNU C++11 | TESTS | 52 | 312 | 5017600 | ||
104370659 | Suiseiseki | F | Jan. 15, 2021, 12:37 a.m. | OK | GNU C++11 | TESTS | 52 | 327 | 19353600 | ||
104372046 | BhaskarTM | F | Jan. 15, 2021, 1:43 a.m. | OK | GNU C++14 | TESTS | 52 | 171 | 3891200 | ||
104349031 | sg0071729 | F | Jan. 14, 2021, 4:38 p.m. | OK | GNU C++14 | TESTS | 52 | 233 | 5734400 | ||
104352586 | NaimSS | F | Jan. 14, 2021, 5:08 p.m. | OK | GNU C++14 | TESTS | 52 | 234 | 3174400 | ||
104360248 | SlowDecay | F | Jan. 14, 2021, 6:58 p.m. | OK | GNU C++14 | TESTS | 52 | 234 | 5734400 | ||
104354504 | elvahs | F | Jan. 14, 2021, 5:31 p.m. | OK | GNU C++14 | TESTS | 52 | 295 | 1228800 | ||
104347560 | HOYITIO | F | Jan. 14, 2021, 4:33 p.m. | OK | GNU C++14 | TESTS | 52 | 312 | 19763200 | ||
104365957 | rainnoob | F | Jan. 14, 2021, 9:19 p.m. | OK | GNU C++14 | TESTS | 52 | 545 | 1331200 | ||
104365506 | Chinchila | F | Jan. 14, 2021, 9:04 p.m. | OK | GNU C++17 | TESTS | 52 | 78 | 1228800 | ||
104365292 | outline | F | Jan. 14, 2021, 8:58 p.m. | OK | GNU C++17 | TESTS | 52 | 78 | 7577600 | ||
104370560 | lightseba | F | Jan. 15, 2021, 12:33 a.m. | OK | GNU C++17 | TESTS | 52 | 93 | 716800 | ||
104375356 | JustWayYouAre | F | Jan. 15, 2021, 3:35 a.m. | OK | GNU C++17 | TESTS | 52 | 93 | 16691200 | ||
104359790 | cheetose | F | Jan. 14, 2021, 6:50 p.m. | OK | GNU C++17 | TESTS | 52 | 108 | 921600 | ||
104365876 | peti1234 | F | Jan. 14, 2021, 9:16 p.m. | OK | GNU C++17 | TESTS | 52 | 109 | 2252800 | ||
104339853 | imadKAGE | F | Jan. 14, 2021, 4:23 p.m. | OK | GNU C++17 | TESTS | 52 | 139 | 3481600 | ||
104367418 | VLamarca | F | Jan. 14, 2021, 10:13 p.m. | OK | GNU C++17 | TESTS | 52 | 156 | 2355200 | ||
104356688 | invictus_123 | F | Jan. 14, 2021, 6:02 p.m. | OK | GNU C++17 | TESTS | 52 | 156 | 3891200 | ||
104356284 | invictus_123 | F | Jan. 14, 2021, 5:56 p.m. | OK | GNU C++17 | TESTS | 52 | 171 | 3891200 | ||
104369816 | PurpleCrayon | F | Jan. 14, 2021, 11:57 p.m. | OK | GNU C++17 (64) | TESTS | 52 | 31 | 2969600 | ||
104372796 | generic_placeholder_name | F | Jan. 15, 2021, 2:12 a.m. | OK | GNU C++17 (64) | TESTS | 52 | 46 | 2560000 | ||
104367050 | PurpleCrayon | F | Jan. 14, 2021, 9:58 p.m. | OK | GNU C++17 (64) | TESTS | 52 | 46 | 2969600 | ||
104343692 | ei133333 | F | Jan. 14, 2021, 4:27 p.m. | OK | GNU C++17 (64) | TESTS | 52 | 62 | 2457600 | ||
104362175 | Mr.Robot_28 | F | Jan. 14, 2021, 7:37 p.m. | OK | GNU C++17 (64) | TESTS | 52 | 77 | 1433600 | ||
104365178 | otera | F | Jan. 14, 2021, 8:55 p.m. | OK | GNU C++17 (64) | TESTS | 52 | 78 | 2662400 | ||
104375136 | lover | F | Jan. 15, 2021, 3:28 a.m. | OK | GNU C++17 (64) | TESTS | 52 | 78 | 16588800 | ||
104360130 | 12tqian | F | Jan. 14, 2021, 6:56 p.m. | OK | GNU C++17 (64) | TESTS | 52 | 93 | 2150400 | ||
104360080 | 12tqian | F | Jan. 14, 2021, 6:55 p.m. | OK | GNU C++17 (64) | TESTS | 52 | 93 | 2560000 | ||
104354465 | kiyoshi0205 | F | Jan. 14, 2021, 5:31 p.m. | OK | GNU C++17 (64) | TESTS | 52 | 93 | 2764800 |
Back to search problems