Technocup 2022 - Elimination Round 1

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
1583 Technocup 2022 - Elimination Round 1 FINISHED False 8100 102797663 Oct. 17, 2021, 11:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1358 ) F Defender of Childhood Dreams PROGRAMMING bitmasks constructive algorithms divide and conquer

B"Even if you just leave them be, they will fall to pieces all by themselves. So, someone has to protect them, right? You find yourself playing with Teucer again in the city of Liyue. As you take the eccentric little kid around, you notice something interesting about the structure of the city. Liyue can be represented as a directed graph containing n nodes. Nodes are labeled from 1 to n . There is a directed edge from node a to node b if and only if a < b . A path between nodes a and b is defined as a sequence of edges such that you can start at a , travel along all of these edges in the corresponding direction, and end at b . The length of a path is defined by the number of edges. A rainbow path of length x is defined as a path in the graph such that there exists at least 2 distinct colors among the set of x edges. Teucer's favorite number is k . You are curious about the following scenario: If you were to label each edge with a color, what is the minimum number of colors needed to ensure that all paths of length k or longer are rainbow paths? Teucer wants to surprise his older brother with a map of Liyue. He also wants to know a valid coloring of edges that uses the minimum number of colors. Please help him with this task! The only line of input contains two integers n and k ( 2 <= q k < n <= q 1000 ). On the first line, output c , the minimum colors you need to satisfy the above requirements. On the second line, print a valid edge coloring as an array of frac{n(n-1)}{2} integers ranging from 1 to c . Exactly c distinct colors should exist in the construction. Print the edges in increasing order by the start node first, then by the second node. For example, if n=4 , the edge colors will correspond to this order of edges: ( 1 , 2 ), ( 1 , 3 ), ( 1 , 4 ), ( 2 , 3 ), ( 2 , 4 ), ( 3 ,"...

Tutorials

Editorial for Technocup 2022 — Elimination Round 1 and Codeforces Round #749 (Div. 1+Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
132252277 alexxela12345 F Oct. 17, 2021, 12:50 p.m. OK GNU C++17 TESTS 50 62 4403200
132283843 n0sk1ll F Oct. 17, 2021, 6:06 p.m. OK GNU C++17 TESTS 50 78 0
132306523 njwrz F Oct. 18, 2021, 4:31 a.m. OK GNU C++17 (64) TESTS 50 31 71270400
132288229 valerikk F Oct. 17, 2021, 7:14 p.m. OK GNU C++17 (64) TESTS 50 46 102400
132252888 oleh1421 F Oct. 17, 2021, 12:52 p.m. OK GNU C++17 (64) TESTS 50 46 36352000
132259027 chgd201105 F Oct. 17, 2021, 1:14 p.m. OK GNU C++17 (64) TESTS 50 62 0
132297975 LTb F Oct. 18, 2021, 12:37 a.m. OK GNU C++17 (64) TESTS 50 77 4096000
132244471 SomethingNew F Oct. 17, 2021, 12:22 p.m. OK GNU C++20 (64) TESTS 50 46 102400
132251797 Ormlis F Oct. 17, 2021, 12:48 p.m. OK GNU C++20 (64) TESTS 50 46 4505600
132251195 Arayi F Oct. 17, 2021, 12:46 p.m. OK GNU C++20 (64) TESTS 50 109 4300800
132249691 I_HATE_CONSTRUCTIVES F Oct. 17, 2021, 12:40 p.m. OK GNU C++20 (64) TESTS 50 342 40448000

remove filters

Back to search problems