Educational Codeforces Round 157 (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
1895 Educational Codeforces Round 157 (Rated for Div. 2) FINISHED False 7200 38157863 Nov. 3, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11614 ) C Torn Lucky Ticket PROGRAMMING brute force dp hashing implementation math

B"A ticket is a non-empty string of digits from 1 to 9 . A lucky ticket is such a ticket that: You are given n ticket pieces s_1, s_2, ... , s_n . How many pairs (i, j) (for 1 <= i, j <= n ) are there such that s_i + s_j is a lucky ticket? Note that it's possible that i=j . Here, the + operator denotes the concatenation of the two strings. For example, if s_i is 13, and s_j is 37, then s_i + s_j is 1337. The first line contains a single integer n ( 1 <= n <= 2 cdot 10^5 ) -- the number of ticket pieces. The second line contains n non-empty strings s_1, s_2, ... , s_n , each of length at most 5 and consisting only of digits from 1 to 9 . Print a single integer -- the number of pairs (i, j) (for 1 <= i, j <= n ) such that s_i + s_j is a lucky ticket. "...

Tutorials

Educational Codeforces Round 157 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
231265363 bluemegane C Nov. 4, 2023, 2:14 a.m. OK C# 8 TESTS 10 171 12595200
231216303 NenadDapic C Nov. 3, 2023, 5:36 p.m. OK FPC TESTS 10 124 2048000
231237403 ichi_kd C Nov. 3, 2023, 7:30 p.m. OK GNU C11 TESTS 10 46 0
231213546 Unk1ndled C Nov. 3, 2023, 5:17 p.m. OK GNU C11 TESTS 10 46 1228800
231210023 verywater C Nov. 3, 2023, 4:56 p.m. OK GNU C11 TESTS 10 46 1228800
231210203 verywater C Nov. 3, 2023, 4:57 p.m. OK GNU C11 TESTS 10 61 1228800
231199696 G_H_Turtle C Nov. 3, 2023, 4:24 p.m. OK GNU C++14 TESTS 10 30 0
231270024 xing4c C Nov. 4, 2023, 3:15 a.m. OK GNU C++14 TESTS 10 31 0
231210796 DgutGWK C Nov. 3, 2023, 5 p.m. OK GNU C++14 TESTS 10 31 0
231248098 Rock_king C Nov. 3, 2023, 9 p.m. OK GNU C++14 TESTS 10 31 4812800
231261102 dcchendada C Nov. 4, 2023, 1:14 a.m. OK GNU C++14 TESTS 10 46 204800
231264037 SunnyYuan2009 C Nov. 4, 2023, 1:56 a.m. OK GNU C++14 TESTS 10 46 409600
231196469 niwrad C Nov. 3, 2023, 4:17 p.m. OK GNU C++14 TESTS 10 46 1740800
231269051 wangyitest C Nov. 4, 2023, 3:05 a.m. OK GNU C++14 TESTS 10 46 2048000
231268762 wangyitest C Nov. 4, 2023, 3:01 a.m. OK GNU C++14 TESTS 10 46 2048000
231231871 Pranjal_Singh_1702 C Nov. 3, 2023, 6:59 p.m. OK GNU C++14 TESTS 10 46 4812800
231212208 TeletubiGaim33 C Nov. 3, 2023, 5:09 p.m. OK GNU C++17 TESTS 10 31 0
231248967 old_new_phoenix C Nov. 3, 2023, 9:12 p.m. OK GNU C++17 TESTS 10 31 0
231221811 archiver C Nov. 3, 2023, 6:10 p.m. OK GNU C++17 TESTS 10 31 0
231199478 gargshivam204 C Nov. 3, 2023, 4:24 p.m. OK GNU C++17 TESTS 10 31 921600
231199829 misir C Nov. 3, 2023, 4:24 p.m. OK GNU C++17 TESTS 10 31 4812800
231246497 youssef_ahmed345 C Nov. 3, 2023, 8:43 p.m. OK GNU C++17 TESTS 10 31 4915200
231252147 Jackofalltradess C Nov. 3, 2023, 10:02 p.m. OK GNU C++17 TESTS 10 31 4915200
231263438 wzh2004 C Nov. 4, 2023, 1:48 a.m. OK GNU C++17 TESTS 10 31 9625600
231233117 dorlneylon C Nov. 3, 2023, 7:06 p.m. OK GNU C++17 TESTS 10 31 10444800
231209447 meimingzi1 C Nov. 3, 2023, 4:52 p.m. OK GNU C++17 TESTS 10 31 42598400
231275160 yyxc_nasd C Nov. 4, 2023, 4:28 a.m. OK GNU C++17 (64) TESTS 10 31 204800
231201966 BODH C Nov. 3, 2023, 4:29 p.m. OK GNU C++17 (64) TESTS 10 31 4198400
231232228 AlexW08 C Nov. 3, 2023, 7:01 p.m. OK GNU C++17 (64) TESTS 10 31 6451200
231277335 wuyin331 C Nov. 4, 2023, 4:59 a.m. OK GNU C++17 (64) TESTS 10 31 8089600
231205590 Remilia1023 C Nov. 3, 2023, 4:34 p.m. OK GNU C++17 (64) TESTS 10 31 48640000
231249825 raidenblackout C Nov. 3, 2023, 9:25 p.m. OK GNU C++17 (64) TESTS 10 31 246886400
231262015 fs20091003 C Nov. 4, 2023, 1:28 a.m. OK GNU C++17 (64) TESTS 10 46 3072000
231235463 roundspecs C Nov. 3, 2023, 7:19 p.m. OK GNU C++17 (64) TESTS 10 46 6348800
231276500 rn201 C Nov. 4, 2023, 4:47 a.m. OK GNU C++17 (64) TESTS 10 46 6451200
231263436 7Ooda-kh C Nov. 4, 2023, 1:48 a.m. OK GNU C++17 (64) TESTS 10 46 6451200
231271450 Seriously_Its_Sameer C Nov. 4, 2023, 3:35 a.m. OK GNU C++20 (64) TESTS 10 15 0
231217108 ray9123 C Nov. 3, 2023, 5:41 p.m. OK GNU C++20 (64) TESTS 10 15 409600
231200811 whatuwant C Nov. 3, 2023, 4:26 p.m. OK GNU C++20 (64) TESTS 10 15 512000
231202523 LittleLiya C Nov. 3, 2023, 4:30 p.m. OK GNU C++20 (64) TESTS 10 15 819200
231272378 BeezMinh C Nov. 4, 2023, 3:47 a.m. OK GNU C++20 (64) TESTS 10 15 6451200
231209758 1234567qeq C Nov. 3, 2023, 4:54 p.m. OK GNU C++20 (64) TESTS 10 30 0
231233109 ichi_kd C Nov. 3, 2023, 7:06 p.m. OK GNU C++20 (64) TESTS 10 30 0
231264950 bhxyry C Nov. 4, 2023, 2:09 a.m. OK GNU C++20 (64) TESTS 10 30 0
231205068 040328 C Nov. 3, 2023, 4:34 p.m. OK GNU C++20 (64) TESTS 10 30 102400
231204695 Hamzeh_Miqdad C Nov. 3, 2023, 4:33 p.m. OK GNU C++20 (64) TESTS 10 30 6451200
231268227 Naoki_M C Nov. 4, 2023, 2:54 a.m. OK Haskell TESTS 10 249 54681600
231261794 Naoki_M C Nov. 4, 2023, 1:25 a.m. OK Haskell TESTS 10 670 114585600
231201736 barbar1k C Nov. 3, 2023, 4:28 p.m. OK Java 11 TESTS 10 249 10956800
231254934 profchi C Nov. 3, 2023, 11 p.m. OK Java 11 TESTS 10 265 12902400
231196159 doggycool C Nov. 3, 2023, 4:16 p.m. OK Java 11 TESTS 10 280 10854400
231197347 global_optimum C Nov. 3, 2023, 4:19 p.m. OK Java 11 TESTS 10 280 12492800
231214332 Pranav_Sharda C Nov. 3, 2023, 5:22 p.m. OK Java 11 TESTS 10 296 13107200
231199233 prajwaldhule36 C Nov. 3, 2023, 4:23 p.m. OK Java 11 TESTS 10 358 0
231200441 PlayDate C Nov. 3, 2023, 4:26 p.m. OK Java 11 TESTS 10 389 15872000
231204970 NavneetKumar123 C Nov. 3, 2023, 4:34 p.m. OK Java 11 TESTS 10 452 16998400
231268966 mapleKing C Nov. 4, 2023, 3:04 a.m. OK Java 17 TESTS 10 233 614400
231196542 Kishan_143 C Nov. 3, 2023, 4:17 p.m. OK Java 17 TESTS 10 249 6656000
231246517 BlizGale C Nov. 3, 2023, 8:43 p.m. OK Java 17 TESTS 10 311 12492800
231217295 Prime369 C Nov. 3, 2023, 5:43 p.m. OK Java 17 TESTS 10 311 12902400
231211489 Utsav82 C Nov. 3, 2023, 5:04 p.m. OK Java 17 TESTS 10 327 17510400
231210582 ShresCodes C Nov. 3, 2023, 4:59 p.m. OK Java 17 TESTS 10 327 18432000
231209738 daksh_02 C Nov. 3, 2023, 4:54 p.m. OK Java 17 TESTS 10 342 12595200
231238375 aishwarykesarwani C Nov. 3, 2023, 7:36 p.m. OK Java 17 TESTS 10 342 15769600
231198647 AyushVardhan C Nov. 3, 2023, 4:22 p.m. OK Java 17 TESTS 10 420 7680000
231248915 codeanand17 C Nov. 3, 2023, 9:12 p.m. OK Java 17 TESTS 10 436 7475200
231267491 Ligh0x74 C Nov. 4, 2023, 2:44 a.m. OK Java 21 TESTS 10 311 8396800
231196075 one_line C Nov. 3, 2023, 4:16 p.m. OK Java 21 TESTS 10 373 16076800
231267761 Ligh0x74 C Nov. 4, 2023, 2:48 a.m. OK Java 21 TESTS 10 436 10137600
231256547 yimingl C Nov. 3, 2023, 11:38 p.m. OK Java 21 TESTS 10 452 17100800
231197209 d2s2 C Nov. 3, 2023, 4:19 p.m. OK Java 21 TESTS 10 467 7065600
231222403 Bandwidth C Nov. 3, 2023, 6:13 p.m. OK Java 21 TESTS 10 701 21094400
231281023 coderman2004 C Nov. 4, 2023, 5:42 a.m. OK Java 8 TESTS 10 140 2457600
231222436 Danger_Don C Nov. 3, 2023, 6:13 p.m. OK Java 8 TESTS 10 233 11059200
231208333 sumitlaura1012 C Nov. 3, 2023, 4:46 p.m. OK Java 8 TESTS 10 280 18227200
231227108 Sumitsingh7 C Nov. 3, 2023, 6:34 p.m. OK Java 8 TESTS 10 280 18227200
231242067 Aldijohn C Nov. 3, 2023, 8:02 p.m. OK Java 8 TESTS 10 358 6963200
231212577 priyaroy3370 C Nov. 3, 2023, 5:11 p.m. OK Java 8 TESTS 10 374 4505600
231225447 priyaroy3370 C Nov. 3, 2023, 6:27 p.m. OK Java 8 TESTS 10 389 4505600
231281304 Lu_Kai C Nov. 4, 2023, 5:45 a.m. OK MS C++ 2017 TESTS 10 0 0
231276434 Ir0nic_Joker C Nov. 4, 2023, 4:46 a.m. OK MS C++ 2017 TESTS 10 93 5017600
231212158 mv26 C Nov. 3, 2023, 5:08 p.m. OK MS C++ 2017 TESTS 10 93 13619200
231197761 NT-GEEK C Nov. 3, 2023, 4:20 p.m. OK MS C++ 2017 TESTS 10 156 0
231207257 locisa2115 C Nov. 3, 2023, 4:41 p.m. OK PyPy 3 TESTS 10 499 15360000
231199699 Antinae_MiHawk C Nov. 3, 2023, 4:24 p.m. OK PyPy 3 TESTS 10 499 32153600
231274693 deveshbedmutha C Nov. 4, 2023, 4:21 a.m. OK PyPy 3 TESTS 10 561 15052800
231249133 Sparkle_Twilight C Nov. 3, 2023, 9:15 p.m. OK PyPy 3 TESTS 10 592 28262400
231226759 rushikesh_kotkar C Nov. 3, 2023, 6:33 p.m. OK PyPy 3 TESTS 10 592 28262400
231278754 letamquang220805 C Nov. 4, 2023, 5:17 a.m. OK PyPy 3 TESTS 10 608 15360000
231197057 satvik777 C Nov. 3, 2023, 4:19 p.m. OK PyPy 3 TESTS 10 639 16281600
231230346 pajenegod C Nov. 3, 2023, 6:51 p.m. OK PyPy 3-64 TESTS 10 124 16281600
231229572 I_know_8 C Nov. 3, 2023, 6:46 p.m. OK PyPy 3-64 TESTS 10 171 19148800
231249687 SoleProprietor C Nov. 3, 2023, 9:23 p.m. OK PyPy 3-64 TESTS 10 187 24576000
231229136 pajenegod C Nov. 3, 2023, 6:44 p.m. OK PyPy 3-64 TESTS 10 187 35840000
231209296 2021eeb1174 C Nov. 3, 2023, 4:51 p.m. OK PyPy 3-64 TESTS 10 202 21913600
231225873 pajenegod C Nov. 3, 2023, 6:29 p.m. OK PyPy 3-64 TESTS 10 202 35840000
231265379 liuaaa C Nov. 4, 2023, 2:15 a.m. OK PyPy 3-64 TESTS 10 217 22323200
231247614 VidGa C Nov. 3, 2023, 8:55 p.m. OK PyPy 3-64 TESTS 10 218 20889600
231261146 alexwice C Nov. 4, 2023, 1:15 a.m. OK PyPy 3-64 TESTS 10 218 28979200
231225251 pajenegod C Nov. 3, 2023, 6:26 p.m. OK PyPy 3-64 TESTS 10 218 35942400
231203730 daszybak C Nov. 3, 2023, 4:32 p.m. OK Python 3 TESTS 10 545 42188800
231196043 Shadow___Monarch___JR C Nov. 3, 2023, 4:16 p.m. OK Python 3 TESTS 10 764 22425600
231202854 SS_CM C Nov. 3, 2023, 4:30 p.m. OK Python 3 TESTS 10 795 20275200
231199575 JZ_ C Nov. 3, 2023, 4:24 p.m. OK Python 3 TESTS 10 857 26214400
231206055 AliSadafi C Nov. 3, 2023, 4:36 p.m. OK Python 3 TESTS 10 888 20275200
231238594 simpleAsSword C Nov. 3, 2023, 7:38 p.m. OK Python 3 TESTS 10 920 20889600
231214048 k_ano C Nov. 3, 2023, 5:20 p.m. OK Python 3 TESTS 10 1138 20070400
231251464 parthcpacc1 C Nov. 3, 2023, 9:51 p.m. OK Python 3 TESTS 10 1138 26419200
231198691 gauva_sauce C Nov. 3, 2023, 4:22 p.m. OK Python 3 TESTS 10 1310 32870400
231218201 JasonMendoza2008 C Nov. 3, 2023, 5:49 p.m. OK Python 3 TESTS 10 1497 44953600
231211663 vstiff C Nov. 3, 2023, 5:05 p.m. OK Rust 2021 TESTS 10 93 9113600
231252118 0npata C Nov. 3, 2023, 10:01 p.m. OK Rust 2021 TESTS 10 93 26931200

remove filters

Back to search problems