Codeforces Round 883 (Div. 3)

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
1846 Codeforces Round 883 (Div. 3) FINISHED False 8100 87665123 July 7, 2023, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 5617 ) G Rudolf and CodeVid-23 PROGRAMMING bitmasks dp graphs greedy shortest paths

A new virus called "CodeVid-23" has spread among programmers. Rudolf, being a programmer, was not able to avoid it. There are (n) symptoms numbered from (1) to (n) that can appear when infected. Initially, Rudolf has some of them. He went to the pharmacy and bought (m) medicines. For each medicine, the number of days it needs to be taken is known, and the set of symptoms it removes. Unfortunately, medicines often have side effects. Therefore, for each medicine, the set of symptoms that appear when taking it is also known. After reading the instructions, Rudolf realized that taking more than one medicine at a time is very unhealthy. Rudolph wants to be healed as soon as possible. Therefore, he asks you to calculate the minimum number of days to remove all symptoms, or to say that it is impossible. The first line contains a single integer (t) ((1 \le t \le 100)) — the number of test cases. Then follow the descriptions of the test cases. The first line of each test case contains two integers (n, m) ((1 \le n \le 10, 1 \le m \le 10^3)) — the number of symptoms and medicines, respectively. The second line of each test case contains a string of length (n) consisting of the characters (0) and (1) — the description of Rudolf's symptoms. If the (i)-th character of the string is (1), Rudolf has the (i)-th symptom, otherwise he does not. Then follow (3 \cdot m) lines — the description of the medicines. The first line of each medicine description contains an integer (d) ((1 \le d \le 10^3)) — the number of days the medicine needs to be taken. The next two lines of the medicine description contain two strings of length (n), consisting of the characters (0) and (1) — the description of the symptoms it removes and the description of the side effects. In the first of the two lines, (1) at position (i) means that the medicine removes the (i)-th symptom, and (0) otherwise. In the

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
212748847 CLOCKS_PER_SEC G July 8, 2023, 12:45 a.m. OK GNU C++14 TESTS 20 15 102400
212774256 MongoRolls G July 8, 2023, 5:59 a.m. OK GNU C++14 TESTS 20 15 204800
212773861 88ion G July 8, 2023, 5:55 a.m. OK GNU C++14 TESTS 20 15 204800
212762591 greenhand.n G July 8, 2023, 3:47 a.m. OK GNU C++14 TESTS 20 15 204800
212759862 solitude3freedom G July 8, 2023, 3:17 a.m. OK GNU C++14 TESTS 20 15 204800
212747361 lukehsiao G July 8, 2023, 12:17 a.m. OK GNU C++14 TESTS 20 15 204800
212719581 Anupam_Ghosh G July 7, 2023, 6:42 p.m. OK GNU C++14 TESTS 20 15 409600
212767125 Leo_W G July 8, 2023, 4:43 a.m. OK GNU C++14 TESTS 20 15 4812800
212772733 AKAMAN G July 8, 2023, 5:43 a.m. OK GNU C++14 TESTS 20 31 307200
212737500 rakesh272611 G July 7, 2023, 9:24 p.m. OK GNU C++14 TESTS 20 31 307200
212773212 NTG_Adiord G July 8, 2023, 5:48 a.m. OK GNU C++17 TESTS 20 15 0
212772792 NTG_Adiord G July 8, 2023, 5:44 a.m. OK GNU C++17 TESTS 20 15 204800
212770104 Rishikesh_Reddy_ G July 8, 2023, 5:16 a.m. OK GNU C++17 TESTS 20 15 204800
212769816 Rishikesh_Reddy_ G July 8, 2023, 5:13 a.m. OK GNU C++17 TESTS 20 15 204800
212764864 openmi G July 8, 2023, 4:13 a.m. OK GNU C++17 TESTS 20 15 204800
212763242 54fw_duck G July 8, 2023, 3:54 a.m. OK GNU C++17 TESTS 20 15 204800
212761291 bijinacm G July 8, 2023, 3:33 a.m. OK GNU C++17 TESTS 20 15 204800
212761194 FW_Tntac G July 8, 2023, 3:32 a.m. OK GNU C++17 TESTS 20 15 204800
212761024 _practice0_ G July 8, 2023, 3:30 a.m. OK GNU C++17 TESTS 20 15 204800
212760810 harman_69 G July 8, 2023, 3:27 a.m. OK GNU C++17 TESTS 20 15 204800
212735754 awesomeguy856 G July 7, 2023, 9:01 p.m. OK GNU C++17 (64) TESTS 20 15 102400
212734887 monkey8 G July 7, 2023, 8:52 p.m. OK GNU C++17 (64) TESTS 20 15 102400
212759875 Kinuru G July 8, 2023, 3:17 a.m. OK GNU C++17 (64) TESTS 20 15 204800
212758772 zhensuan G July 8, 2023, 3:04 a.m. OK GNU C++17 (64) TESTS 20 15 204800
212760988 liby G July 8, 2023, 3:29 a.m. OK GNU C++17 (64) TESTS 20 30 1126400
212761445 jiayou_shaonian G July 8, 2023, 3:35 a.m. OK GNU C++17 (64) TESTS 20 31 102400
212727843 lucasxia01 G July 7, 2023, 7:46 p.m. OK GNU C++17 (64) TESTS 20 31 4198400
212735856 adamsoltan G July 7, 2023, 9:02 p.m. OK GNU C++17 (64) TESTS 20 31 10240000
212729376 welshman_11 G July 7, 2023, 7:59 p.m. OK GNU C++17 (64) TESTS 20 46 204800
212760823 guptaaditya30121 G July 8, 2023, 3:28 a.m. OK GNU C++17 (64) TESTS 20 46 307200
212769232 424479543 G July 8, 2023, 5:07 a.m. OK GNU C++20 (64) TESTS 20 0 0
212735379 aakash_172 G July 7, 2023, 8:57 p.m. OK GNU C++20 (64) TESTS 20 0 0
212765402 KJJD G July 8, 2023, 4:20 a.m. OK GNU C++20 (64) TESTS 20 0 102400
212738567 carolinux G July 7, 2023, 9:39 p.m. OK GNU C++20 (64) TESTS 20 0 102400
212753653 1eonscount G July 8, 2023, 2:02 a.m. OK GNU C++20 (64) TESTS 20 0 204800
212729834 KushBansal G July 7, 2023, 8:03 p.m. OK GNU C++20 (64) TESTS 20 0 204800
212723302 Jouhn G July 7, 2023, 7:08 p.m. OK GNU C++20 (64) TESTS 20 15 0
212771255 DesperadoX G July 8, 2023, 5:29 a.m. OK GNU C++20 (64) TESTS 20 15 102400
212770201 yuxi516 G July 8, 2023, 5:17 a.m. OK GNU C++20 (64) TESTS 20 15 102400
212769769 Aruiii G July 8, 2023, 5:13 a.m. OK GNU C++20 (64) TESTS 20 15 102400
212727348 Mustela_Erminea G July 7, 2023, 7:41 p.m. OK Java 17 TESTS 20 577 12390400
212763160 lpychemistry G July 8, 2023, 3:53 a.m. OK Java 8 TESTS 20 156 0
212744289 amitjoshi24 G July 7, 2023, 11:18 p.m. OK PyPy 3 TESTS 20 483 10444800
212758716 kamio-misuzu G July 8, 2023, 3:03 a.m. OK PyPy 3-64 TESTS 20 93 3276800
212757748 kamio-misuzu G July 8, 2023, 2:52 a.m. OK PyPy 3-64 TESTS 20 108 4096000
212764598 groundtruth G July 8, 2023, 4:10 a.m. OK PyPy 3-64 TESTS 20 124 3993600
212754797 God_Man G July 8, 2023, 2:16 a.m. OK PyPy 3-64 TESTS 20 140 9011200
212754708 God_Man G July 8, 2023, 2:15 a.m. OK PyPy 3-64 TESTS 20 140 9011200
212719597 Alex239 G July 7, 2023, 6:42 p.m. OK PyPy 3-64 TESTS 20 155 3891200
212772337 the_last_smilodon G July 8, 2023, 5:39 a.m. OK PyPy 3-64 TESTS 20 171 9523200
212724203 unknownSolver G July 7, 2023, 7:15 p.m. OK PyPy 3-64 TESTS 20 171 9625600
212770854 the_last_smilodon G July 8, 2023, 5:24 a.m. OK PyPy 3-64 TESTS 20 187 9728000
212755956 sjNxksbzj G July 8, 2023, 2:31 a.m. OK PyPy 3-64 TESTS 20 202 9728000
212738496 sleepingonee G July 7, 2023, 9:38 p.m. OK Python 3 TESTS 20 202 614400
212754843 xuanwoshiluo G July 8, 2023, 2:17 a.m. OK Python 3 TESTS 20 763 819200

remove filters

Back to search problems