Educational Codeforces Round 122 (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
1633 Educational Codeforces Round 122 (Rated for Div. 2) FINISHED False 7200 93540263 Jan. 31, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 33732 ) A Div. 7 PROGRAMMING brute force

B"You are given an integer n . You have to change the minimum number of digits in it in such a way that the resulting number does not have any leading zeroes and is divisible by 7 . If there are multiple ways to do it, print any of them. If the given number is already divisible by 7 , leave it unchanged. The first line contains one integer t ( 1 <= t <= 990 ) -- the number of test cases. Then the test cases follow, each test case consists of one line containing one integer n ( 10 <= n <= 999 ). For each test case, print one integer without any leading zeroes -- the result of your changes (i. xe2 x80 x89e. the integer that is divisible by 7 and can be obtained by changing the minimum possible number of digits in n ). If there are multiple ways to apply changes, print any resulting number. If the given number is already divisible by 7 , just print it. In the first test case of the example, 42 is already divisible by 7 , so there's no need to change it. In the second test case of the example, there are multiple answers -- 28 , 21 or 63 . In the third test case of the example, other possible answers are 357 , 371 and 378 . Note that you cannot print 077 or 77 . "...

Tutorials

99539

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
144787295 wudima7 A Feb. 1, 2022, 1:16 a.m. OK Clang++17 Diagnostics TESTS 3 31 0
144776896 somvanshi_123 A Jan. 31, 2022, 7:33 p.m. OK GNU C11 TESTS 3 0 0
144756711 wsh12 A Jan. 31, 2022, 4:43 p.m. OK GNU C11 TESTS 3 15 0
144771630 keshav_agg A Jan. 31, 2022, 6:26 p.m. OK GNU C11 TESTS 3 15 0
144787546 dm_tanveer A Feb. 1, 2022, 1:30 a.m. OK GNU C11 TESTS 3 15 0
144790883 jahirulsarker01531 A Feb. 1, 2022, 3:23 a.m. OK GNU C11 TESTS 3 15 0
144798713 little_Penguin2002 A Feb. 1, 2022, 5:51 a.m. OK GNU C11 TESTS 3 15 0
144799035 asutkarayush A Feb. 1, 2022, 5:55 a.m. OK GNU C11 TESTS 3 15 0
144778848 Hritik21186 A Jan. 31, 2022, 8:03 p.m. OK GNU C11 TESTS 3 15 0
144776139 Akanta A Jan. 31, 2022, 7:23 p.m. OK GNU C11 TESTS 3 15 0
144784319 sanket.bihari A Jan. 31, 2022, 10:12 p.m. OK GNU C11 TESTS 3 15 0
144797732 saddy_sama A Feb. 1, 2022, 5:41 a.m. OK GNU C++14 TESTS 3 0 0
144794258 lokeshparab4545 A Feb. 1, 2022, 4:29 a.m. OK GNU C++14 TESTS 3 0 0
144793785 patience_level_zero A Feb. 1, 2022, 4:21 a.m. OK GNU C++14 TESTS 3 0 0
144793670 kavania2002 A Feb. 1, 2022, 4:19 a.m. OK GNU C++14 TESTS 3 0 0
144793423 The_Hawk_returns A Feb. 1, 2022, 4:14 a.m. OK GNU C++14 TESTS 3 0 0
144799658 alpha_022 A Feb. 1, 2022, 6:01 a.m. OK GNU C++14 TESTS 3 0 0
144798910 devaa_03 A Feb. 1, 2022, 5:54 a.m. OK GNU C++14 TESTS 3 0 0
144797899 priyanshi232 A Feb. 1, 2022, 5:42 a.m. OK GNU C++14 TESTS 3 0 0
144797847 arpit644 A Feb. 1, 2022, 5:42 a.m. OK GNU C++14 TESTS 3 0 0
144794542 rts_tamak A Feb. 1, 2022, 4:34 a.m. OK GNU C++14 TESTS 3 0 0
144799417 CRkodervro A Feb. 1, 2022, 5:59 a.m. OK GNU C++17 TESTS 3 0 0
144799689 kshittiz21 A Feb. 1, 2022, 6:02 a.m. OK GNU C++17 TESTS 3 0 0
144799394 rajdeep321 A Feb. 1, 2022, 5:59 a.m. OK GNU C++17 TESTS 3 0 0
144799345 1riddhi A Feb. 1, 2022, 5:58 a.m. OK GNU C++17 TESTS 3 0 0
144799262 hrksarthak A Feb. 1, 2022, 5:58 a.m. OK GNU C++17 TESTS 3 0 0
144799182 guide11131 A Feb. 1, 2022, 5:57 a.m. OK GNU C++17 TESTS 3 0 0
144799123 rajdeep321 A Feb. 1, 2022, 5:56 a.m. OK GNU C++17 TESTS 3 0 0
144799034 Pr_iya_gupta A Feb. 1, 2022, 5:55 a.m. OK GNU C++17 TESTS 3 0 0
144799017 nand1292 A Feb. 1, 2022, 5:55 a.m. OK GNU C++17 TESTS 3 0 0
144798894 RNAB100 A Feb. 1, 2022, 5:53 a.m. OK GNU C++17 TESTS 3 0 0
144791190 MongyTrad A Feb. 1, 2022, 3:30 a.m. OK GNU C++17 (64) TESTS 3 0 0
144790998 binminh01 A Feb. 1, 2022, 3:25 a.m. OK GNU C++17 (64) TESTS 3 0 0
144793519 ajxu2 A Feb. 1, 2022, 4:16 a.m. OK GNU C++17 (64) TESTS 3 0 0
144794169 Emotiona A Feb. 1, 2022, 4:28 a.m. OK GNU C++17 (64) TESTS 3 0 0
144794930 rifatentr A Feb. 1, 2022, 4:40 a.m. OK GNU C++17 (64) TESTS 3 0 0
144797537 jb_2402 A Feb. 1, 2022, 5:39 a.m. OK GNU C++17 (64) TESTS 3 0 0
144798167 Win_Handsome A Feb. 1, 2022, 5:45 a.m. OK GNU C++17 (64) TESTS 3 0 0
144798558 Starscream-11813 A Feb. 1, 2022, 5:50 a.m. OK GNU C++17 (64) TESTS 3 0 0
144798811 Agile_Eagle A Feb. 1, 2022, 5:52 a.m. OK GNU C++17 (64) TESTS 3 0 0
144799281 jitu_falcon15 A Feb. 1, 2022, 5:58 a.m. OK GNU C++17 (64) TESTS 3 0 0
144794085 HP_BenLadeN A Feb. 1, 2022, 4:26 a.m. OK GNU C++20 (64) TESTS 3 0 0
144793375 Mr_Skills A Feb. 1, 2022, 4:14 a.m. OK GNU C++20 (64) TESTS 3 0 0
144799699 _tushar_19 A Feb. 1, 2022, 6:02 a.m. OK GNU C++20 (64) TESTS 3 0 0
144798252 Aman23Sriv A Feb. 1, 2022, 5:46 a.m. OK GNU C++20 (64) TESTS 3 0 0
144797680 Shravan0pandey A Feb. 1, 2022, 5:40 a.m. OK GNU C++20 (64) TESTS 3 0 0
144797663 Enma A Feb. 1, 2022, 5:40 a.m. OK GNU C++20 (64) TESTS 3 0 0
144797614 niloybhowmik1 A Feb. 1, 2022, 5:40 a.m. OK GNU C++20 (64) TESTS 3 0 0
144794866 Lwind07 A Feb. 1, 2022, 4:39 a.m. OK GNU C++20 (64) TESTS 3 0 0
144794782 happy1237 A Feb. 1, 2022, 4:37 a.m. OK GNU C++20 (64) TESTS 3 0 0
144794126 HP_BenLadeN A Feb. 1, 2022, 4:27 a.m. OK GNU C++20 (64) TESTS 3 0 0
144771086 glebsamsonov A Jan. 31, 2022, 6:21 p.m. OK Go TESTS 3 15 0
144786701 0x3F A Feb. 1, 2022, 12:39 a.m. OK Go TESTS 3 31 0
144787748 robinz62 A Feb. 1, 2022, 1:40 a.m. OK Java 11 TESTS 3 155 0
144759203 trevor_49 A Jan. 31, 2022, 4:53 p.m. OK Java 11 TESTS 3 155 0
144792988 __Serendipity A Feb. 1, 2022, 4:07 a.m. OK Java 11 TESTS 3 155 0
144778359 daemon404 A Jan. 31, 2022, 7:55 p.m. OK Java 11 TESTS 3 156 0
144758749 sauravmandal A Jan. 31, 2022, 4:51 p.m. OK Java 11 TESTS 3 156 0
144769478 puriabhijit000 A Jan. 31, 2022, 6:06 p.m. OK Java 11 TESTS 3 156 0
144779142 anjroo A Jan. 31, 2022, 8:09 p.m. OK Java 11 TESTS 3 171 0
144782835 parthsingh287 A Jan. 31, 2022, 9:25 p.m. OK Java 11 TESTS 3 186 204800
144768214 ramkumarinfinity1996 A Jan. 31, 2022, 5:54 p.m. OK Java 11 TESTS 3 187 0
144793020 uddantisaketh2001 A Feb. 1, 2022, 4:08 a.m. OK Java 11 TESTS 3 187 0
144764936 Ancient_One A Jan. 31, 2022, 5:28 p.m. OK Java 8 TESTS 3 78 0
144760409 abhishek1102 A Jan. 31, 2022, 4:59 p.m. OK Java 8 TESTS 3 93 0
144759502 deepaksach A Jan. 31, 2022, 4:55 p.m. OK Java 8 TESTS 3 93 0
144789137 tushar24 A Feb. 1, 2022, 2:36 a.m. OK Java 8 TESTS 3 93 0
144775813 roctes7 A Jan. 31, 2022, 7:18 p.m. OK Java 8 TESTS 3 93 0
144770989 less_ordinary A Jan. 31, 2022, 6:20 p.m. OK Java 8 TESTS 3 93 0
144766007 Karakurik A Jan. 31, 2022, 5:36 p.m. OK Java 8 TESTS 3 93 0
144774527 VishuTomar A Jan. 31, 2022, 7:01 p.m. OK Java 8 TESTS 3 108 0
144764231 vivmost14 A Jan. 31, 2022, 5:23 p.m. OK Java 8 TESTS 3 109 0
144779042 anurag9802 A Jan. 31, 2022, 8:07 p.m. OK Java 8 TESTS 3 109 0
144768806 arvindf232 A Jan. 31, 2022, 6 p.m. OK Kotlin 1.4 TESTS 3 108 0
144779980 rerererere A Jan. 31, 2022, 8:24 p.m. OK Kotlin 1.5 TESTS 3 202 204800
144771686 Tangerine A Jan. 31, 2022, 6:27 p.m. OK MS C++ 2017 TESTS 3 0 0
144765185 Tanish69 A Jan. 31, 2022, 5:30 p.m. OK MS C++ 2017 TESTS 3 0 0
144766078 deepanshi25 A Jan. 31, 2022, 5:36 p.m. OK MS C++ 2017 TESTS 3 0 0
144760334 DmitryVol A Jan. 31, 2022, 4:59 p.m. OK MS C++ 2017 TESTS 3 15 0
144769857 Raretet A Jan. 31, 2022, 6:09 p.m. OK MS C++ 2017 TESTS 3 15 0
144768030 vatsal96 A Jan. 31, 2022, 5:53 p.m. OK MS C++ 2017 TESTS 3 15 0
144787677 Uditpatel78 A Feb. 1, 2022, 1:36 a.m. OK MS C++ 2017 TESTS 3 15 0
144785301 swfads A Jan. 31, 2022, 10:51 p.m. OK MS C++ 2017 TESTS 3 15 0
144785825 CosmoRied A Jan. 31, 2022, 11:48 p.m. OK MS C++ 2017 TESTS 3 529 0
144783424 giovannielias9500 A Jan. 31, 2022, 9:41 p.m. OK .NET Core C# TESTS 3 77 716800
144785759 Nidz05 A Jan. 31, 2022, 11:44 p.m. OK .NET Core C# TESTS 3 93 2867200
144776550 divyateja2004 A Jan. 31, 2022, 7:28 p.m. OK Node.js TESTS 3 46 1331200
144763681 osato A Jan. 31, 2022, 5:19 p.m. OK Node.js TESTS 3 61 1024000
144757582 1_2_3_4_5_9 A Jan. 31, 2022, 4:46 p.m. OK PyPy 2 TESTS 3 61 307200
144760232 fme A Jan. 31, 2022, 4:58 p.m. OK PyPy 2 TESTS 3 77 614400
144791656 whatshisbucket A Feb. 1, 2022, 3:41 a.m. OK PyPy 3 TESTS 3 93 2048000
144773081 YouCanCallMeNoob A Jan. 31, 2022, 6:43 p.m. OK PyPy 3 TESTS 3 108 2764800
144764079 rajuthegr8 A Jan. 31, 2022, 5:22 p.m. OK PyPy 3 TESTS 3 109 3174400
144780288 Abdusharif A Jan. 31, 2022, 8:30 p.m. OK PyPy 3 TESTS 3 124 2252800
144759504 YashikaGulati A Jan. 31, 2022, 4:55 p.m. OK PyPy 3 TESTS 3 124 2252800
144774552 AmitY33 A Jan. 31, 2022, 7:01 p.m. OK PyPy 3 TESTS 3 124 2764800
144772829 nsp3333 A Jan. 31, 2022, 6:40 p.m. OK PyPy 3 TESTS 3 124 2764800
144757828 sangram03 A Jan. 31, 2022, 4:47 p.m. OK PyPy 3 TESTS 3 124 2764800
144788143 tranminhprvt01 A Feb. 1, 2022, 1:57 a.m. OK PyPy 3 TESTS 3 124 3379200
144799760 deveshbedmutha A Feb. 1, 2022, 6:02 a.m. OK PyPy 3 TESTS 3 124 3891200
144763109 epoweripi A Jan. 31, 2022, 5:15 p.m. OK PyPy 3-64 TESTS 3 62 614400
144768613 nitish420 A Jan. 31, 2022, 5:58 p.m. OK PyPy 3-64 TESTS 3 62 3174400
144788155 sharingan000 A Feb. 1, 2022, 1:58 a.m. OK PyPy 3-64 TESTS 3 93 3891200
144778885 annarrkh A Jan. 31, 2022, 8:04 p.m. OK PyPy 3-64 TESTS 3 93 4198400
144769620 Surovtsev_math A Jan. 31, 2022, 6:07 p.m. OK PyPy 3-64 TESTS 3 93 4505600
144764548 alchemist512 A Jan. 31, 2022, 5:25 p.m. OK PyPy 3-64 TESTS 3 93 4505600
144760829 uroborosikes A Jan. 31, 2022, 5:02 p.m. OK PyPy 3-64 TESTS 3 93 5734400
144788675 kakashi_copy_ninja A Feb. 1, 2022, 2:21 a.m. OK PyPy 3-64 TESTS 3 108 4300800
144763030 valor_1 A Jan. 31, 2022, 5:15 p.m. OK PyPy 3-64 TESTS 3 108 4505600
144792618 SubhajeetLahiri A Feb. 1, 2022, 4 a.m. OK PyPy 3-64 TESTS 3 109 4403200
144765836 OLOGY A Jan. 31, 2022, 5:34 p.m. OK Python 2 TESTS 3 31 0
144767218 nisarggDevani A Jan. 31, 2022, 5:46 p.m. OK Python 3 TESTS 3 30 0
144792959 RRK4 A Feb. 1, 2022, 4:07 a.m. OK Python 3 TESTS 3 31 0
144790794 Roomey_Rahman A Feb. 1, 2022, 3:21 a.m. OK Python 3 TESTS 3 31 0
144781321 shreygoyal2203 A Jan. 31, 2022, 8:50 p.m. OK Python 3 TESTS 3 31 0
144779833 InYourDreams A Jan. 31, 2022, 8:22 p.m. OK Python 3 TESTS 3 31 0
144776277 varun077 A Jan. 31, 2022, 7:25 p.m. OK Python 3 TESTS 3 31 0
144775961 shubham1292000 A Jan. 31, 2022, 7:20 p.m. OK Python 3 TESTS 3 31 0
144768804 bishtman12 A Jan. 31, 2022, 6 p.m. OK Python 3 TESTS 3 31 0
144767842 jimmyliu A Jan. 31, 2022, 5:51 p.m. OK Python 3 TESTS 3 31 0
144767355 wider93 A Jan. 31, 2022, 5:47 p.m. OK Python 3 TESTS 3 31 0
144766048 Hyrulia A Jan. 31, 2022, 5:36 p.m. OK Rust 2021 TESTS 3 15 0
144793780 black_rise A Feb. 1, 2022, 4:21 a.m. OK Scala TESTS 3 389 0

remove filters

Back to search problems