Codeforces Round 742 (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
1567 Codeforces Round 742 (Div. 2) FINISHED False 7200 100970699 Sept. 5, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 12233 ) C Carrying Conundrum PROGRAMMING bitmasks combinatorics dp

B'Alice has just learned addition. However, she hasn 't learned the concept of "carrying" fully -- instead of carrying to the next column, she carries to the column two columns to the left. For example, the regular way to evaluate the sum 2039 + 2976 would be as shown: However, Alice evaluates it as shown: In particular, this is what she does: Alice comes up to Bob and says that she has added two numbers to get a result of n . However, Bob knows that Alice adds in her own way. Help Bob find the number of ordered pairs of positive integers such that when Alice adds them, she will get a result of n . Note that pairs (a, b) and (b, a) are considered different if a ne b . The input consists of multiple test cases. The first line contains an integer t ( 1 <= q t <= q 1000 ) -- the number of test cases. The description of the test cases follows. The only line of each test case contains an integer n ( 2 <= q n <= q 10^9 ) -- the number Alice shows Bob. For each test case, output one integer -- the number of ordered pairs of positive integers such that when Alice adds them, she will get a result of n . In the first test case, when Alice evaluates any of the sums 1 + 9 , 2 + 8 , 3 + 7 , 4 + 6 , 5 + 5 , 6 + 4 , 7 + 3 , 8 + 2 , or 9 + 1 , she will get a result of 100 . The picture below shows how Alice evaluates 6 + 4 : '...

Tutorials

Codeforces Round #742 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
128007292 ssvb C Sept. 6, 2021, 3:03 a.m. OK D TESTS 15 30 3686400
128003937 gxlois C Sept. 6, 2021, 1:34 a.m. OK D TESTS 15 62 3686400
127982201 milan_s1 C Sept. 5, 2021, 4:34 p.m. OK GNU C11 TESTS 15 15 3686400
127988583 yycyyc C Sept. 5, 2021, 6:12 p.m. OK GNU C11 TESTS 15 30 3686400
127991177 TJ.C C Sept. 5, 2021, 6:52 p.m. OK GNU C11 TESTS 15 30 3686400
127977382 masterchef2209 C Sept. 5, 2021, 4:20 p.m. OK GNU C++14 TESTS 15 15 3686400
127976620 a22solanki C Sept. 5, 2021, 4:18 p.m. OK GNU C++14 TESTS 15 15 3686400
127975228 TheCypher C Sept. 5, 2021, 4:13 p.m. OK GNU C++14 TESTS 15 15 3686400
128001228 lrwen C Sept. 6, 2021, 12:04 a.m. OK GNU C++14 TESTS 15 15 3686400
127996116 Vibhukumar7 C Sept. 5, 2021, 8:43 p.m. OK GNU C++14 TESTS 15 15 3686400
127995637 gogogofuxk C Sept. 5, 2021, 8:30 p.m. OK GNU C++14 TESTS 15 15 3686400
127994830 pranav_63 C Sept. 5, 2021, 8:10 p.m. OK GNU C++14 TESTS 15 15 3686400
127991669 Abhay_raj1707 C Sept. 5, 2021, 7 p.m. OK GNU C++14 TESTS 15 15 3686400
128006021 lrwen C Sept. 6, 2021, 2:29 a.m. OK GNU C++14 TESTS 15 15 3686400
128001756 Capitalist_Wang C Sept. 6, 2021, 12:22 a.m. OK GNU C++14 TESTS 15 15 3686400
128011915 Valour616 C Sept. 6, 2021, 4:45 a.m. OK GNU C++17 TESTS 15 15 3686400
128008208 Erica_1031 C Sept. 6, 2021, 3:26 a.m. OK GNU C++17 TESTS 15 15 3686400
128006009 uttammittal02 C Sept. 6, 2021, 2:28 a.m. OK GNU C++17 TESTS 15 15 3686400
127997468 El_Alderson C Sept. 5, 2021, 9:26 p.m. OK GNU C++17 TESTS 15 15 3686400
127992008 Andy.zhu23 C Sept. 5, 2021, 7:07 p.m. OK GNU C++17 TESTS 15 15 3686400
127990983 errrica C Sept. 5, 2021, 6:49 p.m. OK GNU C++17 TESTS 15 15 3686400
127990268 Ne_mo C Sept. 5, 2021, 6:37 p.m. OK GNU C++17 TESTS 15 15 3686400
128011483 Nur47 C Sept. 6, 2021, 4:36 a.m. OK GNU C++17 TESTS 15 15 3686400
128015039 windy7926778 C Sept. 6, 2021, 5:42 a.m. OK GNU C++17 TESTS 15 15 3686400
128013691 Kanheyalal C Sept. 6, 2021, 5:19 a.m. OK GNU C++17 TESTS 15 15 3686400
127973963 Acc_Robin C Sept. 5, 2021, 4:09 p.m. OK GNU C++17 (64) TESTS 15 15 4198400
128010807 Saarthak_10 C Sept. 6, 2021, 4:22 a.m. OK GNU C++17 (64) TESTS 15 15 4300800
128014312 Akib_12 C Sept. 6, 2021, 5:30 a.m. OK GNU C++17 (64) TESTS 15 15 4300800
128013899 Dragon_Emperor C Sept. 6, 2021, 5:22 a.m. OK GNU C++17 (64) TESTS 15 15 4300800
128013210 adityateltia22 C Sept. 6, 2021, 5:10 a.m. OK GNU C++17 (64) TESTS 15 15 4300800
128012033 coderdhanraj C Sept. 6, 2021, 4:48 a.m. OK GNU C++17 (64) TESTS 15 15 4300800
128011721 CodingKnight C Sept. 6, 2021, 4:41 a.m. OK GNU C++17 (64) TESTS 15 15 4300800
128011652 dashing_ C Sept. 6, 2021, 4:39 a.m. OK GNU C++17 (64) TESTS 15 15 4300800
128011513 vioalbert C Sept. 6, 2021, 4:37 a.m. OK GNU C++17 (64) TESTS 15 15 4300800
128011502 CodingKnight C Sept. 6, 2021, 4:36 a.m. OK GNU C++17 (64) TESTS 15 15 4300800
127979537 Bogga_Vogga C Sept. 5, 2021, 4:28 p.m. OK Go TESTS 15 62 10649600
128009475 codelegend C Sept. 6, 2021, 3:53 a.m. OK Haskell TESTS 15 31 11571200
128015833 suhas5979 C Sept. 6, 2021, 5:55 a.m. OK Java 11 TESTS 15 171 23756800
128015444 shininghyunho C Sept. 6, 2021, 5:48 a.m. OK Java 11 TESTS 15 171 23756800
127986313 sakethsriram19 C Sept. 5, 2021, 5:41 p.m. OK Java 11 TESTS 15 171 23756800
128013512 the_unseen C Sept. 6, 2021, 5:16 a.m. OK Java 11 TESTS 15 186 23756800
128012392 aym_05 C Sept. 6, 2021, 4:55 a.m. OK Java 11 TESTS 15 186 23756800
128011766 SaberXpro C Sept. 6, 2021, 4:42 a.m. OK Java 11 TESTS 15 186 23859200
127990647 uttaran_das C Sept. 5, 2021, 6:43 p.m. OK Java 11 TESTS 15 186 23859200
127986127 siva03 C Sept. 5, 2021, 5:39 p.m. OK Java 11 TESTS 15 186 23859200
128007627 Niyati31 C Sept. 6, 2021, 3:11 a.m. OK Java 11 TESTS 15 187 23756800
127985146 akash132 C Sept. 5, 2021, 5:30 p.m. OK Java 11 TESTS 15 187 23756800
128006726 wyxfwxh250821 C Sept. 6, 2021, 2:48 a.m. OK Java 8 TESTS 15 108 20275200
127988621 iarvind C Sept. 5, 2021, 6:12 p.m. OK Java 8 TESTS 15 108 20480000
128007326 aggarwalanshul01 C Sept. 6, 2021, 3:03 a.m. OK Java 8 TESTS 15 109 20377600
127985293 pgthebigshot C Sept. 5, 2021, 5:31 p.m. OK Java 8 TESTS 15 109 20377600
127998684 pdk.abhishek C Sept. 5, 2021, 10:13 p.m. OK Java 8 TESTS 15 109 20480000
127994837 smahajan54842 C Sept. 5, 2021, 8:10 p.m. OK Java 8 TESTS 15 109 20480000
127994267 ag157 C Sept. 5, 2021, 7:57 p.m. OK Java 8 TESTS 15 109 20480000
127985475 harsh_03_m C Sept. 5, 2021, 5:33 p.m. OK Java 8 TESTS 15 109 20480000
128009269 thedesalizes C Sept. 6, 2021, 3:49 a.m. OK Java 8 TESTS 15 109 20582400
128014229 ganesh_6 C Sept. 6, 2021, 5:28 a.m. OK Java 8 TESTS 15 124 20377600
127981321 Triss_Merigold C Sept. 5, 2021, 4:32 p.m. OK Kotlin TESTS 15 124 20582400
128015417 ThinkingDobby C Sept. 6, 2021, 5:48 a.m. OK Kotlin TESTS 15 124 20582400
127994335 Bobko C Sept. 5, 2021, 7:59 p.m. OK Kotlin TESTS 15 124 20582400
127973901 UZMath C Sept. 5, 2021, 4:09 p.m. OK Kotlin TESTS 15 171 21606400
127988584 ostroumov C Sept. 5, 2021, 6:12 p.m. OK Kotlin TESTS 15 202 21299200
127990240 avtoruxadze C Sept. 5, 2021, 6:37 p.m. OK Mono C# TESTS 15 62 8601600
127975687 Quantum_Graviton C Sept. 5, 2021, 4:15 p.m. OK MS C++ 2017 TESTS 15 31 3686400
127985798 Tangerine C Sept. 5, 2021, 5:36 p.m. OK MS C++ 2017 TESTS 15 31 3788800
128010046 hemanshu C Sept. 6, 2021, 4:05 a.m. OK MS C++ 2017 TESTS 15 31 3788800
128000540 _Rimjhim_36 C Sept. 5, 2021, 11:35 p.m. OK MS C++ 2017 TESTS 15 31 3788800
127991509 UnHingedFrog C Sept. 5, 2021, 6:58 p.m. OK MS C++ 2017 TESTS 15 31 3788800
127985697 Tangerine C Sept. 5, 2021, 5:35 p.m. OK MS C++ 2017 TESTS 15 31 3788800
127977796 dino_merlin C Sept. 5, 2021, 4:22 p.m. OK MS C++ 2017 TESTS 15 31 3788800
127973313 MherKing C Sept. 5, 2021, 4:07 p.m. OK MS C++ 2017 TESTS 15 31 3788800
127973674 Xiaomoares C Sept. 5, 2021, 4:08 p.m. OK MS C++ 2017 TESTS 15 31 4710400
127976580 httohu C Sept. 5, 2021, 4:18 p.m. OK MS C++ 2017 TESTS 15 31 5324800
127987461 Ceya-Tar C Sept. 5, 2021, 5:56 p.m. OK Node.js TESTS 15 93 13721600
127980176 Darooha C Sept. 5, 2021, 4:29 p.m. OK Ocaml TESTS 15 46 3993600
127986584 Marshmello C Sept. 5, 2021, 5:45 p.m. OK PyPy 2 TESTS 15 124 24780800
127987323 kagu C Sept. 5, 2021, 5:54 p.m. OK PyPy 2 TESTS 15 139 27648000
127996695 yash490 C Sept. 5, 2021, 9 p.m. OK PyPy 3 TESTS 15 108 21708800
127975944 alonmln C Sept. 5, 2021, 4:16 p.m. OK PyPy 3 TESTS 15 109 22016000
127999576 beethoven97 C Sept. 5, 2021, 10:52 p.m. OK PyPy 3 TESTS 15 124 21504000
127996014 silvertint C Sept. 5, 2021, 8:40 p.m. OK PyPy 3 TESTS 15 124 21708800
127987098 vaibhav_india C Sept. 5, 2021, 5:52 p.m. OK PyPy 3 TESTS 15 124 22323200
127995523 akshitm16 C Sept. 5, 2021, 8:27 p.m. OK PyPy 3 TESTS 15 124 22425600
127993662 not_akshitm16 C Sept. 5, 2021, 7:43 p.m. OK PyPy 3 TESTS 15 124 22425600
127987944 ps_12 C Sept. 5, 2021, 6:02 p.m. OK PyPy 3 TESTS 15 124 22425600
127976919 Mai_hoo_kaun C Sept. 5, 2021, 4:19 p.m. OK PyPy 3 TESTS 15 124 22630400
127986513 reddevil100 C Sept. 5, 2021, 5:44 p.m. OK PyPy 3 TESTS 15 124 22937600
127984604 nwi C Sept. 5, 2021, 5:27 p.m. OK Python 2 TESTS 15 93 6553600
128015848 srikar.may5 C Sept. 6, 2021, 5:55 a.m. OK Python 3 TESTS 15 62 6963200
127990591 Louis2803 C Sept. 5, 2021, 6:42 p.m. OK Python 3 TESTS 15 62 6963200
127993859 i_aman C Sept. 5, 2021, 7:47 p.m. OK Python 3 TESTS 15 62 7065600
128010411 kaushik1877 C Sept. 6, 2021, 4:13 a.m. OK Python 3 TESTS 15 77 6758400
128002193 Doc_Di C Sept. 6, 2021, 12:38 a.m. OK Python 3 TESTS 15 77 6758400
128002118 wangkan2001 C Sept. 6, 2021, 12:35 a.m. OK Python 3 TESTS 15 77 6758400
127999674 Jingxuan_Di C Sept. 5, 2021, 10:57 p.m. OK Python 3 TESTS 15 77 6758400
127986681 Prajapat C Sept. 5, 2021, 5:46 p.m. OK Python 3 TESTS 15 77 6758400
128014909 RMani C Sept. 6, 2021, 5:40 a.m. OK Python 3 TESTS 15 77 6963200
128005558 SF-Manman C Sept. 6, 2021, 2:16 a.m. OK Python 3 TESTS 15 77 6963200
128015267 Spheniscine C Sept. 6, 2021, 5:46 a.m. OK Rust TESTS 15 15 3891200
127994106 apilat C Sept. 5, 2021, 7:53 p.m. OK Rust TESTS 15 31 3788800
128015711 Spheniscine C Sept. 6, 2021, 5:53 a.m. OK Rust TESTS 15 31 3891200
128015167 Spheniscine C Sept. 6, 2021, 5:44 a.m. OK Rust TESTS 15 46 3891200

remove filters

Back to search problems