Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×
Problem G - Gallivanting Merchant
 
 
 
 
Contest status
 
 
# When Who Problem Lang Verdict Time Memory
393480869 Oct/07/2026 11:27 sitingfake# G - Gallivanting Merchant C++23 (GCC 14-64, msys2) Accepted 515 ms 18100 KB
186144991 Dec/20/2022 21:50 Sex Havers: Davicom, Blaz, AngrySeal# G - Gallivanting Merchant C++17 (GCC 7-32) Accepted 935 ms 16200 KB
227640723 Oct/11/2023 11:16 -1e11# G - Gallivanting Merchant C++20 (GCC 11-64) Accepted 109 ms 13400 KB
228666776 Oct/18/2023 14:24 UIT.TAT.Light: dthien2212, anhng, Chienthancp# G - Gallivanting Merchant C++20 (GCC 11-64) Accepted 436 ms 27200 KB
188165589 Jan/06/2023 08:05 lmbjzs# G - Gallivanting Merchant C++20 (GCC 11-64) Accepted 389 ms 21200 KB
393972398 Oct/10/2026 18:03 10h37: wonderful_trip, TwinHter, sweet_hope25# G - Gallivanting Merchant C++20 (GCC 13-64) Accepted 281 ms 7600 KB
192458202 Feb/06/2023 14:18 vjudge2 G - Gallivanting Merchant C++20 (GCC 11-64) Accepted 140 ms 33500 KB
197748324 Mar/17/2023 13:26 AtLeastWeTried: Gorgo, AwesomeHunter# G - Gallivanting Merchant C++20 (GCC 11-64) Accepted 670 ms 46500 KB
380092311 Jun/25/2026 11:12 Quyts G - Gallivanting Merchant C++23 (GCC 14-64, msys2) Accepted 406 ms 40300 KB
193529079 Feb/14/2023 01:04 UH Top: Giga_Cronos, Leonardo16, dmga44# G - Gallivanting Merchant C++17 (GCC 9-64) Accepted 748 ms 56500 KB
344153881 Oct/17/2025 12:28 Xh_QwQ# G - Gallivanting Merchant C++20 (GCC 13-64) Accepted 593 ms 194300 KB
343196131 Oct/11/2025 22:55 Goldan_Respy G - Gallivanting Merchant C++17 (GCC 7-32) Accepted 280 ms 12600 KB
224746164 Sep/23/2023 15:37 Estamos Vivendo Um Sonho: matheus_aguilar, deneribeiro10, NatanSG# G - Gallivanting Merchant C++20 (GCC 11-64) Accepted 343 ms 45800 KB
227960788 Oct/13/2023 03:09 matheus_aguilar G - Gallivanting Merchant C++17 (GCC 7-32) Accepted 389 ms 44800 KB
193246134 Feb/12/2023 00:53 Los PIpOL: juancs, elpepe123, automac# G - Gallivanting Merchant C++14 (GCC 6-32) Accepted 327 ms 17100 KB
189045104 Jan/13/2023 03:02 idoproblems G - Gallivanting Merchant C++14 (GCC 6-32) Accepted 530 ms 31000 KB
188339574 Jan/07/2023 18:53 chimbunhatvn# G - Gallivanting Merchant C++17 (GCC 7-32) Accepted 187 ms 12400 KB
187498442 Jan/01/2023 09:48 milind0110# G - Gallivanting Merchant C++20 (GCC 11-64) Accepted 312 ms 18900 KB
187003520 Dec/28/2022 09:57 wrong_answer_on_19260817 G - Gallivanting Merchant C++20 (GCC 11-64) Accepted 374 ms 21000 KB
212070023 Jul/04/2023 14:04 Akiramenai: Mohamed308, Omar_Mohammad# G - Gallivanting Merchant C++20 (GCC 11-64) Accepted 733 ms 75500 KB
219180634 Aug/17/2023 05:39 DeMen100ns# G - Gallivanting Merchant C++20 (GCC 11-64) Accepted 202 ms 34300 KB
228353941 Oct/16/2023 01:40 matheus_aguilar G - Gallivanting Merchant C++17 (GCC 7-32) Accepted 358 ms 57300 KB
395812561 Oct/24/2026 11:46 HCMUT C18H27NO3: tuankietnguyen, milo_milkshake, Koutaro# G - Gallivanting Merchant C++23 (GCC 14-64, msys2) Accepted 250 ms 17500 KB
196286418 Mar/06/2023 19:49 Tegment_Sree: MeetAmin, 30_din_me_rating_double, sp_rock# G - Gallivanting Merchant C++20 (GCC 11-64) Accepted 374 ms 25200 KB
256568039 Apr/14/2024 00:27 ay 7aga: EslamSayed, ___nerd___, Maro# G - Gallivanting Merchant C++20 (GCC 13-64) Accepted 515 ms 22600 KB
194051546 Feb/18/2023 00:50 DedsecKnight G - Gallivanting Merchant C++20 (GCC 11-64) Accepted 358 ms 20400 KB
203117088 Apr/23/2023 09:47 preet_25# G - Gallivanting Merchant C++20 (GCC 11-64) Accepted 140 ms 37100 KB
256568004 Apr/14/2024 00:27 ay 7aga: EslamSayed, ___nerd___, Maro# G - Gallivanting Merchant C++20 (GCC 13-64) Accepted 453 ms 22600 KB
284180668 Oct/03/2024 16:52 Fast Fcuk Transform: Vaid23, devansh789, moradiya84# G - Gallivanting Merchant C++17 (GCC 7-32) Accepted 671 ms 39700 KB
259032741 May/01/2024 19:17 الشامبو السوداني: Moatazoleq, M0N, BluoCaroot# G - Gallivanting Merchant C++20 (GCC 13-64) Accepted 187 ms 32100 KB
212196841 Jul/05/2023 12:03 Hugs4Bugs: Koka, Ramez__# G - Gallivanting Merchant Java 8 Accepted 904 ms 31900 KB
232077131 Nov/09/2023 16:35 mmm: I_love_maxaxaxaxa, ChirkovM, kauperwood# G - Gallivanting Merchant C++20 (GCC 11-64) Accepted 124 ms 25700 KB
188622492 Jan/09/2023 20:45 baad mein dekh lenge: TheDarkKnight, Renauga, D0min0# G - Gallivanting Merchant C++20 (GCC 11-64) Accepted 373 ms 25200 KB
196674203 Mar/09/2023 17:41 DiracDelta: sahil_2609, vd__coder, fenyman# G - Gallivanting Merchant C++17 (GCC 7-32) Accepted 421 ms 58100 KB
196594259 Mar/09/2023 11:25 mahabub.rahman# G - Gallivanting Merchant C++14 (GCC 6-32) Accepted 779 ms 71700 KB
211960145 Jul/03/2023 17:27 Gang Of 3: Mohamed_Ahmed, Ahmad_Hoseiny# G - Gallivanting Merchant Java 8 Accepted 1325 ms 72700 KB
352343260 Dec/07/2025 09:12 ok: ender_shayan, purplelemon# G - Gallivanting Merchant C++20 (GCC 13-64) Accepted 171 ms 21800 KB
185894821 Dec/19/2022 00:50 Club de Frontón 2880: OPF10, el_programador, pacha2880# G - Gallivanting Merchant C++20 (GCC 11-64) Accepted 343 ms 18900 KB
334240949 Aug/17/2025 12:35 Mystery Molecules: ElementSnow, MysticMavericks, fstlrnr# G - Gallivanting Merchant C++20 (GCC 13-64) Accepted 484 ms 22400 KB
315915712 Apr/17/2025 09:13 __baozii__# G - Gallivanting Merchant C++23 (GCC 14-64, msys2) Accepted 468 ms 16700 KB
Sort by: