Codeforces Round 839 (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
1772 Codeforces Round 839 (Div. 3) FINISHED False 8100 60449099 Dec. 18, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2407 ) F Copy of a Copy of a Copy PROGRAMMING constructive algorithms sortings

B'It all started with a black-and-white picture, that can be represented as an n x m matrix such that all its elements are either 0 or 1 . The rows are numbered from 1 to n , the columns are numbered from 1 to m . Several operations were performed on the picture (possibly, zero), each of one of the two kinds: Note that the order of operations could be arbitrary, they were not necessarily alternating. You are presented with the outcome: all k copies that were made. Additionally, you are given the initial picture. However, all k+1 pictures are shuffled. Restore the sequence of the operations. If there are multiple answers, print any of them. The tests are constructed from the real sequence of operations, i. xe2 x80 x89e. at least one answer always exists. The first line contains three integers n, m and k ( 3 <= n, m <= 30 ; 0 <= k <= 100 ) -- the number of rows and columns of the pictures and the number of copies made, respectively. Then k+1 pictures follow -- k copies and the initial picture. Their order is arbitrary. Each picture consists of n lines, each consisting of m characters, each character is either 0 or 1 . There is an empty line before each picture. In the first line, print a single integer -- the index of the initial picture. The pictures are numbered from 1 to k+1 in the order they appear in the input. In the second line, print a single integer q -- the number of operations. Each of the next q lines should contain an operation. The operations should be listed in order they were applied. Each operation is one of two types: Each index from 1 to k+1 should appear in the output exactly once -- one of them is the index of the initial picture, the remaining k are arguments of the operations of the second kind. If there are multiple answers, print any of them. The tests are constructed from the '...

Tutorials

110313

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
186043395 mban259 F Dec. 19, 2022, 9:11 p.m. OK C# 10 TESTS 33 218 18534400
186059323 INF_512 F Dec. 20, 2022, 4:15 a.m. OK GNU C++14 TESTS 33 15 102400
185920847 ftuknights F Dec. 19, 2022, 7:42 a.m. OK GNU C++14 TESTS 33 15 409600
185916280 Akshay_Jyani F Dec. 19, 2022, 6:51 a.m. OK GNU C++14 TESTS 33 15 409600
185913224 Mitansh_k01 F Dec. 19, 2022, 6:11 a.m. OK GNU C++14 TESTS 33 15 512000
185885484 NxtEcho F Dec. 18, 2022, 7:10 p.m. OK GNU C++14 TESTS 33 15 512000
185937381 wust-zzl F Dec. 19, 2022, 10:50 a.m. OK GNU C++14 TESTS 33 15 614400
185902049 alter_nate F Dec. 19, 2022, 2:21 a.m. OK GNU C++14 TESTS 33 15 614400
185895111 CODE_LOVER4655 F Dec. 18, 2022, 9:58 p.m. OK GNU C++14 TESTS 33 15 614400
185968959 SergiiGolovko F Dec. 19, 2022, 2:53 p.m. OK GNU C++14 TESTS 33 15 1331200
185898532 xuan13853715014 F Dec. 19, 2022, 12:02 a.m. OK GNU C++14 TESTS 33 15 2560000
185901594 zja601 F Dec. 19, 2022, 2:07 a.m. OK GNU C++17 TESTS 33 15 102400
185898914 George_Rubio F Dec. 19, 2022, 12:20 a.m. OK GNU C++17 TESTS 33 15 102400
186059493 Hope-well F Dec. 20, 2022, 4:18 a.m. OK GNU C++17 TESTS 33 15 204800
185953572 jiangnanmost F Dec. 19, 2022, 1:30 p.m. OK GNU C++17 TESTS 33 15 204800
185900967 byron10000 F Dec. 19, 2022, 1:46 a.m. OK GNU C++17 TESTS 33 15 204800
185883555 fahimcp495 F Dec. 18, 2022, 6:43 p.m. OK GNU C++17 TESTS 33 15 204800
185948360 shaurya001 F Dec. 19, 2022, 12:41 p.m. OK GNU C++17 TESTS 33 15 307200
185916026 _bverma512 F Dec. 19, 2022, 6:47 a.m. OK GNU C++17 TESTS 33 15 307200
185915949 _bverma512 F Dec. 19, 2022, 6:46 a.m. OK GNU C++17 TESTS 33 15 307200
185915564 _bverma512 F Dec. 19, 2022, 6:41 a.m. OK GNU C++17 TESTS 33 15 307200
186052678 enslaved F Dec. 20, 2022, 1:56 a.m. OK GNU C++17 (64) TESTS 33 15 0
185907420 SpadeA261 F Dec. 19, 2022, 4:26 a.m. OK GNU C++17 (64) TESTS 33 15 102400
185932115 lgxyes F Dec. 19, 2022, 9:50 a.m. OK GNU C++17 (64) TESTS 33 15 204800
185913767 illume2021 F Dec. 19, 2022, 6:18 a.m. OK GNU C++17 (64) TESTS 33 15 204800
186051170 NK_ F Dec. 20, 2022, 1:15 a.m. OK GNU C++17 (64) TESTS 33 15 307200
185959325 Physics212303 F Dec. 19, 2022, 2:23 p.m. OK GNU C++17 (64) TESTS 33 15 307200
185955872 0x5f F Dec. 19, 2022, 1:52 p.m. OK GNU C++17 (64) TESTS 33 15 307200
185929801 zacharychao F Dec. 19, 2022, 9:25 a.m. OK GNU C++17 (64) TESTS 33 15 307200
185927433 _Absurd_ F Dec. 19, 2022, 9:01 a.m. OK GNU C++17 (64) TESTS 33 15 307200
185924385 van_hoang F Dec. 19, 2022, 8:24 a.m. OK GNU C++17 (64) TESTS 33 15 512000
185916679 Yangpaii F Dec. 19, 2022, 6:56 a.m. OK GNU C++20 (64) TESTS 33 0 102400
185939290 XiCen F Dec. 19, 2022, 11:09 a.m. OK GNU C++20 (64) TESTS 33 0 307200
185894873 dmenezes F Dec. 18, 2022, 9:51 p.m. OK GNU C++20 (64) TESTS 33 15 0
185884646 dmenezes F Dec. 18, 2022, 7 p.m. OK GNU C++20 (64) TESTS 33 15 0
186038298 Black_Bits F Dec. 19, 2022, 7:51 p.m. OK GNU C++20 (64) TESTS 33 15 102400
185905942 fictitious_love F Dec. 19, 2022, 3:56 a.m. OK GNU C++20 (64) TESTS 33 15 102400
185898294 nano_nish F Dec. 18, 2022, 11:50 p.m. OK GNU C++20 (64) TESTS 33 15 102400
185955787 Rainandbow F Dec. 19, 2022, 1:51 p.m. OK GNU C++20 (64) TESTS 33 15 204800
185955545 Rainandbow F Dec. 19, 2022, 1:49 p.m. OK GNU C++20 (64) TESTS 33 15 204800
185926036 SF-Manman F Dec. 19, 2022, 8:44 a.m. OK GNU C++20 (64) TESTS 33 15 204800
185897603 profchi F Dec. 18, 2022, 11:22 p.m. OK Java 11 TESTS 33 249 0
185899343 dzhi F Dec. 19, 2022, 12:38 a.m. OK Java 11 TESTS 33 342 31846400
185899436 dzhi F Dec. 19, 2022, 12:42 a.m. OK Java 11 TESTS 33 343 31846400
186053634 hkwu6013 F Dec. 20, 2022, 2:24 a.m. OK PyPy 3-64 TESTS 33 93 4915200
185901414 biglunchdude F Dec. 19, 2022, 2:01 a.m. OK PyPy 3-64 TESTS 33 108 6860800
185901078 onemoreq F Dec. 19, 2022, 1:50 a.m. OK PyPy 3-64 TESTS 33 139 9420800
185881540 Musab1Blaser F Dec. 18, 2022, 6:13 p.m. OK PyPy 3-64 TESTS 33 171 8704000
185881922 taksqth F Dec. 18, 2022, 6:18 p.m. OK PyPy 3-64 TESTS 33 202 9830400
185883758 Ayushman_123 F Dec. 18, 2022, 6:46 p.m. OK PyPy 3-64 TESTS 33 218 10752000
186013615 yumtam F Dec. 19, 2022, 4:53 p.m. OK PyPy 3-64 TESTS 33 233 9932800
185901419 rien F Dec. 19, 2022, 2:01 a.m. OK PyPy 3-64 TESTS 33 482 73011200
185914879 r57shell F Dec. 19, 2022, 6:31 a.m. OK Python 3 TESTS 33 93 921600
185881085 a2bailey F Dec. 18, 2022, 6:06 p.m. OK Python 3 TESTS 33 124 0
185906131 Sempr F Dec. 19, 2022, 3:59 a.m. OK Rust 2021 TESTS 33 15 716800

remove filters

Back to search problems