Educational Codeforces Round 125 (Rated for Div. 2)

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
1657 Educational Codeforces Round 125 (Rated for Div. 2) FINISHED False 7200 83862899 March 22, 2022, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 579 ) F Words on Tree PROGRAMMING 2-sat implementation trees

B'You are given a tree consisting of n vertices, and q triples (x_i, y_i, s_i) , where x_i and y_i are integers from 1 to n , and s_i is a string with length equal to the number of vertices on the simple path from x_i to y_i . You want to write a lowercase Latin letter on each vertex in such a way that, for each of q given triples, at least one of the following conditions holds: Find any possible way to write a letter on each vertex to meet these constraints, or report that it is impossible. The first line contains two integers n and q ( 2 <= n <= 4 cdot 10^5 ; 1 <= q <= 4 cdot 10^5 ) -- the number of vertices in the tree and the number of triples, respectively. Then n - 1 lines follow; the i -th of them contains two integers u_i and v_i ( 1 <= u_i, v_i <= n ; u_i ne v_i ) -- the endpoints of the i -th edge. These edges form a tree. Then q lines follow; the j -th of them contains two integers x_j and y_j , and a string s_j consisting of lowercase Latin letters. The length of s_j is equal to the number of vertices on the simple path between x_j and y_j . Additional constraint on the input: sum limits_{j=1}^{q} |s_j| <= 4 cdot 10^5 . If there is no way to meet the conditions on all triples, print NO. Otherwise, print YES in the first line, and a string of n lowercase Latin letters in the second line; the i -th character of the string should be the letter you write on the i -th vertex. If there are multiple answers, print any of them. '...

Tutorials

101161

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
150609919 dashing_ F March 23, 2022, 12:53 p.m. OK GNU C11 TESTS 241 607 101785600
150609417 dashing_ F March 23, 2022, 12:48 p.m. OK GNU C11 TESTS 241 608 101785600
150585424 L7-56 F March 23, 2022, 8:20 a.m. OK GNU C++14 TESTS 240 592 312729600
150576398 tuyufeinb F March 23, 2022, 6:29 a.m. OK GNU C++14 TESTS 240 608 135987200
150608546 syksykCCC F March 23, 2022, 12:39 p.m. OK GNU C++14 TESTS 241 623 66969600
150571793 tuyufeinb F March 23, 2022, 5:21 a.m. OK GNU C++14 TESTS 240 623 178278400
150662298 tuyufeinb F March 24, 2022, 2:37 a.m. OK GNU C++14 TESTS 241 639 97484800
150588140 iterater F March 23, 2022, 8:51 a.m. OK GNU C++14 TESTS 240 701 97792000
150613955 smallpeter F March 23, 2022, 1:36 p.m. OK GNU C++14 TESTS 241 732 157593600
150663777 BARBARIANNNNN F March 24, 2022, 3:18 a.m. OK GNU C++14 TESTS 241 733 107315200
150621068 abc123def123 F March 23, 2022, 2:36 p.m. OK GNU C++14 TESTS 241 763 157593600
150619234 LGT F March 23, 2022, 2:21 p.m. OK GNU C++14 TESTS 241 763 157593600
150570945 fallleaves01 F March 23, 2022, 5:09 a.m. OK GNU C++17 TESTS 240 327 147558400
150552939 jeroenodb F March 22, 2022, 9:42 p.m. OK GNU C++17 TESTS 240 577 78540800
150567226 Qzy___ F March 23, 2022, 4:05 a.m. OK GNU C++17 TESTS 240 639 76697600
150576782 Qzy___ F March 23, 2022, 6:33 a.m. OK GNU C++17 TESTS 240 654 76697600
150566777 Qzy___ F March 23, 2022, 3:56 a.m. OK GNU C++17 TESTS 240 655 76697600
150567545 Qzy___ F March 23, 2022, 4:11 a.m. OK GNU C++17 TESTS 240 670 79872000
150576342 Qzy___ F March 23, 2022, 6:28 a.m. OK GNU C++17 TESTS 240 670 79872000
150575878 Qzy___ F March 23, 2022, 6:23 a.m. OK GNU C++17 TESTS 240 670 79872000
150575734 cyph3rharsha F March 23, 2022, 6:21 a.m. OK GNU C++17 TESTS 240 717 107110400
150596305 JL_Coder F March 23, 2022, 10:32 a.m. OK GNU C++17 TESTS 241 717 107110400
150537898 ljcleo F March 22, 2022, 5:57 p.m. OK GNU C++17 (64) TESTS 240 530 86118400
150654531 fxhd F March 23, 2022, 10:25 p.m. OK GNU C++17 (64) TESTS 241 608 124723200
150590618 YYYLLL2021 F March 23, 2022, 9:20 a.m. OK GNU C++17 (64) TESTS 240 717 137011200
150664508 froggyzhang F March 24, 2022, 3:37 a.m. OK GNU C++17 (64) TESTS 241 717 150323200
150542973 emthrm F March 22, 2022, 6:59 p.m. OK GNU C++17 (64) TESTS 240 748 199680000
150663497 tomato_potato F March 24, 2022, 3:11 a.m. OK GNU C++17 (64) TESTS 241 779 146944000
150559508 EricQian F March 23, 2022, 12:47 a.m. OK GNU C++17 (64) TESTS 240 842 132198400
150604019 qiuzx F March 23, 2022, 11:53 a.m. OK GNU C++17 (64) TESTS 241 872 209408000
150604039 bkifhr10 F March 23, 2022, 11:53 a.m. OK GNU C++17 (64) TESTS 241 873 209408000
150566375 vandoor F March 23, 2022, 3:48 a.m. OK GNU C++17 (64) TESTS 240 966 378060800
150583595 tyin F March 23, 2022, 7:56 a.m. OK GNU C++20 (64) TESTS 240 576 130252800
150540960 TheBlackPirate F March 22, 2022, 6:32 p.m. OK GNU C++20 (64) TESTS 240 655 153088000
150575838 cyph3rharsha F March 23, 2022, 6:22 a.m. OK GNU C++20 (64) TESTS 240 655 153088000
150565189 HollwoQ_Pelw F March 23, 2022, 3:22 a.m. OK GNU C++20 (64) TESTS 240 686 151654400
150608394 Nero F March 23, 2022, 12:37 p.m. OK GNU C++20 (64) TESTS 241 701 105062400
150628056 icey_z F March 23, 2022, 3:49 p.m. OK GNU C++20 (64) TESTS 241 701 190976000
150619578 roadtoh F March 23, 2022, 2:23 p.m. OK GNU C++20 (64) TESTS 241 733 153088000
150589985 xajd1920 F March 23, 2022, 9:13 a.m. OK GNU C++20 (64) TESTS 240 764 407142400
150584924 zijin12 F March 23, 2022, 8:14 a.m. OK GNU C++20 (64) TESTS 240 779 124620800
150547691 IntoTheNight F March 22, 2022, 8:07 p.m. OK GNU C++20 (64) TESTS 240 779 215552000
150665535 Spheniscine F March 24, 2022, 4:03 a.m. OK Rust 2021 TESTS 241 904 298700800
150561780 sansen F March 23, 2022, 1:58 a.m. OK Rust 2021 TESTS 240 920 204288000
150657992 Spheniscine F March 24, 2022, 12:21 a.m. OK Rust 2021 TESTS 241 967 298700800
150574736 Spheniscine F March 23, 2022, 6:09 a.m. OK Rust 2021 TESTS 240 1980 851148800
150576405 Spheniscine F March 23, 2022, 6:29 a.m. OK Rust 2021 TESTS 240 1996 851148800

remove filters

Back to search problems