Codeforces Round 898 (Div. 4)

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
1873 Codeforces Round 898 (Div. 4) FINISHED False 9000 36516299 Sept. 21, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 49693 ) B Good Kid PROGRAMMING brute force brute force brute force greedy math

B"Slavic is preparing a present for a friend's birthday. He has an array a of n digits and the present will be the product of all these digits. Because Slavic is a good kid who wants to make the biggest product possible, he wants to add 1 to exactly one of his digits. What is the maximum product Slavic can make? The first line contains a single integer t ( 1 <= q t <= q 10^4 ) -- the number of test cases. The first line of each test case contains a single integer n ( 1 <= q n <= q 9 ) -- the number of digits. The second line of each test case contains n space-separated integers a_i ( 0 <= q a_i <= q 9 ) -- the digits in the array. For each test case, output a single integer -- the maximum product Slavic can make, by adding 1 to exactly one of his digits. "...

Tutorials

120634

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
224527174 Ahnenerbe B Sept. 21, 2023, 7:51 p.m. OK C# 10 TESTS 2 77 3174400
224520921 WasikBAUST B Sept. 21, 2023, 6:44 p.m. OK C# 10 TESTS 2 93 3072000
224516562 Shazidhstu20 B Sept. 21, 2023, 6:09 p.m. OK C# 10 TESTS 2 93 3072000
224534919 Morty_Coder B Sept. 21, 2023, 9:47 p.m. OK C# 10 TESTS 2 93 3174400
224535808 bluemegane B Sept. 21, 2023, 10:07 p.m. OK C# 8 TESTS 2 186 3276800
224535830 bluemegane B Sept. 21, 2023, 10:08 p.m. OK C# 8 TESTS 2 249 3174400
224521373 faisalmithun1316 B Sept. 21, 2023, 6:49 p.m. OK Clang++17 Diagnostics TESTS 2 30 0
224516626 BraveTeam B Sept. 21, 2023, 6:09 p.m. OK Clang++17 Diagnostics TESTS 2 217 0
224544740 brightest66 B Sept. 22, 2023, 1:38 a.m. OK Clang++20 Diagnostics TESTS 2 233 0
224552437 SlowMagic B Sept. 22, 2023, 3:41 a.m. OK Clang++20 Diagnostics TESTS 2 248 0
224546874 qiaochu B Sept. 22, 2023, 2:14 a.m. OK Clang++20 Diagnostics TESTS 2 248 0
224521098 naimPAiNamp B Sept. 21, 2023, 6:46 p.m. OK GNU C11 TESTS 2 31 0
224523018 bhojpuriadon B Sept. 21, 2023, 7:05 p.m. OK GNU C11 TESTS 2 46 0
224557781 ahmedafeef B Sept. 22, 2023, 4:50 a.m. OK GNU C11 TESTS 2 46 0
224557395 ahmedafeef B Sept. 22, 2023, 4:45 a.m. OK GNU C11 TESTS 2 46 0
224552242 LLZZ B Sept. 22, 2023, 3:38 a.m. OK GNU C11 TESTS 2 46 0
224550352 B.Madhav B Sept. 22, 2023, 3:10 a.m. OK GNU C11 TESTS 2 46 0
224550313 20226033 B Sept. 22, 2023, 3:09 a.m. OK GNU C11 TESTS 2 46 0
224544521 vjudge4 B Sept. 22, 2023, 1:34 a.m. OK GNU C11 TESTS 2 46 0
224532178 ferizoozoo B Sept. 21, 2023, 8:56 p.m. OK GNU C11 TESTS 2 46 0
224520340 deveshpandat B Sept. 21, 2023, 6:39 p.m. OK GNU C11 TESTS 2 46 0
224524806 youssef_salah_ B Sept. 21, 2023, 7:24 p.m. OK GNU C++14 TESTS 2 0 102400
224549228 YJDDB B Sept. 22, 2023, 2:53 a.m. OK GNU C++14 TESTS 2 15 0
224554917 kuguadawang B Sept. 22, 2023, 4:10 a.m. OK GNU C++14 TESTS 2 15 0
224557667 XCPC B Sept. 22, 2023, 4:49 a.m. OK GNU C++14 TESTS 2 15 0
224545918 asif_x86-64 B Sept. 22, 2023, 1:59 a.m. OK GNU C++14 TESTS 2 15 0
224539153 zltzlt B Sept. 21, 2023, 11:35 p.m. OK GNU C++14 TESTS 2 15 0
224539931 baka77 B Sept. 21, 2023, 11:58 p.m. OK GNU C++14 TESTS 2 15 0
224542143 more-cheese B Sept. 22, 2023, 12:48 a.m. OK GNU C++14 TESTS 2 15 0
224542676 yunhaiii B Sept. 22, 2023, 12:59 a.m. OK GNU C++14 TESTS 2 15 0
224543660 quocdung2603 B Sept. 22, 2023, 1:19 a.m. OK GNU C++14 TESTS 2 15 0
224560293 Divyankar B Sept. 22, 2023, 5:21 a.m. OK GNU C++17 TESTS 2 0 0
224551493 ZHXN B Sept. 22, 2023, 3:27 a.m. OK GNU C++17 TESTS 2 0 0
224551191 StayDetermined B Sept. 22, 2023, 3:23 a.m. OK GNU C++17 TESTS 2 0 0
224550334 emptyboxs B Sept. 22, 2023, 3:10 a.m. OK GNU C++17 TESTS 2 0 0
224544547 BerryPie B Sept. 22, 2023, 1:35 a.m. OK GNU C++17 TESTS 2 0 0
224564041 vin15 B Sept. 22, 2023, 6:01 a.m. OK GNU C++17 TESTS 2 0 102400
224559895 samrat09 B Sept. 22, 2023, 5:17 a.m. OK GNU C++17 TESTS 2 0 102400
224556789 singh2606 B Sept. 22, 2023, 4:37 a.m. OK GNU C++17 TESTS 2 0 102400
224556051 acceptify B Sept. 22, 2023, 4:27 a.m. OK GNU C++17 TESTS 2 0 102400
224551469 anuragitme B Sept. 22, 2023, 3:27 a.m. OK GNU C++17 TESTS 2 0 102400
224547247 shuvocoder2025 B Sept. 22, 2023, 2:20 a.m. OK GNU C++17 (64) TESTS 2 0 0
224541843 Dianana B Sept. 22, 2023, 12:43 a.m. OK GNU C++17 (64) TESTS 2 0 0
224541526 takeyeldean B Sept. 22, 2023, 12:36 a.m. OK GNU C++17 (64) TESTS 2 0 0
224523737 Safwan__ B Sept. 21, 2023, 7:13 p.m. OK GNU C++17 (64) TESTS 2 0 0
224519468 Sultan_Borhan B Sept. 21, 2023, 6:32 p.m. OK GNU C++17 (64) TESTS 2 0 0
224560880 Priyansh_16 B Sept. 22, 2023, 5:28 a.m. OK GNU C++17 (64) TESTS 2 0 49766400
224558927 zhi_fan B Sept. 22, 2023, 5:04 a.m. OK GNU C++17 (64) TESTS 2 15 0
224559194 vaishnavi_111 B Sept. 22, 2023, 5:08 a.m. OK GNU C++17 (64) TESTS 2 15 0
224554745 rm1003 B Sept. 22, 2023, 4:07 a.m. OK GNU C++17 (64) TESTS 2 15 0
224553040 Fast_submit B Sept. 22, 2023, 3:50 a.m. OK GNU C++17 (64) TESTS 2 15 0
224563450 Mina_Eissa B Sept. 22, 2023, 5:54 a.m. OK GNU C++20 (64) TESTS 2 0 0
224563298 ankancool B Sept. 22, 2023, 5:53 a.m. OK GNU C++20 (64) TESTS 2 0 0
224562788 khelo B Sept. 22, 2023, 5:47 a.m. OK GNU C++20 (64) TESTS 2 0 0
224561652 Abo_Samrah B Sept. 22, 2023, 5:36 a.m. OK GNU C++20 (64) TESTS 2 0 0
224559765 hirsuitedevil B Sept. 22, 2023, 5:15 a.m. OK GNU C++20 (64) TESTS 2 0 0
224558994 sarthakjoleya B Sept. 22, 2023, 5:05 a.m. OK GNU C++20 (64) TESTS 2 0 0
224556650 SmallXueHua B Sept. 22, 2023, 4:35 a.m. OK GNU C++20 (64) TESTS 2 0 0
224555507 S360 B Sept. 22, 2023, 4:19 a.m. OK GNU C++20 (64) TESTS 2 0 0
224554879 Jupiter_is_BIG B Sept. 22, 2023, 4:10 a.m. OK GNU C++20 (64) TESTS 2 0 0
224554436 Ashwini_Tiwari B Sept. 22, 2023, 4:03 a.m. OK GNU C++20 (64) TESTS 2 0 0
224551381 79209748 B Sept. 22, 2023, 3:26 a.m. OK Go TESTS 2 15 1024000
224516517 nanmenkaimak B Sept. 21, 2023, 6:08 p.m. OK Go TESTS 2 46 1843200
224563238 Kantoelite11 B Sept. 22, 2023, 5:52 a.m. OK Go TESTS 2 46 2457600
224559473 ordinaryyyx B Sept. 22, 2023, 5:12 a.m. OK Go TESTS 2 405 2969600
224549091 katomasao B Sept. 22, 2023, 2:51 a.m. OK Haskell TESTS 2 124 0
224532442 dark_rays B Sept. 21, 2023, 9:01 p.m. OK Java 11 TESTS 2 171 0
224519692 ujjwal_a0001 B Sept. 21, 2023, 6:34 p.m. OK Java 11 TESTS 2 171 0
224551308 coadingcat B Sept. 22, 2023, 3:25 a.m. OK Java 11 TESTS 2 311 0
224558887 jayvardhan_parkar B Sept. 22, 2023, 5:04 a.m. OK Java 11 TESTS 2 311 0
224535786 MrAnt1vit B Sept. 21, 2023, 10:07 p.m. OK Java 11 TESTS 2 311 0
224521528 richesh27 B Sept. 21, 2023, 6:50 p.m. OK Java 11 TESTS 2 311 0
224520792 Malik01 B Sept. 21, 2023, 6:43 p.m. OK Java 11 TESTS 2 311 0
224520687 abdalla_mmdouh B Sept. 21, 2023, 6:42 p.m. OK Java 11 TESTS 2 311 0
224519897 kiranganji B Sept. 21, 2023, 6:35 p.m. OK Java 11 TESTS 2 311 0
224525261 deepakgupta.2612 B Sept. 21, 2023, 7:29 p.m. OK Java 11 TESTS 2 312 0
224552281 anacharsis B Sept. 22, 2023, 3:39 a.m. OK Java 17 TESTS 2 171 307200
224539764 vikash_45 B Sept. 21, 2023, 11:53 p.m. OK Java 17 TESTS 2 187 307200
224516980 akashrathore B Sept. 21, 2023, 6:12 p.m. OK Java 17 TESTS 2 217 614400
224520118 bikashsahh B Sept. 21, 2023, 6:37 p.m. OK Java 17 TESTS 2 218 204800
224549481 Raj_kumar_ray B Sept. 22, 2023, 2:57 a.m. OK Java 17 TESTS 2 233 921600
224550236 arpita010 B Sept. 22, 2023, 3:08 a.m. OK Java 17 TESTS 2 249 716800
224536182 ahmadmasri B Sept. 21, 2023, 10:17 p.m. OK Java 17 TESTS 2 249 819200
224520804 shreyas_11_05 B Sept. 21, 2023, 6:43 p.m. OK Java 17 TESTS 2 249 921600
224529562 jairgoh B Sept. 21, 2023, 8:19 p.m. OK Java 17 TESTS 2 264 307200
224543651 qingxiiiii B Sept. 22, 2023, 1:18 a.m. OK Java 17 TESTS 2 280 102400
224516098 Yousef_Badr B Sept. 21, 2023, 6:05 p.m. OK Java 8 TESTS 2 93 0
224551306 prakhar_30 B Sept. 22, 2023, 3:25 a.m. OK Java 8 TESTS 2 109 0
224528816 ZakiKurdya B Sept. 21, 2023, 8:10 p.m. OK Java 8 TESTS 2 124 0
224521121 Sumitsingh7 B Sept. 21, 2023, 6:46 p.m. OK Java 8 TESTS 2 155 5939200
224526667 Prakhar_Mittal B Sept. 21, 2023, 7:46 p.m. OK Java 8 TESTS 2 171 0
224545301 Autunomy B Sept. 22, 2023, 1:49 a.m. OK Java 8 TESTS 2 187 0
224521339 akashagrawal0358 B Sept. 21, 2023, 6:48 p.m. OK Java 8 TESTS 2 218 0
224534539 ujjwalavishek B Sept. 21, 2023, 9:38 p.m. OK Java 8 TESTS 2 233 0
224517777 Abhishek.B B Sept. 21, 2023, 6:18 p.m. OK Java 8 TESTS 2 234 0
224563057 tangzhenyu B Sept. 22, 2023, 5:50 a.m. OK Java 8 TESTS 2 248 0
224516338 Imran_Hossain_ B Sept. 21, 2023, 6:07 p.m. OK JavaScript TESTS 2 61 2150400
224531359 Alexit B Sept. 21, 2023, 8:44 p.m. OK MS C++ 2017 TESTS 2 46 0
224563352 Ravitosh B Sept. 22, 2023, 5:53 a.m. OK MS C++ 2017 TESTS 2 62 0
224558121 Pavithraswath B Sept. 22, 2023, 4:55 a.m. OK MS C++ 2017 TESTS 2 77 0
224548495 sk00 B Sept. 22, 2023, 2:41 a.m. OK MS C++ 2017 TESTS 2 77 0
224540932 Selvare B Sept. 22, 2023, 12:23 a.m. OK MS C++ 2017 TESTS 2 77 0
224527535 Asymptomatics B Sept. 21, 2023, 7:56 p.m. OK MS C++ 2017 TESTS 2 77 0
224520214 bigballs123 B Sept. 21, 2023, 6:38 p.m. OK MS C++ 2017 TESTS 2 77 0
224519133 Partik_Malasi B Sept. 21, 2023, 6:29 p.m. OK MS C++ 2017 TESTS 2 78 0
224554817 namankumar8510 B Sept. 22, 2023, 4:09 a.m. OK Node.js TESTS 2 78 5734400
224545152 YMSeah B Sept. 22, 2023, 1:46 a.m. OK PyPy 3 TESTS 2 93 2969600
224519723 Rache_Bartmoss B Sept. 21, 2023, 6:34 p.m. OK PyPy 3 TESTS 2 109 3174400
224516333 DRDIV B Sept. 21, 2023, 6:07 p.m. OK PyPy 3 TESTS 2 155 5017600
224563791 superheated B Sept. 22, 2023, 5:58 a.m. OK PyPy 3 TESTS 2 295 5222400
224516653 Redpunk B Sept. 21, 2023, 6:10 p.m. OK PyPy 3 TESTS 2 311 5324800
224540198 julondonor B Sept. 22, 2023, 12:06 a.m. OK PyPy 3 TESTS 2 326 5427200
224520637 Shanko B Sept. 21, 2023, 6:41 p.m. OK PyPy 3 TESTS 2 326 5632000
224536472 ahmedchammam B Sept. 21, 2023, 10:24 p.m. OK PyPy 3 TESTS 2 327 5632000
224528915 buts B Sept. 21, 2023, 8:11 p.m. OK PyPy 3 TESTS 2 327 5632000
224516342 yvovaa B Sept. 21, 2023, 6:07 p.m. OK PyPy 3 TESTS 2 342 5324800
224534484 itsabigbum B Sept. 21, 2023, 9:37 p.m. OK PyPy 3-64 TESTS 2 61 4915200
224542950 Solaca B Sept. 22, 2023, 1:05 a.m. OK PyPy 3-64 TESTS 2 62 5836800
224523995 rq170 B Sept. 21, 2023, 7:15 p.m. OK PyPy 3-64 TESTS 2 77 5529600
224519640 to0th_less B Sept. 21, 2023, 6:33 p.m. OK PyPy 3-64 TESTS 2 77 5836800
224528567 Ekvroid B Sept. 21, 2023, 8:07 p.m. OK PyPy 3-64 TESTS 2 78 6348800
224521968 stand_by B Sept. 21, 2023, 6:54 p.m. OK PyPy 3-64 TESTS 2 93 6860800
224552002 bailimice B Sept. 22, 2023, 3:35 a.m. OK PyPy 3-64 TESTS 2 93 7168000
224537433 HaonnoaH B Sept. 21, 2023, 10:47 p.m. OK PyPy 3-64 TESTS 2 93 7168000
224532609 Quick-One B Sept. 21, 2023, 9:04 p.m. OK PyPy 3-64 TESTS 2 108 7168000
224560927 gs3122 B Sept. 22, 2023, 5:28 a.m. OK PyPy 3-64 TESTS 2 109 6451200
224560925 2110030366_klh B Sept. 22, 2023, 5:28 a.m. OK Python 3 TESTS 2 61 1740800
224522909 nutRal02 B Sept. 21, 2023, 7:04 p.m. OK Python 3 TESTS 2 62 307200
224549112 groodyr B Sept. 22, 2023, 2:51 a.m. OK Python 3 TESTS 2 62 409600
224546768 AhsanRandhawa B Sept. 22, 2023, 2:13 a.m. OK Python 3 TESTS 2 62 409600
224559768 eugalt B Sept. 22, 2023, 5:15 a.m. OK Python 3 TESTS 2 62 1740800
224523952 -Hadi--1 B Sept. 21, 2023, 7:15 p.m. OK Python 3 TESTS 2 77 307200
224523836 Dibz B Sept. 21, 2023, 7:14 p.m. OK Python 3 TESTS 2 77 307200
224527634 HundredthThread B Sept. 21, 2023, 7:57 p.m. OK Python 3 TESTS 2 93 614400
224561156 Anil__2022 B Sept. 22, 2023, 5:30 a.m. OK Python 3 TESTS 2 108 0
224556737 Antim29 B Sept. 22, 2023, 4:37 a.m. OK Python 3 TESTS 2 108 0
224522866 LaithAlq B Sept. 21, 2023, 7:03 p.m. OK Ruby 3 TESTS 2 218 0
224552647 Spheniscine B Sept. 22, 2023, 3:44 a.m. OK Rust 2021 TESTS 2 15 102400

remove filters

Back to search problems