Codeforces Round 745 (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
1581 Codeforces Round 745 (Div. 2) FINISHED False 7200 98826299 Sept. 30, 2021, 10:15 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 13493 ) A CQXYM Count Permutations PROGRAMMING math 800

B'CQXYM is counting permutations length of 2n . A permutation is an array consisting of n distinct integers from 1 to n in arbitrary order. For example, [2,3,1,5,4] is a permutation, but [1,2,2] is not a permutation ( 2 appears twice in the array) and [1,3,4] is also not a permutation ( n=3 but there is 4 in the array). A permutation p (length of 2n ) will be counted only if the number of i satisfying p_i<p_{i+1} is no less than n . For example: CQXYM wants you to help him to count the number of such permutations modulo 1000000007 ( 10^9+7 ). In addition, modulo operation is to get the remainder. For example: The input consists of multiple test cases. The first line contains an integer t (t geq 1) -- the number of test cases. The description of the test cases follows. Only one line of each test case contains an integer n(1 <= q n <= q 10^5) . It is guaranteed that the sum of n over all test cases does not exceed 10^5 For each test case, print the answer in a single line. n=1 , there is only one permutation that satisfies the condition: [1,2]. In permutation [1,2] , p_1<p_2 , and there is one i=1 satisfy the condition. Since 1 geq n , this permutation should be counted. In permutation [2,1] , p_1>p_2 . Because 0<n , this permutation should not be counted. n=2 , there are 12 permutations: [1,2,3,4],[1,2,4,3],[1,3,2,4],[1,3,4,2],[1,4,2,3],[2,1,3,4],[2,3,1,4],[2,3,4,1],[2,4,1,3],[3,1,2,4],[3,4,1,2],[4,1,2,3]. '...

Tutorials

Codeforces Round #745 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
130368504 madhu_2525 A Sept. 30, 2021, 12:07 p.m. OK GNU C11 TESTS 10 15 3686400 800
130370821 nihadasgarov A Sept. 30, 2021, 12:14 p.m. OK GNU C11 TESTS 10 15 3686400 800
130373208 milan_s1 A Sept. 30, 2021, 12:44 p.m. OK GNU C11 TESTS 10 15 3686400 800
130427896 murali_33 A Oct. 1, 2021, 4:03 a.m. OK GNU C11 TESTS 10 15 3686400 800
130430771 Yuri_136 A Oct. 1, 2021, 5:03 a.m. OK GNU C11 TESTS 10 15 3686400 800
130362301 sdfer A Sept. 30, 2021, 11:42 a.m. OK GNU C11 TESTS 10 15 3686400 800
130362643 Bhavanasai_Pasupuleti A Sept. 30, 2021, 11:43 a.m. OK GNU C11 TESTS 10 15 3686400 800
130365236 smit.07 A Sept. 30, 2021, 11:54 a.m. OK GNU C11 TESTS 10 15 3686400 800
130366132 dhruval1234 A Sept. 30, 2021, 11:58 a.m. OK GNU C11 TESTS 10 15 3686400 800
130367446 190040203 A Sept. 30, 2021, 12:03 p.m. OK GNU C11 TESTS 10 15 3686400 800
130359839 Ranger_qwq A Sept. 30, 2021, 11:32 a.m. OK GNU C++14 TESTS 10 0 4505600 800
130414080 EslamSaeed. A Sept. 30, 2021, 8:33 p.m. OK GNU C++14 TESTS 10 15 0 800
130423762 2020csb1109 A Oct. 1, 2021, 2:30 a.m. OK GNU C++14 TESTS 10 15 0 800
130424364 2008170419lyh A Oct. 1, 2021, 2:44 a.m. OK GNU C++14 TESTS 10 15 1638400 800
130416555 saritesh A Sept. 30, 2021, 9:34 p.m. OK GNU C++14 TESTS 10 15 3686400 800
130428803 sweet_hope25 A Oct. 1, 2021, 4:24 a.m. OK GNU C++14 TESTS 10 15 3686400 800
130426815 Omik A Oct. 1, 2021, 3:40 a.m. OK GNU C++14 TESTS 10 15 3686400 800
130426418 AlexWangr A Oct. 1, 2021, 3:31 a.m. OK GNU C++14 TESTS 10 15 3686400 800
130422986 xyxsw2021 A Oct. 1, 2021, 2:09 a.m. OK GNU C++14 TESTS 10 15 3686400 800
130415322 dharabhishek A Sept. 30, 2021, 8:59 p.m. OK GNU C++14 TESTS 10 15 3686400 800
130385939 amazer641 A Sept. 30, 2021, 2:39 p.m. OK GNU C++17 TESTS 10 15 0 800
130393821 pratikingle A Sept. 30, 2021, 3:59 p.m. OK GNU C++17 TESTS 10 15 0 800
130408474 gokus A Sept. 30, 2021, 6:56 p.m. OK GNU C++17 TESTS 10 15 0 800
130434231 sgoel770 A Oct. 1, 2021, 6:04 a.m. OK GNU C++17 TESTS 10 15 409600 800
130375402 sarwar__ A Sept. 30, 2021, 1:01 p.m. OK GNU C++17 TESTS 10 15 819200 800
130432433 g_ujwal A Oct. 1, 2021, 5:32 a.m. OK GNU C++17 TESTS 10 15 3686400 800
130434070 Sourav__8 A Oct. 1, 2021, 6:01 a.m. OK GNU C++17 TESTS 10 15 3686400 800
130433913 HN2000 A Oct. 1, 2021, 5:59 a.m. OK GNU C++17 TESTS 10 15 3686400 800
130433678 chunjiangchaoshui A Oct. 1, 2021, 5:54 a.m. OK GNU C++17 TESTS 10 15 3686400 800
130431463 anshitmishra A Oct. 1, 2021, 5:16 a.m. OK GNU C++17 TESTS 10 15 3686400 800
130387096 Nickeloy A Sept. 30, 2021, 2:50 p.m. OK GNU C++17 (64) TESTS 10 0 0 800
130357394 cracyx A Sept. 30, 2021, 11:22 a.m. OK GNU C++17 (64) TESTS 10 0 5120000 800
130391623 22h49 A Sept. 30, 2021, 3:36 p.m. OK GNU C++17 (64) TESTS 10 0 5939200 800
130432483 snow_raw A Oct. 1, 2021, 5:33 a.m. OK GNU C++17 (64) TESTS 10 15 0 800
130432282 simply_hooman A Oct. 1, 2021, 5:30 a.m. OK GNU C++17 (64) TESTS 10 15 0 800
130374499 Ezios A Sept. 30, 2021, 12:53 p.m. OK GNU C++17 (64) TESTS 10 15 4198400 800
130372519 Ezios A Sept. 30, 2021, 12:39 p.m. OK GNU C++17 (64) TESTS 10 15 4198400 800
130431703 SineAnand A Oct. 1, 2021, 5:20 a.m. OK GNU C++17 (64) TESTS 10 15 4300800 800
130432960 MoNasr A Oct. 1, 2021, 5:41 a.m. OK GNU C++17 (64) TESTS 10 15 4300800 800
130431200 arya_shekhar A Oct. 1, 2021, 5:11 a.m. OK GNU C++17 (64) TESTS 10 15 4300800 800
130375775 BeeWind A Sept. 30, 2021, 1:04 p.m. OK Go TESTS 10 31 11468800 800
130381621 SavageClown007 A Sept. 30, 2021, 1:58 p.m. OK Java 11 TESTS 10 171 23756800 800
130376985 tankman890 A Sept. 30, 2021, 1:15 p.m. OK Java 11 TESTS 10 171 23756800 800
130415542 bluesky111 A Sept. 30, 2021, 9:05 p.m. OK Java 11 TESTS 10 171 23756800 800
130403768 Sonam_Chhewang A Sept. 30, 2021, 5:53 p.m. OK Java 11 TESTS 10 171 23756800 800
130400581 HelloWorld03 A Sept. 30, 2021, 5:14 p.m. OK Java 11 TESTS 10 171 23756800 800
130398452 aayushdhakad A Sept. 30, 2021, 4:48 p.m. OK Java 11 TESTS 10 171 23756800 800
130395427 _Anjali_Gupta A Sept. 30, 2021, 4:15 p.m. OK Java 11 TESTS 10 171 23756800 800
130389365 ayush__1411 A Sept. 30, 2021, 3:12 p.m. OK Java 11 TESTS 10 171 23756800 800
130383693 ArchitSharma A Sept. 30, 2021, 2:18 p.m. OK Java 11 TESTS 10 171 23756800 800
130361051 dauom A Sept. 30, 2021, 11:36 a.m. OK Java 11 TESTS 10 171 24166400 800
130399844 Sreedhar123 A Sept. 30, 2021, 5:06 p.m. OK Java 8 TESTS 10 93 20172800 800
130407005 _anhTimeLimitExceeded A Sept. 30, 2021, 6:35 p.m. OK Java 8 TESTS 10 93 20275200 800
130364376 gyanrebind4u A Sept. 30, 2021, 11:50 a.m. OK Java 8 TESTS 10 93 20377600 800
130399932 Torches A Sept. 30, 2021, 5:07 p.m. OK Java 8 TESTS 10 93 20377600 800
130373101 lcheeme1 A Sept. 30, 2021, 12:43 p.m. OK Java 8 TESTS 10 108 20275200 800
130418191 RonWonWon A Sept. 30, 2021, 10:34 p.m. OK Java 8 TESTS 10 108 20275200 800
130382500 athu18 A Sept. 30, 2021, 2:07 p.m. OK Java 8 TESTS 10 108 20275200 800
130381071 dev_14 A Sept. 30, 2021, 1:53 p.m. OK Java 8 TESTS 10 108 20275200 800
130430990 SainiAayush A Oct. 1, 2021, 5:07 a.m. OK Java 8 TESTS 10 108 28672000 800
130409461 pranavggupta06 A Sept. 30, 2021, 7:11 p.m. OK Java 8 TESTS 10 109 20172800 800
130415094 hisenberg01 A Sept. 30, 2021, 8:54 p.m. OK Kotlin TESTS 10 124 20480000 800
130358994 mishgan A Sept. 30, 2021, 11:28 a.m. OK Mono C# TESTS 10 46 8499200 800
130360105 TARUNNAGVEER A Sept. 30, 2021, 11:33 a.m. OK MS C++ 2017 TESTS 10 15 3686400 800
130426267 swz A Oct. 1, 2021, 3:28 a.m. OK MS C++ 2017 TESTS 10 15 3788800 800
130411948 UnHingedFrog A Sept. 30, 2021, 7:53 p.m. OK MS C++ 2017 TESTS 10 15 3788800 800
130378472 Gallifrey_104 A Sept. 30, 2021, 1:29 p.m. OK MS C++ 2017 TESTS 10 15 3788800 800
130358465 Devesh_Sawale_1702 A Sept. 30, 2021, 11:26 a.m. OK MS C++ 2017 TESTS 10 15 3788800 800
130390251 egardoz01 A Sept. 30, 2021, 3:22 p.m. OK MS C++ 2017 TESTS 10 30 3788800 800
130376931 Tangerine A Sept. 30, 2021, 1:15 p.m. OK MS C++ 2017 TESTS 10 30 3788800 800
130372131 Blaczumba A Sept. 30, 2021, 12:36 p.m. OK MS C++ 2017 TESTS 10 30 3788800 800
130369854 vacations A Sept. 30, 2021, 12:12 p.m. OK MS C++ 2017 TESTS 10 30 3788800 800
130356298 Damirca A Sept. 30, 2021, 11:18 a.m. OK MS C++ 2017 TESTS 10 30 3788800 800
130357963 vishnu520 A Sept. 30, 2021, 11:24 a.m. OK .NET Core C# TESTS 10 77 11161600 800
130422805 Electron1997 A Oct. 1, 2021, 2:04 a.m. OK Ocaml TESTS 10 31 9728000 800
130422449 Electron1997 A Oct. 1, 2021, 1:52 a.m. OK Ocaml TESTS 10 46 9728000 800
130424489 ben_dover A Oct. 1, 2021, 2:47 a.m. OK PyPy 3 TESTS 10 92 21504000 800
130385766 MahadiAhamed A Sept. 30, 2021, 2:37 p.m. OK PyPy 3 TESTS 10 93 21401600 800
130400447 musabkilic A Sept. 30, 2021, 5:13 p.m. OK PyPy 3 TESTS 10 93 21504000 800
130390966 rezidentura A Sept. 30, 2021, 3:29 p.m. OK PyPy 3 TESTS 10 93 21504000 800
130383381 akshat11 A Sept. 30, 2021, 2:15 p.m. OK PyPy 3 TESTS 10 93 21504000 800
130358754 Pirogoff A Sept. 30, 2021, 11:27 a.m. OK PyPy 3 TESTS 10 93 21504000 800
130390023 Nan-Do A Sept. 30, 2021, 3:19 p.m. OK PyPy 3 TESTS 10 93 21606400 800
130403133 Multibala A Sept. 30, 2021, 5:45 p.m. OK PyPy 3 TESTS 10 93 22528000 800
130432585 shiraz_30 A Oct. 1, 2021, 5:35 a.m. OK PyPy 3 TESTS 10 93 22732800 800
130375112 otsuneko A Sept. 30, 2021, 12:58 p.m. OK PyPy 3 TESTS 10 93 87756800 800
130377885 Eswar_RamDev A Sept. 30, 2021, 1:24 p.m. OK Python 2 TESTS 10 109 6553600 800
130372132 elistark A Sept. 30, 2021, 12:36 p.m. OK Python 2 TESTS 10 124 6553600 800
130400779 gakshat468 A Sept. 30, 2021, 5:17 p.m. OK Python 2 TESTS 10 124 9932800 800
130410364 mArGoThEqUeEn A Sept. 30, 2021, 7:24 p.m. OK Python 3 TESTS 10 93 6758400 800
130361019 khaliqdad0786 A Sept. 30, 2021, 11:36 a.m. OK Python 3 TESTS 10 93 6758400 800
130360976 yashofficial_55 A Sept. 30, 2021, 11:36 a.m. OK Python 3 TESTS 10 93 6758400 800
130364311 godsdice A Sept. 30, 2021, 11:50 a.m. OK Python 3 TESTS 10 93 6963200 800
130392077 Misterio_ A Sept. 30, 2021, 3:40 p.m. OK Python 3 TESTS 10 108 6758400 800
130378241 Eswar_RamDev A Sept. 30, 2021, 1:27 p.m. OK Python 3 TESTS 10 108 6758400 800
130362686 190030313_Meghana A Sept. 30, 2021, 11:43 a.m. OK Python 3 TESTS 10 108 6758400 800
130360435 MuhammadMUEEZ A Sept. 30, 2021, 11:34 a.m. OK Python 3 TESTS 10 108 6758400 800
130359926 badarsyed183 A Sept. 30, 2021, 11:32 a.m. OK Python 3 TESTS 10 108 6758400 800
130359807 Prasanna888 A Sept. 30, 2021, 11:32 a.m. OK Python 3 TESTS 10 108 6758400 800
130372383 pjshwa A Sept. 30, 2021, 12:38 p.m. OK Ruby 3 TESTS 10 311 48947200 800
130373993 Spheniscine A Sept. 30, 2021, 12:49 p.m. OK Rust TESTS 10 31 4710400 800
130386850 IvanDyachenko A Sept. 30, 2021, 2:48 p.m. OK Scala TESTS 10 420 31232000 800

remove filters

Back to search problems