Educational Codeforces Round 137 (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
1743 Educational Codeforces Round 137 (Rated for Div. 2) FINISHED False 7200 71249063 Oct. 17, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 27140 ) A Password PROGRAMMING combinatorics implementation 800

B'Monocarp has forgotten the password to his mobile phone. The password consists of 4 digits from 0 to 9 (note that it can start with the digit 0 ). Monocarp remembers that his password had exactly two different digits, and each of these digits appeared exactly two times in the password. Monocarp also remembers some digits which were definitely not used in the password. You have to calculate the number of different sequences of 4 digits that could be the password for Monocarp 's mobile phone (i. xe2 x80 x89e. these sequences should meet all constraints on Monocarp 's password). The first line contains a single integer t ( 1 <= t <= 200 ) -- the number of testcases. The first line of each testcase contains a single integer n ( 1 <= n <= 8 ) -- the number of digits for which Monocarp remembers that they were not used in the password. The second line contains n different integers a_1, a_2, ... a_n ( 0 <= a_i <= 9 ) representing the digits that were not used in the password. Note that the digits a_1, a_2, ... , a_n are given in ascending order. For each testcase, print one integer -- the number of different 4 -digit sequences that meet the constraints. In the first example, all possible passwords are: "3377", "3737", "3773", "7337", "7373", "7733". '...

Tutorials

Educational Codeforces Round 137 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
176790639 shreyas151204 A Oct. 17, 2022, 5:51 p.m. OK Clang++17 Diagnostics TESTS 2 30 0 800
176783404 anindajoy7510 A Oct. 17, 2022, 5 p.m. OK GNU C11 TESTS 2 0 0 800
176782986 Jahidul_CSE A Oct. 17, 2022, 4:58 p.m. OK GNU C11 TESTS 2 0 0 800
176776960 veeru_2000031274 A Oct. 17, 2022, 4:34 p.m. OK GNU C11 TESTS 2 0 0 800
176814433 bluestareesh A Oct. 17, 2022, 11:26 p.m. OK GNU C11 TESTS 2 0 0 800
176807472 Nothing_007 A Oct. 17, 2022, 8:48 p.m. OK GNU C11 TESTS 2 0 0 800
176832752 SIWEN. A Oct. 18, 2022, 5:24 a.m. OK GNU C11 TESTS 2 15 0 800
176801116 SP2003 A Oct. 17, 2022, 7:30 p.m. OK GNU C11 TESTS 2 15 0 800
176796584 Ani321 A Oct. 17, 2022, 6:43 p.m. OK GNU C11 TESTS 2 15 0 800
176782189 tsa1123 A Oct. 17, 2022, 4:53 p.m. OK GNU C11 TESTS 2 15 0 800
176835170 crayon203 A Oct. 18, 2022, 5:52 a.m. OK GNU C11 TESTS 2 15 0 800
176831336 rishcursion65536 A Oct. 18, 2022, 5:06 a.m. OK GNU C++14 TESTS 2 0 0 800
176831280 2000031042 A Oct. 18, 2022, 5:05 a.m. OK GNU C++14 TESTS 2 0 0 800
176834607 Marufm A Oct. 18, 2022, 5:45 a.m. OK GNU C++14 TESTS 2 0 0 800
176833167 golemon A Oct. 18, 2022, 5:29 a.m. OK GNU C++14 TESTS 2 0 0 800
176832588 0703w A Oct. 18, 2022, 5:22 a.m. OK GNU C++14 TESTS 2 0 0 800
176832238 efilU A Oct. 18, 2022, 5:18 a.m. OK GNU C++14 TESTS 2 0 0 800
176832219 TMJYH09 A Oct. 18, 2022, 5:18 a.m. OK GNU C++14 TESTS 2 0 0 800
176832182 pjccccc A Oct. 18, 2022, 5:17 a.m. OK GNU C++14 TESTS 2 0 0 800
176831930 sleep_b4_cntst A Oct. 18, 2022, 5:14 a.m. OK GNU C++14 TESTS 2 0 0 800
176831707 Poiogdjr A Oct. 18, 2022, 5:11 a.m. OK GNU C++14 TESTS 2 0 0 800
176834627 Beginner343 A Oct. 18, 2022, 5:45 a.m. OK GNU C++17 TESTS 2 0 0 800
176836050 awfy A Oct. 18, 2022, 6:01 a.m. OK GNU C++17 TESTS 2 0 0 800
176835540 Shirci A Oct. 18, 2022, 5:56 a.m. OK GNU C++17 TESTS 2 0 0 800
176835514 Glimmar_Y A Oct. 18, 2022, 5:55 a.m. OK GNU C++17 TESTS 2 0 0 800
176835453 I_am_Jacks_FOMO A Oct. 18, 2022, 5:55 a.m. OK GNU C++17 TESTS 2 0 0 800
176834983 GRANNY_1015 A Oct. 18, 2022, 5:49 a.m. OK GNU C++17 TESTS 2 0 0 800
176834963 RKOs A Oct. 18, 2022, 5:49 a.m. OK GNU C++17 TESTS 2 0 0 800
176834870 krish_21 A Oct. 18, 2022, 5:48 a.m. OK GNU C++17 TESTS 2 0 0 800
176834833 yym123456 A Oct. 18, 2022, 5:48 a.m. OK GNU C++17 TESTS 2 0 0 800
176834783 codeforces_saurabh A Oct. 18, 2022, 5:47 a.m. OK GNU C++17 TESTS 2 0 0 800
176833921 Gourab_biswas A Oct. 18, 2022, 5:38 a.m. OK GNU C++17 (64) TESTS 2 0 0 800
176833323 wygzgyw A Oct. 18, 2022, 5:31 a.m. OK GNU C++17 (64) TESTS 2 0 0 800
176832929 jybbbbb A Oct. 18, 2022, 5:26 a.m. OK GNU C++17 (64) TESTS 2 0 0 800
176832382 xiwenT A Oct. 18, 2022, 5:20 a.m. OK GNU C++17 (64) TESTS 2 0 0 800
176831732 Huntik_03 A Oct. 18, 2022, 5:11 a.m. OK GNU C++17 (64) TESTS 2 0 0 800
176831517 Eter.nal A Oct. 18, 2022, 5:08 a.m. OK GNU C++17 (64) TESTS 2 0 0 800
176828850 OTTFF A Oct. 18, 2022, 4:29 a.m. OK GNU C++17 (64) TESTS 2 0 0 800
176828309 Fan_zf A Oct. 18, 2022, 4:21 a.m. OK GNU C++17 (64) TESTS 2 0 0 800
176824902 Kidding_M A Oct. 18, 2022, 3:24 a.m. OK GNU C++17 (64) TESTS 2 0 0 800
176823417 roshan2412 A Oct. 18, 2022, 2:59 a.m. OK GNU C++17 (64) TESTS 2 0 0 800
176834759 vedvitthalshukla A Oct. 18, 2022, 5:47 a.m. OK GNU C++20 (64) TESTS 2 0 0 800
176836040 love_krisnaa A Oct. 18, 2022, 6:01 a.m. OK GNU C++20 (64) TESTS 2 0 0 800
176835712 frozenca A Oct. 18, 2022, 5:57 a.m. OK GNU C++20 (64) TESTS 2 0 0 800
176835619 zzmxj A Oct. 18, 2022, 5:56 a.m. OK GNU C++20 (64) TESTS 2 0 0 800
176835490 dynamic_programming Ptilon A Oct. 18, 2022, 5:55 a.m. OK GNU C++20 (64) TESTS 2 0 0 800
176835394 Mrokure A Oct. 18, 2022, 5:54 a.m. OK GNU C++20 (64) TESTS 2 0 0 800
176835315 AH_TONMOY A Oct. 18, 2022, 5:53 a.m. OK GNU C++20 (64) TESTS 2 0 0 800
176834810 xincheng111 A Oct. 18, 2022, 5:47 a.m. OK GNU C++20 (64) TESTS 2 0 0 800
176834748 codingwizard24 A Oct. 18, 2022, 5:47 a.m. OK GNU C++20 (64) TESTS 2 0 0 800
176834266 madorz A Oct. 18, 2022, 5:41 a.m. OK GNU C++20 (64) TESTS 2 0 0 800
176819183 hghgh A Oct. 18, 2022, 1:40 a.m. OK Go TESTS 2 30 0 800
176788581 Hasker A Oct. 17, 2022, 5:35 p.m. OK Haskell TESTS 2 15 0 800
176835536 T_PAVAN_NAGARAJU A Oct. 18, 2022, 5:56 a.m. OK Java 11 TESTS 2 140 0 800
176795145 kartik__sethi A Oct. 17, 2022, 6:29 p.m. OK Java 11 TESTS 2 140 0 800
176822803 aditya2024 A Oct. 18, 2022, 2:48 a.m. OK Java 11 TESTS 2 155 0 800
176814341 jhariharan99official A Oct. 17, 2022, 11:23 p.m. OK Java 11 TESTS 2 155 0 800
176789414 rd37574 A Oct. 17, 2022, 5:41 p.m. OK Java 11 TESTS 2 155 0 800
176781374 princeayush04 A Oct. 17, 2022, 4:49 p.m. OK Java 11 TESTS 2 155 0 800
176832895 serndipty_ A Oct. 18, 2022, 5:26 a.m. OK Java 11 TESTS 2 156 0 800
176778073 Spidey2182 A Oct. 17, 2022, 4:36 p.m. OK Java 11 TESTS 2 156 0 800
176822802 garganmol0786 A Oct. 18, 2022, 2:48 a.m. OK Java 11 TESTS 2 170 0 800
176829135 hrhuynguyen A Oct. 18, 2022, 4:34 a.m. OK Java 11 TESTS 2 171 0 800
176773559 saurabhdaju A Oct. 17, 2022, 4:27 p.m. OK Java 17 TESTS 2 124 0 800
176785558 liomsv A Oct. 17, 2022, 5:14 p.m. OK Java 17 TESTS 2 171 307200 800
176781625 Eslam_Ahmed A Oct. 17, 2022, 4:51 p.m. OK Java 17 TESTS 2 202 0 800
176778775 rudra03 A Oct. 17, 2022, 4:38 p.m. OK Java 17 TESTS 2 202 0 800
176782085 bthero A Oct. 17, 2022, 4:53 p.m. OK Java 17 TESTS 2 217 0 800
176793216 Ayushtripathi441 A Oct. 17, 2022, 6:12 p.m. OK Java 17 TESTS 2 218 614400 800
176787463 AdityaGupta19 A Oct. 17, 2022, 5:27 p.m. OK Java 17 TESTS 2 233 716800 800
176791315 sanya_chort A Oct. 17, 2022, 5:56 p.m. OK Java 17 TESTS 2 249 0 800
176773537 sanket_profile A Oct. 17, 2022, 4:27 p.m. OK Java 17 TESTS 2 264 0 800
176782751 guinnod A Oct. 17, 2022, 4:56 p.m. OK Java 8 TESTS 2 61 0 800
176819607 frey4 A Oct. 18, 2022, 1:49 a.m. OK Java 8 TESTS 2 77 0 800
176817093 lcheeme1 A Oct. 18, 2022, 12:51 a.m. OK Java 8 TESTS 2 77 0 800
176804979 pakkapapad A Oct. 17, 2022, 8:16 p.m. OK Java 8 TESTS 2 77 0 800
176773406 elgamel A Oct. 17, 2022, 4:27 p.m. OK Java 8 TESTS 2 77 0 800
176808511 TheMasterOfSuspense A Oct. 17, 2022, 9:03 p.m. OK Java 8 TESTS 2 93 0 800
176802531 Mohamed308 A Oct. 17, 2022, 7:47 p.m. OK Java 8 TESTS 2 93 0 800
176797492 1acrimosa A Oct. 17, 2022, 6:52 p.m. OK Java 8 TESTS 2 93 0 800
176785372 Dark_Knight_07 A Oct. 17, 2022, 5:13 p.m. OK Java 8 TESTS 2 93 0 800
176783801 tmazumdar A Oct. 17, 2022, 5:02 p.m. OK Java 8 TESTS 2 93 0 800
176781835 stopthecount A Oct. 17, 2022, 4:52 p.m. OK Kotlin 1.6 TESTS 2 187 0 800
176788788 Krantzy A Oct. 17, 2022, 5:37 p.m. OK Kotlin 1.6 TESTS 2 296 0 800
176815307 Alex0304 A Oct. 17, 2022, 11:56 p.m. OK MS C++ 2017 TESTS 2 0 0 800
176813480 whiteReboot A Oct. 17, 2022, 10:55 p.m. OK MS C++ 2017 TESTS 2 0 0 800
176792657 153floppa A Oct. 17, 2022, 6:07 p.m. OK MS C++ 2017 TESTS 2 0 0 800
176780949 sherehii.dmytro A Oct. 17, 2022, 4:47 p.m. OK MS C++ 2017 TESTS 2 0 0 800
176834017 Send_Post A Oct. 18, 2022, 5:39 a.m. OK MS C++ 2017 TESTS 2 0 102400 800
176816021 lxllxs A Oct. 18, 2022, 12:20 a.m. OK MS C++ 2017 TESTS 2 15 0 800
176786829 AlexandraGerasimova A Oct. 17, 2022, 5:23 p.m. OK MS C++ 2017 TESTS 2 15 0 800
176782995 rsFalse A Oct. 17, 2022, 4:58 p.m. OK Perl TESTS 2 0 0 800
176779986 784 A Oct. 17, 2022, 4:43 p.m. OK Perl TESTS 2 15 0 800
176779634 rsFalse A Oct. 17, 2022, 4:42 p.m. OK Perl TESTS 2 30 0 800
176817524 bokunopicolo A Oct. 18, 2022, 1:02 a.m. OK PyPy 3 TESTS 2 77 0 800
176775797 208r1a0562 A Oct. 17, 2022, 4:32 p.m. OK PyPy 3 TESTS 2 92 1126400 800
176795470 Yash_Nandwana A Oct. 17, 2022, 6:32 p.m. OK PyPy 3 TESTS 2 92 1228800 800
176778981 MohamedHamed123 A Oct. 17, 2022, 4:39 p.m. OK PyPy 3 TESTS 2 93 1536000 800
176783708 Dok_31 A Oct. 17, 2022, 5:02 p.m. OK PyPy 3 TESTS 2 124 0 800
176814014 Shanko A Oct. 17, 2022, 11:11 p.m. OK PyPy 3 TESTS 2 140 2048000 800
176829882 0x7f_ A Oct. 18, 2022, 4:45 a.m. OK PyPy 3 TESTS 2 155 4608000 800
176829820 0x7f_ A Oct. 18, 2022, 4:44 a.m. OK PyPy 3 TESTS 2 155 4608000 800
176829841 0x7f_ A Oct. 18, 2022, 4:44 a.m. OK PyPy 3 TESTS 2 170 4608000 800
176834262 M7moud_Ala3rj A Oct. 18, 2022, 5:41 a.m. OK PyPy 3-64 TESTS 2 46 0 800
176829376 Gtintin A Oct. 18, 2022, 4:37 a.m. OK PyPy 3-64 TESTS 2 46 0 800
176819545 2101_czf A Oct. 18, 2022, 1:48 a.m. OK PyPy 3-64 TESTS 2 46 0 800
176819157 jeremy_aaron A Oct. 18, 2022, 1:40 a.m. OK PyPy 3-64 TESTS 2 46 0 800
176817437 crapcode A Oct. 18, 2022, 1 a.m. OK PyPy 3-64 TESTS 2 46 0 800
176811461 noobsatish A Oct. 17, 2022, 10:01 p.m. OK PyPy 3-64 TESTS 2 46 0 800
176807806 chalex2k A Oct. 17, 2022, 8:53 p.m. OK PyPy 3-64 TESTS 2 46 0 800
176800912 witcher_wild_hunt A Oct. 17, 2022, 7:28 p.m. OK PyPy 3-64 TESTS 2 46 0 800
176799697 mrdhnv A Oct. 17, 2022, 7:16 p.m. OK PyPy 3-64 TESTS 2 46 0 800
176798446 srjoy01 A Oct. 17, 2022, 7:02 p.m. OK PyPy 3-64 TESTS 2 46 0 800
176830870 rudrashah A Oct. 18, 2022, 5 a.m. OK Python 3 TESTS 2 30 0 800
176819819 Shuja_SundarSTEM A Oct. 18, 2022, 1:54 a.m. OK Python 3 TESTS 2 30 0 800
176813484 2000031238 A Oct. 17, 2022, 10:55 p.m. OK Python 3 TESTS 2 30 0 800
176809618 elistark A Oct. 17, 2022, 9:22 p.m. OK Python 3 TESTS 2 30 0 800
176791487 Garrixer05 A Oct. 17, 2022, 5:58 p.m. OK Python 3 TESTS 2 30 0 800
176787242 Mirkhad A Oct. 17, 2022, 5:26 p.m. OK Python 3 TESTS 2 30 0 800
176780930 A_Ankit A Oct. 17, 2022, 4:47 p.m. OK Python 3 TESTS 2 30 0 800
176773427 prakku_2634 A Oct. 17, 2022, 4:27 p.m. OK Python 3 TESTS 2 30 0 800
176773082 zl2889 A Oct. 17, 2022, 4:26 p.m. OK Python 3 TESTS 2 30 0 800
176823371 nitin2203 A Oct. 18, 2022, 2:58 a.m. OK Python 3 TESTS 2 31 0 800
176817668 emofunc A Oct. 18, 2022, 1:06 a.m. OK Rust 2021 TESTS 2 15 0 800

remove filters

Back to search problems