Codeforces Round 765 (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
1625 Codeforces Round 765 (Div. 2) FINISHED False 7200 95190863 Jan. 12, 2022, 12:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 17413 ) A Ancient Civilization PROGRAMMING bitmasks greedy math

B"Martian scientists explore Ganymede, one of Jupiter's numerous moons. Recently, they have found ruins of an ancient civilization. The scientists brought to Mars some tablets with writings in a language unknown to science. They found out that the inhabitants of Ganymede used an alphabet consisting of two letters, and each word was exactly ell letters long. So, the scientists decided to write each word of this language as an integer from 0 to 2^{ ell} - 1 inclusively. The first letter of the alphabet corresponds to zero bit in this integer, and the second letter corresponds to one bit. The same word may have various forms in this language. Then, you need to restore the initial form. The process of doing it is described below. Denote the distance between two words as the amount of positions, in which these words differ. For example, the distance between 1001_2 and 1100_2 (in binary) is equal to two, as these words have different letters in the second and the fourth positions, counting from left to right. Further, denote the distance between words x and y as d(x, y) . Let the word have n forms, the i -th of which is described with an integer x_i . All the x_i are not necessarily different, as two various forms of the word can be written the same. Consider some word y . Then, closeness of the word y is equal to the sum of distances to each of the word forms, i. e. the sum d(x_i, y) over all 1 <= i <= n . The initial form is the word y with minimal possible nearness. You need to help the scientists and write the program which finds the initial form of the word given all its known forms. Note that the initial form is not necessarily equal to any of the n given forms. The first line contains an integer t ( 1 <= t <= 100 ) -- the number of test cases. The following are descriptions of the test cases. The first line contains two integers n an"...

Tutorials

Editorial of Codeforces Round #765 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
142552819 longzhaocheng A Jan. 12, 2022, 11:14 p.m. OK Clang++17 Diagnostics TESTS 5 31 4198400
142553059 daniil_volkov A Jan. 12, 2022, 11:27 p.m. OK FPC TESTS 5 15 0
142566806 tyach322 A Jan. 13, 2022, 5:34 a.m. OK FPC TESTS 5 15 0
142524198 rainboy A Jan. 12, 2022, 2:54 p.m. OK GNU C11 TESTS 4 0 0
142552807 dean.menezes A Jan. 12, 2022, 11:14 p.m. OK GNU C11 TESTS 5 15 0
142557313 FZUXMAN A Jan. 13, 2022, 2:36 a.m. OK GNU C11 TESTS 5 15 0
142524365 onnstion49 A Jan. 12, 2022, 2:56 p.m. OK GNU C11 TESTS 4 15 0
142537038 GTrigger A Jan. 12, 2022, 5:21 p.m. OK GNU C11 TESTS 5 15 0
142520853 lcf12345 A Jan. 12, 2022, 2:30 p.m. OK GNU C11 TESTS 4 15 0
142537587 GTrigger A Jan. 12, 2022, 5:28 p.m. OK GNU C11 TESTS 5 15 0
142537716 HalenLiang A Jan. 12, 2022, 5:29 p.m. OK GNU C11 TESTS 5 15 0
142545418 GTrigger A Jan. 12, 2022, 7:21 p.m. OK GNU C11 TESTS 5 15 0
142548209 Rushywood A Jan. 12, 2022, 8:22 p.m. OK GNU C11 TESTS 5 15 0
142522982 wasd_IP7O2 A Jan. 12, 2022, 2:44 p.m. OK GNU C++14 TESTS 4 0 0
142522129 I_Wish_I_Knew A Jan. 12, 2022, 2:37 p.m. OK GNU C++14 TESTS 4 0 0
142521075 shubham_jha386 A Jan. 12, 2022, 2:31 p.m. OK GNU C++14 TESTS 4 0 0
142517925 Big_Pear A Jan. 12, 2022, 2:04 p.m. OK GNU C++14 TESTS 4 0 0
142557942 Bender2 A Jan. 13, 2022, 2:55 a.m. OK GNU C++14 TESTS 5 0 0
142557330 Bull_Demon A Jan. 13, 2022, 2:36 a.m. OK GNU C++14 TESTS 5 0 0
142556082 Chrisann A Jan. 13, 2022, 1:55 a.m. OK GNU C++14 TESTS 5 0 0
142552729 caolx A Jan. 12, 2022, 11:12 p.m. OK GNU C++14 TESTS 5 0 0
142547642 p.ferrari A Jan. 12, 2022, 8:09 p.m. OK GNU C++14 TESTS 5 0 0
142526016 Fury20 A Jan. 12, 2022, 3:11 p.m. OK GNU C++14 TESTS 5 0 0
142564644 ajay_makvana A Jan. 13, 2022, 5:06 a.m. OK GNU C++17 TESTS 5 0 0
142564898 mindyi A Jan. 13, 2022, 5:10 a.m. OK GNU C++17 TESTS 5 0 0
142568138 on_top_2 A Jan. 13, 2022, 5:51 a.m. OK GNU C++17 TESTS 5 0 0
142565878 Name3 A Jan. 13, 2022, 5:22 a.m. OK GNU C++17 TESTS 5 0 0
142564634 soorajsrini A Jan. 13, 2022, 5:06 a.m. OK GNU C++17 TESTS 5 0 0
142561083 aryash747 A Jan. 13, 2022, 4:03 a.m. OK GNU C++17 TESTS 5 0 0
142560540 bootcoder A Jan. 13, 2022, 3:53 a.m. OK GNU C++17 TESTS 5 0 0
142558809 achal_durden A Jan. 13, 2022, 3:17 a.m. OK GNU C++17 TESTS 5 0 0
142558762 hotpotcondiment A Jan. 13, 2022, 3:16 a.m. OK GNU C++17 TESTS 5 0 0
142556565 catsareliquid A Jan. 13, 2022, 2:13 a.m. OK GNU C++17 TESTS 5 0 0
142548211 aatrey A Jan. 12, 2022, 8:22 p.m. OK GNU C++17 (64) TESTS 5 0 0
142561278 thaizhenleng A Jan. 13, 2022, 4:07 a.m. OK GNU C++17 (64) TESTS 5 0 0
142559291 angeredgecko A Jan. 13, 2022, 3:27 a.m. OK GNU C++17 (64) TESTS 5 0 0
142554963 Porag_2742 A Jan. 13, 2022, 1:08 a.m. OK GNU C++17 (64) TESTS 5 0 0
142554747 w23c3c3 A Jan. 13, 2022, 12:59 a.m. OK GNU C++17 (64) TESTS 5 0 0
142552724 yogeshiitm A Jan. 12, 2022, 11:12 p.m. OK GNU C++17 (64) TESTS 5 0 0
142546583 cabinary A Jan. 12, 2022, 7:45 p.m. OK GNU C++17 (64) TESTS 5 0 0
142545383 PR_0202 A Jan. 12, 2022, 7:20 p.m. OK GNU C++17 (64) TESTS 5 0 0
142543318 adasanvin12345 A Jan. 12, 2022, 6:43 p.m. OK GNU C++17 (64) TESTS 5 0 0
142540769 Vijay A Jan. 12, 2022, 6:07 p.m. OK GNU C++17 (64) TESTS 5 0 0
142546078 TARUN06 A Jan. 12, 2022, 7:35 p.m. OK GNU C++20 (64) TESTS 5 0 0
142553509 jdurie A Jan. 12, 2022, 11:52 p.m. OK GNU C++20 (64) TESTS 5 0 0
142554941 Mohammed84Farouk A Jan. 13, 2022, 1:07 a.m. OK GNU C++20 (64) TESTS 5 0 0
142555205 DhruvP A Jan. 13, 2022, 1:18 a.m. OK GNU C++20 (64) TESTS 5 0 0
142558221 claimGod A Jan. 13, 2022, 3:02 a.m. OK GNU C++20 (64) TESTS 5 0 0
142559989 PurpleCrayon A Jan. 13, 2022, 3:42 a.m. OK GNU C++20 (64) TESTS 5 0 0
142562868 DiptoArchyes07 A Jan. 13, 2022, 4:35 a.m. OK GNU C++20 (64) TESTS 5 0 0
142563118 ShAiDSk A Jan. 13, 2022, 4:40 a.m. OK GNU C++20 (64) TESTS 5 0 0
142563920 askd A Jan. 13, 2022, 4:55 a.m. OK GNU C++20 (64) TESTS 5 0 0
142567934 alive A Jan. 13, 2022, 5:48 a.m. OK GNU C++20 (64) TESTS 5 0 0
142556797 190020009 A Jan. 13, 2022, 2:20 a.m. OK Java 11 TESTS 5 155 0
142537693 SaberXpro A Jan. 12, 2022, 5:29 p.m. OK Java 11 TESTS 5 170 0
142532475 SavageClown007 A Jan. 12, 2022, 4:24 p.m. OK Java 11 TESTS 5 170 0
142526963 __Serendipity A Jan. 12, 2022, 3:20 p.m. OK Java 11 TESTS 5 170 0
142551139 Toinfinity A Jan. 12, 2022, 9:55 p.m. OK Java 11 TESTS 5 171 0
142569070 BenQFanClubPresident A Jan. 13, 2022, 6:01 a.m. OK Java 11 TESTS 5 171 0
142568574 zscscsdcd A Jan. 13, 2022, 5:56 a.m. OK Java 11 TESTS 5 171 0
142548214 Plums A Jan. 12, 2022, 8:22 p.m. OK Java 11 TESTS 5 171 0
142539496 bittubittu A Jan. 12, 2022, 5:51 p.m. OK Java 11 TESTS 5 171 0
142529475 pras7946 A Jan. 12, 2022, 3:48 p.m. OK Java 11 TESTS 5 171 0
142556257 duyipeng A Jan. 13, 2022, 2:01 a.m. OK Java 8 TESTS 5 77 0
142529431 RuthlessPractice A Jan. 12, 2022, 3:48 p.m. OK Java 8 TESTS 5 78 0
142520883 RonWonWon A Jan. 12, 2022, 2:30 p.m. OK Java 8 TESTS 4 92 0
142568630 Push_back7 A Jan. 13, 2022, 5:57 a.m. OK Java 8 TESTS 5 93 0
142568548 SangramH123 A Jan. 13, 2022, 5:56 a.m. OK Java 8 TESTS 5 93 0
142540932 narayan.xrd A Jan. 12, 2022, 6:09 p.m. OK Java 8 TESTS 5 93 0
142539266 Mohamed_A7med A Jan. 12, 2022, 5:48 p.m. OK Java 8 TESTS 5 108 0
142526168 tanishq044 A Jan. 12, 2022, 3:12 p.m. OK Java 8 TESTS 5 108 0
142562269 b_coder1 A Jan. 13, 2022, 4:24 a.m. OK Java 8 TESTS 5 108 0
142562604 grand0 A Jan. 13, 2022, 4:30 a.m. OK Java 8 TESTS 5 109 0
142515938 mircea85 A Jan. 12, 2022, 2 p.m. OK Mono C# TESTS 4 31 1024000
142513906 Nuklinoid A Jan. 12, 2022, 1:55 p.m. OK Mono C# TESTS 4 46 2969600
142516388 dominotim A Jan. 12, 2022, 2:01 p.m. OK MS C++ 2017 TESTS 4 15 0
142560585 tatianyi A Jan. 13, 2022, 3:54 a.m. OK MS C++ 2017 TESTS 5 15 0
142553897 Damirca A Jan. 13, 2022, 12:16 a.m. OK MS C++ 2017 TESTS 5 15 0
142553818 Damirca A Jan. 13, 2022, 12:11 a.m. OK MS C++ 2017 TESTS 5 15 0
142521132 httohu A Jan. 12, 2022, 2:31 p.m. OK MS C++ 2017 TESTS 4 15 0
142513377 mms2mms A Jan. 12, 2022, 1:54 p.m. OK MS C++ 2017 TESTS 4 15 0
142511882 RealStarlight A Jan. 12, 2022, 1:50 p.m. OK MS C++ 2017 TESTS 4 15 0
142510822 GUANGZHAOGUO A Jan. 12, 2022, 1:47 p.m. OK MS C++ 2017 TESTS 4 15 409600
142536224 Aayush5sep A Jan. 12, 2022, 5:12 p.m. OK MS C++ 2017 TESTS 5 30 0
142563814 lszcnb A Jan. 13, 2022, 4:53 a.m. OK MS C++ 2017 TESTS 5 31 0
142547299 rsFalse A Jan. 12, 2022, 8 p.m. OK Perl TESTS 5 77 0
142522549 Serined A Jan. 12, 2022, 2:40 p.m. OK PyPy 2 TESTS 4 93 2867200
142544073 vaibhav_india A Jan. 12, 2022, 6:56 p.m. OK PyPy 3 TESTS 5 92 2150400
142529298 dmitri_the_cat A Jan. 12, 2022, 3:46 p.m. OK PyPy 3 TESTS 5 93 2048000
142564428 girl_btw A Jan. 13, 2022, 5:03 a.m. OK PyPy 3 TESTS 5 93 2252800
142525469 feelme A Jan. 12, 2022, 3:06 p.m. OK PyPy 3 TESTS 4 93 2764800
142538290 KanishkGoel A Jan. 12, 2022, 5:36 p.m. OK PyPy 3 TESTS 5 93 3993600
142567068 anujrajpoot3108 A Jan. 13, 2022, 5:38 a.m. OK PyPy 3 TESTS 5 108 2457600
142566913 vashusharma180707 A Jan. 13, 2022, 5:36 a.m. OK PyPy 3 TESTS 5 108 2457600
142539590 bongcloud7777 A Jan. 12, 2022, 5:52 p.m. OK PyPy 3 TESTS 5 108 3993600
142520307 kartikstark1601 A Jan. 12, 2022, 2:27 p.m. OK PyPy 3 TESTS 4 109 1843200
142537453 chicosena A Jan. 12, 2022, 5:26 p.m. OK PyPy 3 TESTS 5 109 2764800
142563862 Code_Breaker101 A Jan. 13, 2022, 4:54 a.m. OK PyPy 3-64 TESTS 5 77 3276800
142537190 dmitrii_andriianov A Jan. 12, 2022, 5:23 p.m. OK PyPy 3-64 TESTS 5 77 4096000
142530407 notTehlka A Jan. 12, 2022, 3:59 p.m. OK PyPy 3-64 TESTS 5 77 4505600
142525711 lemiao12 A Jan. 12, 2022, 3:08 p.m. OK PyPy 3-64 TESTS 5 92 2764800
142563806 rivnam A Jan. 13, 2022, 4:53 a.m. OK PyPy 3-64 TESTS 5 93 2560000
142533105 Yash_Maniya A Jan. 12, 2022, 4:32 p.m. OK PyPy 3-64 TESTS 5 93 2764800
142535888 aberent A Jan. 12, 2022, 5:07 p.m. OK PyPy 3-64 TESTS 5 93 2969600
142528821 mayank35 A Jan. 12, 2022, 3:41 p.m. OK PyPy 3-64 TESTS 5 93 3788800
142519708 tyzzi A Jan. 12, 2022, 2:25 p.m. OK PyPy 3-64 TESTS 4 93 3891200
142526275 Night_Spark--75 A Jan. 12, 2022, 3:13 p.m. OK PyPy 3-64 TESTS 5 93 4710400
142541046 OLOGY A Jan. 12, 2022, 6:11 p.m. OK Python 2 TESTS 5 46 204800
142535534 agw02010 A Jan. 12, 2022, 5:03 p.m. OK Python 3 TESTS 5 77 0
142513310 titanalpha A Jan. 12, 2022, 1:54 p.m. OK Python 3 TESTS 4 77 716800
142544738 mihir111p A Jan. 12, 2022, 7:08 p.m. OK Python 3 TESTS 5 93 0
142536786 Kornelius A Jan. 12, 2022, 5:18 p.m. OK Python 3 TESTS 5 93 0
142526122 MrDlop A Jan. 12, 2022, 3:12 p.m. OK Python 3 TESTS 5 93 0
142525915 Eyara A Jan. 12, 2022, 3:10 p.m. OK Python 3 TESTS 5 93 0
142523846 bsski A Jan. 12, 2022, 2:51 p.m. OK Python 3 TESTS 4 93 0
142522075 Dhruv985 A Jan. 12, 2022, 2:37 p.m. OK Python 3 TESTS 4 93 0
142521732 20bcs191 A Jan. 12, 2022, 2:34 p.m. OK Python 3 TESTS 4 93 0
142563932 sandesh32 A Jan. 13, 2022, 4:55 a.m. OK Python 3 TESTS 5 93 204800
142521674 Spheniscine A Jan. 12, 2022, 2:34 p.m. OK Rust 2021 TESTS 4 15 102400

remove filters

Back to search problems