Codeforces Round 867 (Div. 3)

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
1822 Codeforces Round 867 (Div. 3) FINISHED False 8100 54919463 April 24, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 23385 ) C Bun Lover PROGRAMMING math

B'Tema loves cinnabon rolls -- buns with cinnabon and chocolate in the shape of a "snail". Cinnabon rolls come in different sizes and are square when viewed from above. The most delicious part of a roll is the chocolate, which is poured in a thin layer over the cinnabon roll in the form of a spiral and around the bun, as in the following picture: Cinnabon rolls of sizes 4, 5, 6 For a cinnabon roll of size n , the length of the outer side of the square is n , and the length of the shortest vertical chocolate segment in the central part is one. Formally, the bun consists of two dough spirals separated by chocolate. A cinnabon roll of size n + 1 is obtained from a cinnabon roll of size n by wrapping each of the dough spirals around the cinnabon roll for another layer. It is important that a cinnabon roll of size n is defined in a unique way. Tema is interested in how much chocolate is in his cinnabon roll of size n . Since Tema has long stopped buying small cinnabon rolls, it is guaranteed that n ge 4 . Answer this non-obvious question by calculating the total length of the chocolate layer. The first line of the input contains a single integer t ( 1 <= t <= 10^5 ) -- the number of test cases. The following t lines describe the test cases. Each test case is described by a single integer n ( 4 <= n <= 10^9 ) -- the size of the cinnabon roll. Output t integers. The i -th of them should be equal to the total length of the chocolate layer in the i -th test case. '...

Tutorials

Codeforces Round #867 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
203345156 chrisTris C April 24, 2023, 4:53 p.m. OK C# 10 TESTS 3 61 2969600
203384885 chrisTris C April 25, 2023, 1:57 a.m. OK C# 10 TESTS 3 124 2867200
203379749 Anastasiya_Andreevna C April 25, 2023, 12:06 a.m. OK C# 8 TESTS 3 327 3276800
203379799 Anastasiya_Andreevna C April 25, 2023, 12:07 a.m. OK C# 8 TESTS 3 342 3174400
203379841 Anastasiya_Andreevna C April 25, 2023, 12:07 a.m. OK C# 8 TESTS 3 343 3276800
203379647 Anastasiya_Andreevna C April 25, 2023, 12:03 a.m. OK C# 8 TESTS 3 374 3379200
203384876 bluemegane C April 25, 2023, 1:57 a.m. OK C# 8 TESTS 3 607 3891200
203360804 arpitha2003 C April 24, 2023, 6:50 p.m. OK Clang++17 Diagnostics TESTS 3 1497 4198400
203393294 sound-medium521 C April 25, 2023, 4:17 a.m. OK Clang++20 Diagnostics TESTS 3 1482 4198400
203351948 VieisdradMiacul C April 24, 2023, 5:30 p.m. OK FPC TESTS 3 327 0
203347162 ht4779925 C April 24, 2023, 5:01 p.m. OK FPC TESTS 3 327 0
203352715 ariya_arjuna C April 24, 2023, 5:36 p.m. OK GNU C11 TESTS 3 499 0
203385224 mollosev C April 25, 2023, 2:04 a.m. OK GNU C11 TESTS 3 514 0
203371704 warks C April 24, 2023, 9:11 p.m. OK GNU C11 TESTS 3 514 0
203354885 iffatul_anon C April 24, 2023, 5:54 p.m. OK GNU C11 TESTS 3 561 0
203383372 HelloWorldyou C April 25, 2023, 1:26 a.m. OK GNU C++14 TESTS 3 61 24166400
203355284 keshav_1820 C April 24, 2023, 5:57 p.m. OK GNU C++14 TESTS 3 62 0
203365977 PCC C April 24, 2023, 7:46 p.m. OK GNU C++14 TESTS 3 77 0
203362996 alshantir98 C April 24, 2023, 7:12 p.m. OK GNU C++14 TESTS 3 77 0
203358633 evil_yodeler C April 24, 2023, 6:29 p.m. OK GNU C++14 TESTS 3 77 0
203348321 aryan_deswal C April 24, 2023, 5:07 p.m. OK GNU C++14 TESTS 3 77 0
203393460 Royo C April 25, 2023, 4:19 a.m. OK GNU C++14 TESTS 3 77 0
203368079 anancodec C April 24, 2023, 8:15 p.m. OK GNU C++14 TESTS 3 77 0
203366157 morose_9816 C April 24, 2023, 7:49 p.m. OK GNU C++14 TESTS 3 77 0
203398677 devansh789 C April 25, 2023, 5:36 a.m. OK GNU C++14 TESTS 3 77 0
203356781 LilyCuSO4 C April 24, 2023, 6:10 p.m. OK GNU C++17 TESTS 3 61 0
203356707 Devrajsinh_Jethwa C April 24, 2023, 6:10 p.m. OK GNU C++17 TESTS 3 61 0
203356390 anikthe C April 24, 2023, 6:07 p.m. OK GNU C++17 TESTS 3 61 0
203345372 Jessuar_Hoyos C April 24, 2023, 4:53 p.m. OK GNU C++17 TESTS 3 61 0
203376193 Ohto_Ai C April 24, 2023, 10:40 p.m. OK GNU C++17 TESTS 3 61 0
203380762 Sherif804 C April 25, 2023, 12:28 a.m. OK GNU C++17 TESTS 3 61 0
203398453 yash_04 C April 25, 2023, 5:33 a.m. OK GNU C++17 TESTS 3 61 0
203365145 alternate_practice C April 24, 2023, 7:36 p.m. OK GNU C++17 TESTS 3 61 0
203396219 Iskandarov C April 25, 2023, 5:02 a.m. OK GNU C++17 TESTS 3 62 0
203395662 ninja_987 C April 25, 2023, 4:54 a.m. OK GNU C++17 TESTS 3 62 0
203368332 Reema_hmad C April 24, 2023, 8:19 p.m. OK GNU C++17 (64) TESTS 3 30 0
203393022 consistent_17 C April 25, 2023, 4:12 a.m. OK GNU C++17 (64) TESTS 3 46 0
203386883 israil445 C April 25, 2023, 2:37 a.m. OK GNU C++17 (64) TESTS 3 46 0
203382449 Xylenox C April 25, 2023, 1:06 a.m. OK GNU C++17 (64) TESTS 3 46 0
203377582 omar_mahmoud1 C April 24, 2023, 11:12 p.m. OK GNU C++17 (64) TESTS 3 46 0
203369658 Eman_Elharery C April 24, 2023, 8:38 p.m. OK GNU C++17 (64) TESTS 3 46 0
203394600 Fallen49 C April 25, 2023, 4:37 a.m. OK GNU C++17 (64) TESTS 3 46 0
203395546 axbbys C April 25, 2023, 4:52 a.m. OK GNU C++17 (64) TESTS 3 46 0
203399260 surajmisal18 C April 25, 2023, 5:45 a.m. OK GNU C++17 (64) TESTS 3 46 0
203374457 HelmOptimum C April 24, 2023, 10:02 p.m. OK GNU C++17 (64) TESTS 3 46 0
203375973 BlackGeneral C April 24, 2023, 10:35 p.m. OK GNU C++20 (64) TESTS 3 15 0
203399057 Wulz C April 25, 2023, 5:41 a.m. OK GNU C++20 (64) TESTS 3 15 0
203391797 OrazB C April 25, 2023, 3:53 a.m. OK GNU C++20 (64) TESTS 3 15 0
203386972 sz_zx C April 25, 2023, 2:39 a.m. OK GNU C++20 (64) TESTS 3 15 0
203380297 kk110011 C April 25, 2023, 12:18 a.m. OK GNU C++20 (64) TESTS 3 15 0
203378114 mouradnouaili C April 24, 2023, 11:25 p.m. OK GNU C++20 (64) TESTS 3 15 0
203373577 m0nster.eXe C April 24, 2023, 9:42 p.m. OK GNU C++20 (64) TESTS 3 15 0
203371680 Khaled_Al_Awad C April 24, 2023, 9:11 p.m. OK GNU C++20 (64) TESTS 3 15 0
203363914 vf21 C April 24, 2023, 7:22 p.m. OK GNU C++20 (64) TESTS 3 15 0
203362631 ermukanoff C April 24, 2023, 7:09 p.m. OK GNU C++20 (64) TESTS 3 15 0
203355194 cpcdevar C April 24, 2023, 5:56 p.m. OK Java 11 TESTS 3 233 0
203355705 sarafnavneet2 C April 24, 2023, 6:01 p.m. OK Java 11 TESTS 3 841 0
203396129 Bheem_1 C April 25, 2023, 5:01 a.m. OK Java 11 TESTS 3 966 0
203351590 samy10127 C April 24, 2023, 5:27 p.m. OK Java 11 TESTS 3 998 0
203354338 nithya_138 C April 24, 2023, 5:49 p.m. OK Java 11 TESTS 3 1013 0
203357831 biu_biu_biu C April 24, 2023, 6:20 p.m. OK Java 11 TESTS 3 1075 0
203351612 brandonmejia C April 24, 2023, 5:27 p.m. OK Java 11 TESTS 3 1544 0
203377775 IceWolf898 C April 24, 2023, 11:17 p.m. OK Java 17 TESTS 3 280 0
203391739 Doni04 C April 25, 2023, 3:52 a.m. OK Java 17 TESTS 3 295 204800
203364917 elf C April 24, 2023, 7:34 p.m. OK Java 17 TESTS 3 483 0
203397075 TJ_Codes C April 25, 2023, 5:14 a.m. OK Java 17 TESTS 3 514 614400
203376576 aruniscoding C April 24, 2023, 10:49 p.m. OK Java 17 TESTS 3 561 0
203354875 palak_05 C April 24, 2023, 5:54 p.m. OK Java 17 TESTS 3 608 0
203349173 saumya2004 C April 24, 2023, 5:12 p.m. OK Java 17 TESTS 3 639 0
203349839 DongJM C April 24, 2023, 5:16 p.m. OK Java 17 TESTS 3 655 102400
203353858 RomBro C April 24, 2023, 5:45 p.m. OK Java 17 TESTS 3 670 0
203352861 RomBro C April 24, 2023, 5:37 p.m. OK Java 17 TESTS 3 670 0
203346040 Koka C April 24, 2023, 4:56 p.m. OK Java 8 TESTS 3 186 0
203346856 toufique_husein C April 24, 2023, 5 p.m. OK Java 8 TESTS 3 296 0
203364108 nishikar C April 24, 2023, 7:25 p.m. OK Java 8 TESTS 3 873 0
203389615 ice_code C April 25, 2023, 3:21 a.m. OK Java 8 TESTS 3 1076 0
203347203 nikhil.20scse1010249 C April 24, 2023, 5:01 p.m. OK Java 8 TESTS 3 1138 0
203360145 MustafaMahmoud15 C April 24, 2023, 6:43 p.m. OK Java 8 TESTS 3 1668 0
203354801 Ishanraj C April 24, 2023, 5:53 p.m. OK Java 8 TESTS 3 2776 0
203381989 DeadlyMello C April 25, 2023, 12:56 a.m. OK Kotlin 1.7 TESTS 3 358 18124800
203359472 illusion_ C April 24, 2023, 6:37 p.m. OK Kotlin 1.7 TESTS 3 358 18124800
203356662 alaevS C April 24, 2023, 6:10 p.m. OK MS C++ 2017 TESTS 3 156 0
203370638 Rashed.Mamdouh C April 24, 2023, 8:53 p.m. OK MS C++ 2017 TESTS 3 483 0
203352378 DarkArey C April 24, 2023, 5:33 p.m. OK MS C++ 2017 TESTS 3 483 819200
203355663 valavshonok C April 24, 2023, 6 p.m. OK MS C++ 2017 TESTS 3 498 0
203366046 shorya1835 C April 24, 2023, 7:47 p.m. OK MS C++ 2017 TESTS 3 795 0
203383515 wertiop C April 25, 2023, 1:29 a.m. OK PyPy 3 TESTS 3 358 9830400
203381913 xin2002 C April 25, 2023, 12:54 a.m. OK PyPy 3 TESTS 3 1387 8499200
203353283 flownn C April 24, 2023, 5:40 p.m. OK PyPy 3 TESTS 3 1388 8499200
203396074 maihu02 C April 25, 2023, 5 a.m. OK PyPy 3 TESTS 3 1419 8294400
203359567 Soralita C April 24, 2023, 6:38 p.m. OK PyPy 3 TESTS 3 1450 9216000
203355215 pennywise_ C April 24, 2023, 5:56 p.m. OK PyPy 3 TESTS 3 2417 9728000
203360544 Soralita C April 24, 2023, 6:47 p.m. OK PyPy 3 TESTS 3 2901 9216000
203356316 oneku16 C April 24, 2023, 6:06 p.m. OK PyPy 3-64 TESTS 3 62 8806400
203392351 letsycode C April 25, 2023, 4:01 a.m. OK PyPy 3-64 TESTS 3 77 13926400
203372427 rmr C April 24, 2023, 9:22 p.m. OK PyPy 3-64 TESTS 3 108 9216000
203398662 Yansou C April 25, 2023, 5:36 a.m. OK PyPy 3-64 TESTS 3 109 9216000
203399056 lgn C April 25, 2023, 5:41 a.m. OK PyPy 3-64 TESTS 3 124 8806400
203352636 Kladrr C April 24, 2023, 5:35 p.m. OK PyPy 3-64 TESTS 3 124 9216000
203345313 DarkScorpion C April 24, 2023, 4:53 p.m. OK PyPy 3-64 TESTS 3 124 9216000
203363822 gardengnome C April 24, 2023, 7:21 p.m. OK PyPy 3-64 TESTS 3 124 9318400
203390712 adithya1207 C April 25, 2023, 3:37 a.m. OK PyPy 3-64 TESTS 3 124 13721600
203383192 nealzane C April 25, 2023, 1:22 a.m. OK PyPy 3-64 TESTS 3 139 8806400
203386679 biltharesatyendra C April 25, 2023, 2:33 a.m. OK Python 2 TESTS 3 249 0
203378157 dxulet C April 24, 2023, 11:26 p.m. OK Python 3 TESTS 3 280 716800
203346039 number1729 C April 24, 2023, 4:56 p.m. OK Python 3 TESTS 3 358 2662400
203378378 Xam71 C April 24, 2023, 11:31 p.m. OK Python 3 TESTS 3 763 0
203357174 Anil_kumar_18 C April 24, 2023, 6:14 p.m. OK Python 3 TESTS 3 764 0
203346632 Khaled_ehanan2003 C April 24, 2023, 4:59 p.m. OK Python 3 TESTS 3 764 0
203399063 eeveeislove C April 25, 2023, 5:41 a.m. OK Python 3 TESTS 3 779 0
203356230 thadakaabhinay C April 24, 2023, 6:05 p.m. OK Python 3 TESTS 3 779 0
203349747 mr.offseason C April 24, 2023, 5:15 p.m. OK Python 3 TESTS 3 779 0
203349260 SARKAR2213 C April 24, 2023, 5:12 p.m. OK Python 3 TESTS 3 779 0
203387012 Aref47 C April 25, 2023, 2:39 a.m. OK Python 3 TESTS 3 795 0
203396132 cpchenpi C April 25, 2023, 5:01 a.m. OK Rust 2021 TESTS 3 15 0
203377683 karelispanagiotis C April 24, 2023, 11:14 p.m. OK Rust 2021 TESTS 3 15 0
203367829 wbars C April 24, 2023, 8:11 p.m. OK Rust 2021 TESTS 3 904 0

remove filters

Back to search problems