Codeforces Round 792 (Div. 1 + 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
1684 Codeforces Round 792 (Div. 1 + Div. 2) FINISHED False 7200 84295463 May 19, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 24102 ) A Digit Minimization PROGRAMMING constructive algorithms games math 800

B'There is an integer n without zeros in its decimal representation. Alice and Bob are playing a game with this integer. Alice starts first. They play the game in turns. On her turn, Alice must swap any two digits of the integer that are on different positions. Bob on his turn always removes the last digit of the integer. The game ends when there is only one digit left. You have to find the smallest integer Alice can get in the end, if she plays optimally. The input consists of multiple test cases. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Description of the test cases follows. The first and the only line of each test case contains the integer n ( 10 <= n <= 10^9 ) -- the integer for the game. n does not have zeros in its decimal representation. For each test case output a single integer -- the smallest integer Alice can get in the end of the game. In the first test case Alice has to swap 1 and 2 . After that Bob removes the last digit, 1 , so the answer is 2 . In the second test case Alice can swap 3 and 1 : 312 . After that Bob deletes the last digit: 31 . Then Alice swaps 3 and 1 : 13 and Bob deletes 3 , so the answer is 1 . '...

Tutorials

Codeforces Round #792 (Div. 1 + Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
157728172 cbing A May 19, 2022, 4:33 p.m. OK GNU C11 TESTS 3 15 3686400 800
157755650 Yuuki_Yuri A May 20, 2022, 1:03 a.m. OK GNU C11 TESTS 3 46 0 800
157750945 its_adi_29 A May 19, 2022, 10:07 p.m. OK GNU C11 TESTS 3 46 102400 800
157723743 Sahidur_Rahman A May 19, 2022, 4:21 p.m. OK GNU C11 TESTS 3 46 3686400 800
157751374 ate22 A May 19, 2022, 10:21 p.m. OK GNU C++14 TESTS 3 0 0 800
157758772 psc233 A May 20, 2022, 2:28 a.m. OK GNU C++14 TESTS 3 0 0 800
157765115 yeshuchen A May 20, 2022, 4:36 a.m. OK GNU C++14 TESTS 3 0 0 800
157753982 lingo2 A May 20, 2022, 12:06 a.m. OK GNU C++14 TESTS 3 0 0 800
157751963 sarthak_tirpude A May 19, 2022, 10:46 p.m. OK GNU C++14 TESTS 3 0 0 800
157769531 rickly233 A May 20, 2022, 5:46 a.m. OK GNU C++14 TESTS 3 0 0 800
157765079 toriqul07 A May 20, 2022, 4:35 a.m. OK GNU C++14 TESTS 3 0 0 800
157765047 suyiheng A May 20, 2022, 4:34 a.m. OK GNU C++14 TESTS 3 0 0 800
157762883 BzingA A May 20, 2022, 3:53 a.m. OK GNU C++14 TESTS 3 0 0 800
157755874 AIM-9M A May 20, 2022, 1:11 a.m. OK GNU C++14 TESTS 3 0 819200 800
157768816 shivam_318 A May 20, 2022, 5:35 a.m. OK GNU C++17 TESTS 3 0 0 800
157767707 theneek14 A May 20, 2022, 5:18 a.m. OK GNU C++17 TESTS 3 0 0 800
157766887 appi_ A May 20, 2022, 5:05 a.m. OK GNU C++17 TESTS 3 0 0 800
157766664 MarwaMubarak A May 20, 2022, 5:02 a.m. OK GNU C++17 TESTS 3 0 0 800
157766658 sandeeprajkanna A May 20, 2022, 5:02 a.m. OK GNU C++17 TESTS 3 0 0 800
157766083 shahid_92 A May 20, 2022, 4:53 a.m. OK GNU C++17 TESTS 3 0 0 800
157770307 Bazzas13 A May 20, 2022, 5:57 a.m. OK GNU C++17 TESTS 3 0 0 800
157769713 _ArUp_ A May 20, 2022, 5:48 a.m. OK GNU C++17 TESTS 3 0 0 800
157769467 justgravit A May 20, 2022, 5:45 a.m. OK GNU C++17 TESTS 3 0 0 800
157769667 mukeshpurbey A May 20, 2022, 5:48 a.m. OK GNU C++17 TESTS 3 0 0 800
157757399 izumiQR A May 20, 2022, 1:56 a.m. OK GNU C++17 (64) TESTS 3 0 0 800
157769296 sudip777sharma A May 20, 2022, 5:43 a.m. OK GNU C++17 (64) TESTS 3 0 0 800
157764228 priyansh_34 A May 20, 2022, 4:19 a.m. OK GNU C++17 (64) TESTS 3 0 0 800
157762859 codevader13 A May 20, 2022, 3:53 a.m. OK GNU C++17 (64) TESTS 3 0 0 800
157760668 suta A May 20, 2022, 3:08 a.m. OK GNU C++17 (64) TESTS 3 0 0 800
157760568 errorgorn A May 20, 2022, 3:06 a.m. OK GNU C++17 (64) TESTS 3 0 0 800
157757055 Samia2001 A May 20, 2022, 1:46 a.m. OK GNU C++17 (64) TESTS 3 0 0 800
157756995 Richw818 A May 20, 2022, 1:45 a.m. OK GNU C++17 (64) TESTS 3 0 0 800
157754640 Beevo A May 20, 2022, 12:29 a.m. OK GNU C++17 (64) TESTS 3 0 0 800
157754306 Tw_28e7 A May 20, 2022, 12:18 a.m. OK GNU C++17 (64) TESTS 3 0 0 800
157765183 get_out_of_my_way A May 20, 2022, 4:37 a.m. OK GNU C++20 (64) TESTS 3 0 0 800
157764815 imtiyazrasool92 A May 20, 2022, 4:30 a.m. OK GNU C++20 (64) TESTS 3 0 0 800
157763777 pranav_m02 A May 20, 2022, 4:11 a.m. OK GNU C++20 (64) TESTS 3 0 0 800
157763738 KOD_TiTAN A May 20, 2022, 4:11 a.m. OK GNU C++20 (64) TESTS 3 0 0 800
157763277 Kenshin2438 A May 20, 2022, 4:02 a.m. OK GNU C++20 (64) TESTS 3 0 0 800
157762423 hasan_tawsif A May 20, 2022, 3:44 a.m. OK GNU C++20 (64) TESTS 3 0 0 800
157766057 seduneon A May 20, 2022, 4:52 a.m. OK GNU C++20 (64) TESTS 3 0 0 800
157766852 Joler_ A May 20, 2022, 5:05 a.m. OK GNU C++20 (64) TESTS 3 0 0 800
157766863 Karn_ A May 20, 2022, 5:05 a.m. OK GNU C++20 (64) TESTS 3 0 0 800
157767878 SeniorBOTx A May 20, 2022, 5:21 a.m. OK GNU C++20 (64) TESTS 3 0 0 800
157769475 poopoop A May 20, 2022, 5:45 a.m. OK Java 11 TESTS 3 171 0 800
157758641 javaking A May 20, 2022, 2:24 a.m. OK Java 11 TESTS 3 171 0 800
157768934 Yog_gaj A May 20, 2022, 5:37 a.m. OK Java 11 TESTS 3 202 0 800
157724938 sarthak20574 A May 19, 2022, 4:24 p.m. OK Java 11 TESTS 3 233 24678400 800
157733510 Kaldaruly A May 19, 2022, 5:46 p.m. OK Java 11 TESTS 3 233 24780800 800
157760731 powervic08 A May 20, 2022, 3:09 a.m. OK Java 11 TESTS 3 249 0 800
157741160 blindingbythelights A May 19, 2022, 6:52 p.m. OK Java 11 TESTS 3 249 24678400 800
157751973 csteven1 A May 19, 2022, 10:46 p.m. OK Java 11 TESTS 3 264 0 800
157754538 lucario1289 A May 20, 2022, 12:26 a.m. OK Java 11 TESTS 3 264 0 800
157736637 pratishank_05 A May 19, 2022, 6:05 p.m. OK Java 11 TESTS 3 264 24576000 800
157768653 sharpen A May 20, 2022, 5:33 a.m. OK Java 8 TESTS 3 77 0 800
157764136 jhy0117 A May 20, 2022, 4:18 a.m. OK Java 8 TESTS 3 93 0 800
157761157 LiuSheng A May 20, 2022, 3:19 a.m. OK Java 8 TESTS 3 93 0 800
157734275 Koka A May 19, 2022, 5:49 p.m. OK Java 8 TESTS 3 93 19046400 800
157734925 slow.coder A May 19, 2022, 5:53 p.m. OK Java 8 TESTS 3 108 18841600 800
157770359 Ariful3671 A May 20, 2022, 5:58 a.m. OK Java 8 TESTS 3 124 0 800
157737652 rish1896 A May 19, 2022, 6:13 p.m. OK Java 8 TESTS 3 170 18944000 800
157770475 stolis A May 20, 2022, 5:59 a.m. OK Java 8 TESTS 3 187 0 800
157769613 Aemon A May 20, 2022, 5:47 a.m. OK Java 8 TESTS 3 187 0 800
157758622 ikillmyself A May 20, 2022, 2:24 a.m. OK Java 8 TESTS 3 187 0 800
157738863 Pus9vGang A May 19, 2022, 6:24 p.m. OK Kotlin 1.6 TESTS 3 249 26419200 800
157742199 Ayman_Attili26 A May 19, 2022, 7:06 p.m. OK MS C++ 2017 TESTS 3 15 1126400 800
157761877 TemporalBloom A May 20, 2022, 3:33 a.m. OK MS C++ 2017 TESTS 3 31 0 800
157753779 bsherhj A May 19, 2022, 11:59 p.m. OK MS C++ 2017 TESTS 3 31 0 800
157733004 Tangerine A May 19, 2022, 5:44 p.m. OK MS C++ 2017 TESTS 3 31 1126400 800
157762075 Aayush5sep A May 20, 2022, 3:37 a.m. OK MS C++ 2017 TESTS 3 46 0 800
157739793 Viktor36 A May 19, 2022, 6:35 p.m. OK MS C++ 2017 TESTS 3 46 1126400 800
157736418 Morrowinds_Revenge A May 19, 2022, 6:03 p.m. OK MS C++ 2017 TESTS 3 46 1126400 800
157723548 Hard.XFM A May 19, 2022, 4:20 p.m. OK MS C++ 2017 TESTS 3 46 1331200 800
157733448 1_2_3_4_5_9 A May 19, 2022, 5:45 p.m. OK PyPy 2 TESTS 3 93 22630400 800
157766059 FrozenKandy A May 20, 2022, 4:52 a.m. OK PyPy 3 TESTS 3 109 21708800 800
157768843 152334H A May 20, 2022, 5:36 a.m. OK PyPy 3 TESTS 3 186 7372800 800
157767300 mmooyyii A May 20, 2022, 5:12 a.m. OK PyPy 3 TESTS 3 217 7270400 800
157736138 heprob A May 19, 2022, 6:01 p.m. OK PyPy 3 TESTS 3 233 22732800 800
157742481 append._code A May 19, 2022, 7:10 p.m. OK PyPy 3 TESTS 3 234 22937600 800
157757594 mohanned_war A May 20, 2022, 2 a.m. OK PyPy 3 TESTS 3 249 6348800 800
157744606 abhay_codes A May 19, 2022, 7:42 p.m. OK PyPy 3 TESTS 3 264 23040000 800
157770060 WhyAsh5114 A May 20, 2022, 5:53 a.m. OK PyPy 3 TESTS 3 265 5529600 800
157725566 eyjeong1202 A May 19, 2022, 4:26 p.m. OK PyPy 3 TESTS 3 280 23142400 800
157748120 akimuuwu A May 19, 2022, 8:50 p.m. OK PyPy 3 TESTS 3 295 4505600 800
157757654 Liberator187 A May 20, 2022, 2:01 a.m. OK PyPy 3-64 TESTS 3 93 5939200 800
157741427 MashaM A May 19, 2022, 6:55 p.m. OK PyPy 3-64 TESTS 3 93 36659200 800
157749289 davidchi A May 19, 2022, 9:20 p.m. OK PyPy 3-64 TESTS 3 108 6246400 800
157757152 Youarenotgood A May 20, 2022, 1:49 a.m. OK PyPy 3-64 TESTS 3 109 7884800 800
157756230 abhijeet.panihar.cse20 A May 20, 2022, 1:23 a.m. OK PyPy 3-64 TESTS 3 109 34918400 800
157723774 birgitveldi A May 19, 2022, 4:21 p.m. OK PyPy 3-64 TESTS 3 109 35635200 800
157752084 sharingan000 A May 19, 2022, 10:51 p.m. OK PyPy 3-64 TESTS 3 124 8908800 800
157732986 kwin A May 19, 2022, 5:44 p.m. OK PyPy 3-64 TESTS 3 140 37990400 800
157741304 abhaumik24 A May 19, 2022, 6:54 p.m. OK PyPy 3-64 TESTS 3 170 50278400 800
157742513 anshchaudhary A May 19, 2022, 7:10 p.m. OK PyPy 3-64 TESTS 3 187 36352000 800
157750702 eugalt A May 19, 2022, 10 p.m. OK Python 3 TESTS 3 31 204800 800
157726543 danialcodes A May 19, 2022, 4:29 p.m. OK Python 3 TESTS 3 46 4505600 800
157745102 Andrishak.Ivan A May 19, 2022, 7:50 p.m. OK Python 3 TESTS 3 46 4812800 800
157735910 ivan.komarov A May 19, 2022, 5:59 p.m. OK Python 3 TESTS 3 61 4505600 800
157761660 a_vantik_a A May 20, 2022, 3:29 a.m. OK Python 3 TESTS 3 62 4505600 800
157737902 makss122 A May 19, 2022, 6:15 p.m. OK Python 3 TESTS 3 77 4608000 800
157733106 shashank56 A May 19, 2022, 5:44 p.m. OK Python 3 TESTS 3 77 4608000 800
157764007 praneeth_999 A May 20, 2022, 4:16 a.m. OK Python 3 TESTS 3 93 0 800
157759469 qhr1 A May 20, 2022, 2:44 a.m. OK Python 3 TESTS 3 93 0 800
157738858 blind_eyes A May 19, 2022, 6:24 p.m. OK Python 3 TESTS 3 93 4300800 800
157761968 Spheniscine A May 20, 2022, 3:35 a.m. OK Rust 2021 TESTS 3 15 102400 800

remove filters

Back to search problems