Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

Problem G - Lexicographically Maximum
 
 
 
 
Contest status
 
 
# When Who Problem Lang Verdict Time Memory
365658021 Mar/07/2026 01:35 Ahmed-Sahlol G - Lexicographically Maximum C++23 (GCC 14-64, msys2) Accepted 250 ms 249000 KB
268738074 Jul/04/2024 11:42 vjudge.5 G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 234 ms 6300 KB
273267879 Jul/29/2024 06:04 Abodeh_Alshammaa G - Lexicographically Maximum C++17 (GCC 7-32) Accepted 249 ms 5400 KB
268896276 Jul/05/2024 11:10 cgmoreda# G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 296 ms 153400 KB
275682590 Aug/11/2024 07:39 _Tsukumo# G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 61 ms 4000 KB
390549494 Sep/13/2026 14:31 Nos Kilo Gebs: 3omar_ahmed, 3ssa, Galal012# G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 171 ms 142500 KB
323643437 Jun/09/2025 16:50 PixelMaster G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 171 ms 104100 KB
389435432 Sep/05/2026 11:36 ham727 G - Lexicographically Maximum C++23 (GCC 14-64, msys2) Accepted 234 ms 138700 KB
326048028 Jun/25/2025 21:24 Ziad_Taher G - Lexicographically Maximum C++23 (GCC 14-64, msys2) Accepted 608 ms 13600 KB
330866769 Jul/25/2025 22:29 SJCHSKY G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 124 ms 100 KB
268877931 Jul/05/2024 08:53 Mohsen Saad: Ahmed57, Octagons# G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 108 ms 15000 KB
285410346 Oct/12/2024 09:00 _DS G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 328 ms 204500 KB
334294631 Aug/17/2025 19:44 ScorpioDaggar G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 109 ms 100 KB
267830631 Jun/28/2024 12:11 kareem_Bizreh G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 109 ms 2400 KB
311511216 Mar/20/2025 13:18 PetFodMask: JustFady, QRQ4# G - Lexicographically Maximum C++23 (GCC 14-64, msys2) Accepted 265 ms 209800 KB
267989404 Jun/29/2024 14:21 El_7ankaleez: Mugiwaraaa, _Sherbiny, 3bkarm# G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 390 ms 47800 KB
269565235 Jul/09/2024 15:01 ZeinabHamdy G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 109 ms 2400 KB
268605526 Jul/03/2024 13:55 400k is 400k: Aldk, Radiobas, N29# G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 92 ms 15700 KB
285832220 Oct/14/2024 16:28 Giselus# G - Lexicographically Maximum C++17 (GCC 7-32) Accepted 280 ms 250600 KB
268359030 Jul/01/2024 20:14 Dr.rabi3 G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 77 ms 6200 KB
375964490 May/24/2026 20:25 A.M.X G - Lexicographically Maximum C++23 (GCC 14-64, msys2) Accepted 93 ms 80500 KB
270627582 Jul/15/2024 15:24 nkamzabek# G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 61 ms 2000 KB
377689903 Jun/07/2026 20:19 nonchALAAnt G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 203 ms 0 KB
268008465 Jun/29/2024 17:00 Hash Ya Wa7sh: Aboeldahab, JOO91, Yousef.Osama# G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 62 ms 0 KB
374631532 May/15/2026 18:51 Lineares G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 218 ms 2200 KB
332148524 Aug/02/2025 22:52 Jotinha# G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 218 ms 0 KB
367952049 Mar/24/2026 00:52 السعدي والكوتشات بتاعته: abuegila, M-Sa3dy# G - Lexicographically Maximum C++23 (GCC 14-64, msys2) Accepted 390 ms 203600 KB
268344162 Jul/01/2024 18:18 Negm G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 140 ms 0 KB
267994438 Jun/29/2024 15:00 Tmr Manga 7gr: Tamora, Hagry, Gondozu# G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 61 ms 7300 KB
267807547 Jun/28/2024 08:55 Wiaam_SA G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 61 ms 2400 KB
272525756 Jul/25/2024 13:39 mnasser02 G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 77 ms 2000 KB
339666862 Sep/21/2025 10:43 ABUYOUSEF G - Lexicographically Maximum C++17 (GCC 7-32) Accepted 249 ms 100 KB
275672703 Aug/11/2024 05:11 Yunannnn# G - Lexicographically Maximum C++17 (GCC 7-32) Accepted 296 ms 0 KB
353191523 Dec/12/2025 15:15 من جاد وجد: AbdoGad, M.Ibrahem, mostafadelgouda# G - Lexicographically Maximum C++23 (GCC 14-64, msys2) Accepted 62 ms 10500 KB
366630325 Mar/14/2026 16:30 Les hommes dAl-Anaza: MD_Ma7mouuuud, Bashar._.Kamel# G - Lexicographically Maximum C++23 (GCC 14-64, msys2) Accepted 359 ms 51700 KB
271972556 Jul/22/2024 21:30 DrStonee G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 46 ms 6300 KB
373760673 May/06/2026 22:58 AmmarShereer G - Lexicographically Maximum C++17 (GCC 7-32) Accepted 62 ms 14200 KB
271435006 Jul/19/2024 23:38 CPCoachs: MDario, EduardoBrito, teruel# G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 233 ms 123600 KB
267876193 Jun/28/2024 17:50 weaponZ G - Lexicographically Maximum C++17 (GCC 7-32) Accepted 109 ms 8800 KB
374411031 May/13/2026 18:29 sabino1# G - Lexicographically Maximum C++17 (GCC 7-32) Accepted 1000 ms 9900 KB
270387561 Jul/14/2024 01:09 3agamesta: michaelmonir, faris00007, Ahmed__Hassan# G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 733 ms 14200 KB
325120350 Jun/19/2025 11:48 what use your rmean?: ADAR2002, Baran__Battal, Mohammadalhelue# G - Lexicographically Maximum C++23 (GCC 14-64, msys2) Accepted 359 ms 212800 KB
275474227 Aug/10/2024 08:41 spaceteam: Owmicron, Chrisedyong, bonk# G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 155 ms 117400 KB
267981730 Jun/29/2024 13:18 Hackona Matata: Assem_albitar, sr3q_mk, Obada-_-# G - Lexicographically Maximum C++17 (GCC 7-32) Accepted 140 ms 7100 KB
269136286 Jul/07/2024 01:44 Amigoo G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 156 ms 0 KB
268451031 Jul/02/2024 13:43 ABalobanov# G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 108 ms 2400 KB
268012212 Jun/29/2024 17:31 باي باي كريم: Mysterious109, Wolke# G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 93 ms 6200 KB
290640764 Nov/09/2024 09:27 NYCU_GBC: Justinshao, cgnoooob, dbGIs# G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 171 ms 2400 KB
274040127 Aug/02/2024 17:48 Blind_Power: nooooob_KiFaH_HeLaL, OMARB, Tinky-Winky# G - Lexicographically Maximum C++17 (GCC 7-32) Accepted 62 ms 5700 KB
285399233 Oct/12/2024 06:35 PTIT.Slink: MinhHiieu, VanLam# G - Lexicographically Maximum C++20 (GCC 13-64) Accepted 46 ms 5700 KB
Sort by: