Educational Codeforces Round 164 (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
1954 Educational Codeforces Round 164 (Rated for Div. 2) FINISHED False 7200 24247463 April 12, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 20123 ) C Long Multiplication PROGRAMMING greedy math

B'You are given two integers x and y of the same length, consisting of digits from 1 to 9 . You can perform the following operation any number of times (possibly zero): swap the i -th digit in x and the i -th digit in y . For example, if x=73 and y=31 , you can swap the 2 -nd digits and get x=71 and y=33 . Your task is to maximize the product of x and y using the aforementioned operation any number of times. If there are multiple answers, print any of them. The first line contains a single integer t ( 1 <= t <= 1000 ) -- the number of test cases. The first line of each test case contains a single integer x ( 1 <= x < 10^{100} ). The second line of each test case contains a single integer y ( 1 <= y < 10^{100} ). Additional constraint on input: the integers x and y consist only of digits from 1 to 9 . For each test case, print two lines -- the first line should contain the number x after performing the operations; similarly, the second line should contain the number y after performing the operations. If there are multiple answers, print any of them. '...

Tutorials

Educational Codeforces Round 164 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
256400299 karamkontar C April 13, 2024, 3:32 a.m. OK C# 10 TESTS 5 93 2457600
256355086 gvelesa C April 12, 2024, 4:47 p.m. OK C# 10 TESTS 5 109 2969600
256406825 Friday_night C April 13, 2024, 5:10 a.m. OK C++14 (GCC 6-32) TESTS 5 31 0
256395692 negetive_iq C April 13, 2024, 2:07 a.m. OK C++14 (GCC 6-32) TESTS 5 46 0
256395548 PremRathod C April 13, 2024, 2:04 a.m. OK C++14 (GCC 6-32) TESTS 5 46 0
256386632 Tawfica_Bhuiyan C April 12, 2024, 10:21 p.m. OK C++14 (GCC 6-32) TESTS 5 46 0
256381390 Nadaan_Parinda C April 12, 2024, 8:52 p.m. OK C++14 (GCC 6-32) TESTS 5 46 0
256379409 22_Youssef_19 C April 12, 2024, 8:24 p.m. OK C++14 (GCC 6-32) TESTS 5 46 0
256379163 the_enchey C April 12, 2024, 8:21 p.m. OK C++14 (GCC 6-32) TESTS 5 46 0
256379310 22_Youssef_19 C April 12, 2024, 8:22 p.m. OK C++14 (GCC 6-32) TESTS 5 46 0
256405223 v3276729 C April 13, 2024, 4:49 a.m. OK C++14 (GCC 6-32) TESTS 5 46 0
256403371 sojaljain02 C April 13, 2024, 4:20 a.m. OK C++14 (GCC 6-32) TESTS 5 46 0
256394386 Lechaa009 C April 13, 2024, 1:38 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
256405365 samruddhi.deshmukh.ece22 C April 13, 2024, 4:51 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
256405305 GOVIND_JANGRA C April 13, 2024, 4:50 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
256400643 sagar54 C April 13, 2024, 3:38 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
256397183 hnust_ccy C April 13, 2024, 2:37 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
256394200 Lechaa009 C April 13, 2024, 1:35 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
256381581 Ibne_Hassan C April 12, 2024, 8:54 p.m. OK C++17 (GCC 7-32) TESTS 5 31 0
256381165 Ankit_1703 C April 12, 2024, 8:48 p.m. OK C++17 (GCC 7-32) TESTS 5 31 0
256373336 divyam_raj C April 12, 2024, 7:14 p.m. OK C++17 (GCC 7-32) TESTS 5 31 0
256372632 _Z0R0_ C April 12, 2024, 7:07 p.m. OK C++17 (GCC 7-32) TESTS 5 31 0
256352521 DrainedOmar C April 12, 2024, 4:36 p.m. OK C++20 (GCC 13-64) TESTS 5 30 0
256371952 riftk C April 12, 2024, 7:01 p.m. OK C++20 (GCC 13-64) TESTS 5 30 0
256357824 __R__s C April 12, 2024, 5:02 p.m. OK C++20 (GCC 13-64) TESTS 5 30 0
256356938 Frus C April 12, 2024, 4:57 p.m. OK C++20 (GCC 13-64) TESTS 5 30 0
256356723 WhoAmI0070 C April 12, 2024, 4:56 p.m. OK C++20 (GCC 13-64) TESTS 5 30 0
256397413 paras_poria C April 13, 2024, 2:42 a.m. OK C++20 (GCC 13-64) TESTS 5 31 0
256404573 othmaine C April 13, 2024, 4:39 a.m. OK C++20 (GCC 13-64) TESTS 5 31 0
256400941 larush C April 13, 2024, 3:42 a.m. OK C++20 (GCC 13-64) TESTS 5 31 0
256397706 Ruthvik2835 C April 13, 2024, 2:48 a.m. OK C++20 (GCC 13-64) TESTS 5 31 0
256388622 KatyPerrryy C April 12, 2024, 11:08 p.m. OK C++20 (GCC 13-64) TESTS 5 31 0
256394489 bluemegane C April 13, 2024, 1:41 a.m. OK C# 8 TESTS 5 124 3072000
256351922 eagerlearner123 C April 12, 2024, 4:34 p.m. OK GNU C11 TESTS 5 46 0
256359506 saaad C April 12, 2024, 5:14 p.m. OK GNU C11 TESTS 5 46 204800
256371054 Jenish_07 C April 12, 2024, 6:52 p.m. OK GNU C11 TESTS 5 62 102400
256356486 Szzzp C April 12, 2024, 4:54 p.m. OK GNU C11 TESTS 5 77 102400
256350041 Ankityadav05 C April 12, 2024, 4:31 p.m. OK GNU C11 TESTS 5 827 102400
256366112 treasuryonly C April 12, 2024, 6:07 p.m. OK Haskell TESTS 5 77 0
256383435 sagbis C April 12, 2024, 9:22 p.m. OK Java 21 TESTS 5 202 204800
256379342 Kenzhezhan C April 12, 2024, 8:23 p.m. OK Java 21 TESTS 5 218 102400
256354813 var_hash C April 12, 2024, 4:46 p.m. OK Java 21 TESTS 5 218 204800
256401347 Gaurav1511 C April 13, 2024, 3:49 a.m. OK Java 21 TESTS 5 233 1228800
256384087 SD125 C April 12, 2024, 9:34 p.m. OK Java 21 TESTS 5 234 1228800
256365673 FutureSight C April 12, 2024, 6:03 p.m. OK Java 21 TESTS 5 249 204800
256352606 Sylvester_ C April 12, 2024, 4:36 p.m. OK Java 21 TESTS 5 249 307200
256369638 aspgarv112 C April 12, 2024, 6:38 p.m. OK Java 21 TESTS 5 249 614400
256384502 Kartikey987 C April 12, 2024, 9:40 p.m. OK Java 21 TESTS 5 249 921600
256377367 raja1102 C April 12, 2024, 8 p.m. OK Java 21 TESTS 5 249 921600
256367908 Safawt C April 12, 2024, 6:23 p.m. OK Java 8 TESTS 5 124 0
256361372 vrishabshetty C April 12, 2024, 5:27 p.m. OK Java 8 TESTS 5 140 0
256376989 Sumitsingh7 C April 12, 2024, 7:56 p.m. OK Java 8 TESTS 5 140 6758400
256408983 ILoveBitches C April 13, 2024, 5:35 a.m. OK Java 8 TESTS 5 140 9420800
256391091 alibaba C April 13, 2024, 12:14 a.m. OK Java 8 TESTS 5 155 0
256360370 iamcodebug C April 12, 2024, 5:19 p.m. OK Java 8 TESTS 5 155 0
256399217 Sanat0412 C April 13, 2024, 3:14 a.m. OK Java 8 TESTS 5 156 0
256407904 rakeshpatel17 C April 13, 2024, 5:24 a.m. OK Java 8 TESTS 5 171 0
256370883 Safawt C April 12, 2024, 6:50 p.m. OK Java 8 TESTS 5 171 0
256362685 vedang01 C April 12, 2024, 5:38 p.m. OK Java 8 TESTS 5 171 0
256363492 maximzasorin C April 12, 2024, 5:45 p.m. OK PHP TESTS 5 78 0
256363410 maximzasorin C April 12, 2024, 5:44 p.m. OK PHP TESTS 5 93 0
256357370 bboo_123 C April 12, 2024, 4:59 p.m. OK PyPy 3 TESTS 5 187 6656000
256370788 jvatsal0709 C April 12, 2024, 6:49 p.m. OK PyPy 3 TESTS 5 202 6041600
256362242 Kefrov C April 12, 2024, 5:34 p.m. OK PyPy 3 TESTS 5 202 6553600
256381298 22bec021 C April 12, 2024, 8:50 p.m. OK PyPy 3 TESTS 5 249 6246400
256351841 lo_krlo_baatt C April 12, 2024, 4:34 p.m. OK PyPy 3 TESTS 5 327 6860800
256357469 Protik_7 C April 12, 2024, 5 p.m. OK PyPy 3 TESTS 5 343 7782400
256375509 Mohamed_Hamed C April 12, 2024, 7:38 p.m. OK PyPy 3-64 TESTS 5 108 5324800
256403872 voicon C April 13, 2024, 4:28 a.m. OK PyPy 3-64 TESTS 5 108 5529600
256361971 uttharapally_chandra C April 12, 2024, 5:32 p.m. OK PyPy 3-64 TESTS 5 124 5939200
256405842 master_JD C April 13, 2024, 4:58 a.m. OK PyPy 3-64 TESTS 5 140 5017600
256409050 RajdeepA C April 13, 2024, 5:36 a.m. OK PyPy 3-64 TESTS 5 140 5222400
256367063 NitroSpear C April 12, 2024, 6:15 p.m. OK PyPy 3-64 TESTS 5 140 5529600
256366706 yertugan06 C April 12, 2024, 6:12 p.m. OK PyPy 3-64 TESTS 5 140 6246400
256356020 RobinFromTheHood C April 12, 2024, 4:52 p.m. OK PyPy 3-64 TESTS 5 140 6348800
256390830 MaxValgen_ C April 13, 2024, 12:07 a.m. OK PyPy 3-64 TESTS 5 155 5734400
256354176 OmarMoBadr C April 12, 2024, 4:43 p.m. OK PyPy 3-64 TESTS 5 156 9728000
256361807 OLOGY C April 12, 2024, 5:31 p.m. OK Python 3 TESTS 5 77 0
256403045 r-tron18 C April 13, 2024, 4:15 a.m. OK Python 3 TESTS 5 78 0
256403136 Ujjwal_Ojha C April 13, 2024, 4:16 a.m. OK Python 3 TESTS 5 93 0
256370874 anup_0408 C April 12, 2024, 6:50 p.m. OK Python 3 TESTS 5 93 0
256360024 OLOGY C April 12, 2024, 5:17 p.m. OK Python 3 TESTS 5 93 0
256355270 Fgdg45 C April 12, 2024, 4:48 p.m. OK Python 3 TESTS 5 93 0
256352744 VioletVal C April 12, 2024, 4:36 p.m. OK Python 3 TESTS 5 93 0
256352225 szzzz C April 12, 2024, 4:34 p.m. OK Python 3 TESTS 5 93 0
256404486 sujan_21 C April 13, 2024, 4:38 a.m. OK Python 3 TESTS 5 108 0
256384664 ZaidSaadeh C April 12, 2024, 9:43 p.m. OK Python 3 TESTS 5 108 0
256360033 0x81 C April 12, 2024, 5:17 p.m. OK Ruby 3 TESTS 5 343 2662400

remove filters

Back to search problems