Codeforces Round 946 (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
1974 Codeforces Round 946 (Div. 3) FINISHED False 8100 20964263 May 20, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 34008 ) A Phone Desktop PROGRAMMING greedy math 800

B'Little Rosie has a phone with a desktop (or launcher, as it is also called). The desktop can consist of several screens. Each screen is represented as a grid of size 5 x 3 , i.e., five rows and three columns. There are x applications with an icon size of 1 x 1 cells; such an icon occupies only one cell of the screen. There are also y applications with an icon size of 2 x 2 cells; such an icon occupies a square of 4 cells on the screen. Each cell of each screen can be occupied by no more than one icon. Rosie wants to place the application icons on the minimum number of screens. Help her find the minimum number of screens needed. The first line of the input contains t ( 1 <= q t <= q 10^4 ) -- the number of test cases. The first and only line of each test case contains two integers x and y ( 0 <= q x, y <= q 99 ) -- the number of applications with a 1 x 1 icon and the number of applications with a 2 x 2 icon, respectively. For each test case, output the minimal number of required screens on a separate line. The solution for the first test case can look as follows: The solution for the third test case can look as follows: '...

Tutorials

Codeforces Round #946 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
263108933 nes21 A May 29, 2024, 8:09 a.m. OK C# 10 TESTS 2 77 2969600 800
263208470 mban259 A May 30, 2024, 7:22 a.m. OK C# 10 TESTS 2 78 1433600 800
263239900 amer664 A May 30, 2024, 12:07 p.m. OK C# 10 TESTS 2 93 1536000 800
263422045 Bad_Kpot A May 31, 2024, 6:32 a.m. OK C# 10 TESTS 2 93 3072000 800
263280053 justunderdog A May 30, 2024, 2:45 p.m. OK C# 10 TESTS 2 108 3686400 800
263006280 wuyiming A May 28, 2024, noon OK C++14 (GCC 6-32) TESTS 2 30 0 800
262958552 Mahek_V A May 28, 2024, 5:01 a.m. OK C++14 (GCC 6-32) TESTS 2 30 0 800
262776155 aayueshmaanmittal A May 26, 2024, 4:27 p.m. OK C++14 (GCC 6-32) TESTS 2 30 0 800
262641550 vjudge.5 A May 26, 2024, 3:24 a.m. OK C++14 (GCC 6-32) TESTS 2 30 0 800
262638530 jprrrrr A May 26, 2024, 2:33 a.m. OK C++14 (GCC 6-32) TESTS 2 30 0 800
263016230 nocodeeeee A May 28, 2024, 1:17 p.m. OK C++14 (GCC 6-32) TESTS 2 30 409600 800
263694499 rk0822 A June 2, 2024, 3:15 a.m. OK C++14 (GCC 6-32) TESTS 2 31 0 800
263614528 chanwh003 A June 1, 2024, 10:39 a.m. OK C++14 (GCC 6-32) TESTS 2 31 0 800
263613671 luogu_bot1 A June 1, 2024, 10:31 a.m. OK C++14 (GCC 6-32) TESTS 2 31 0 800
263401381 CNH_EzGame A May 31, 2024, 2:50 a.m. OK C++14 (GCC 6-32) TESTS 2 31 0 800
263636720 masaow A June 1, 2024, 1:38 p.m. OK C++17 (GCC 7-32) TESTS 2 15 0 800
263440509 chamansing74 A May 31, 2024, 9:06 a.m. OK C++17 (GCC 7-32) TESTS 2 15 0 800
263666365 anirudh.skumar.03 A June 1, 2024, 5:54 p.m. OK C++17 (GCC 7-32) TESTS 2 30 0 800
263648332 I_am_tony_stark A June 1, 2024, 3:19 p.m. OK C++17 (GCC 7-32) TESTS 2 30 0 800
263616367 Jevrii A June 1, 2024, 10:52 a.m. OK C++17 (GCC 7-32) TESTS 2 30 0 800
263605796 Terminator47 A June 1, 2024, 9:24 a.m. OK C++17 (GCC 7-32) TESTS 2 30 0 800
263418162 rubayet2027 A May 31, 2024, 6 a.m. OK C++17 (GCC 7-32) TESTS 2 30 0 800
263385205 farmpiggie A May 30, 2024, 8:35 p.m. OK C++17 (GCC 7-32) TESTS 2 30 0 800
263360632 KitijaK A May 30, 2024, 4:38 p.m. OK C++17 (GCC 7-32) TESTS 2 30 0 800
263231353 vjudge2 A May 30, 2024, 11:37 a.m. OK C++17 (GCC 7-32) TESTS 2 30 0 800
263680819 ShadowRainger A June 1, 2024, 8:59 p.m. OK C++20 (GCC 13-64) TESTS 2 15 0 800
263582108 zrl123456 A June 1, 2024, 6:07 a.m. OK C++20 (GCC 13-64) TESTS 2 30 0 800
263261322 Legend_dy A May 30, 2024, 2:12 p.m. OK C++20 (GCC 13-64) TESTS 2 30 0 800
263184883 MWarith A May 29, 2024, 9:02 p.m. OK C++20 (GCC 13-64) TESTS 2 30 0 800
263171514 NikoBaotic A May 29, 2024, 5:19 p.m. OK C++20 (GCC 13-64) TESTS 2 30 0 800
263155764 falsely A May 29, 2024, 2:26 p.m. OK C++20 (GCC 13-64) TESTS 2 30 0 800
263026904 gleb_kabanov A May 28, 2024, 2:42 p.m. OK C++20 (GCC 13-64) TESTS 2 30 0 800
262973067 htwantac A May 28, 2024, 7:18 a.m. OK C++20 (GCC 13-64) TESTS 2 30 0 800
262957991 shafinkun A May 28, 2024, 4:55 a.m. OK C++20 (GCC 13-64) TESTS 2 30 0 800
262901773 sanji333333 A May 27, 2024, 3:22 p.m. OK C++20 (GCC 13-64) TESTS 2 30 0 800
263257941 ducminh852005 A May 30, 2024, 1:45 p.m. OK GNU C11 TESTS 2 46 0 800
263255368 NGC6543 A May 30, 2024, 1:25 p.m. OK GNU C11 TESTS 2 46 0 800
263220609 suyureo A May 30, 2024, 10:15 a.m. OK GNU C11 TESTS 2 46 0 800
263219814 suyureo A May 30, 2024, 10:06 a.m. OK GNU C11 TESTS 2 46 0 800
262946214 Qinphy A May 28, 2024, 2:08 a.m. OK GNU C11 TESTS 2 46 102400 800
263667909 pragspuda A June 1, 2024, 6:08 p.m. OK GNU C11 TESTS 2 61 0 800
262949059 vibe08 A May 28, 2024, 2:58 a.m. OK GNU C11 TESTS 2 61 0 800
263398784 Arun_sujith A May 31, 2024, 2:04 a.m. OK GNU C11 TESTS 2 61 102400 800
263701302 Jeevan_sooriya A June 2, 2024, 5:10 a.m. OK GNU C11 TESTS 2 62 0 800
263671511 7emerka A June 1, 2024, 6:43 p.m. OK GNU C11 TESTS 2 62 0 800
263027898 Lockeder A May 28, 2024, 2:50 p.m. OK Go TESTS 2 78 716800 800
262645503 tranhieu11235 A May 26, 2024, 4:03 a.m. OK Go TESTS 2 78 819200 800
263584700 YeWeiQiang A June 1, 2024, 6:31 a.m. OK Go TESTS 2 108 716800 800
263432201 PURE2024 A May 31, 2024, 7:51 a.m. OK Go TESTS 2 109 716800 800
263104204 utsu_boy A May 29, 2024, 7:33 a.m. OK Go TESTS 2 124 614400 800
263257170 houseof A May 30, 2024, 1:39 p.m. OK Haskell TESTS 2 124 0 800
263407642 adi3008 A May 31, 2024, 4:15 a.m. OK Java 21 TESTS 2 155 0 800
263422763 x1uc A May 31, 2024, 6:37 a.m. OK Java 21 TESTS 2 171 614400 800
263100101 MiyawakiSakura A May 29, 2024, 7:03 a.m. OK Java 21 TESTS 2 186 512000 800
263381683 nirav96 A May 30, 2024, 7:39 p.m. OK Java 21 TESTS 2 187 0 800
262505677 supriya__9184 A May 25, 2024, 11:54 a.m. OK Java 21 TESTS 2 187 512000 800
263407753 Ttttb A May 31, 2024, 4:16 a.m. OK Java 21 TESTS 2 202 409600 800
263100337 2210030057 A May 29, 2024, 7:05 a.m. OK Java 21 TESTS 2 202 512000 800
262633269 nitish_0201 A May 26, 2024, 12:39 a.m. OK Java 21 TESTS 2 202 716800 800
263697890 lpychemistry A June 2, 2024, 4:17 a.m. OK Java 21 TESTS 2 217 0 800
262914966 TheCodingMathematician A May 27, 2024, 5:18 p.m. OK Java 21 TESTS 2 218 0 800
263232178 bkifhr6 A May 30, 2024, 11:43 a.m. OK Java 8 TESTS 2 108 0 800
262700701 vishal_2504 A May 26, 2024, 12:05 p.m. OK Java 8 TESTS 2 139 0 800
263600132 1-1-1 A June 1, 2024, 8:38 a.m. OK Java 8 TESTS 2 140 0 800
262507434 gautamdtua42003 A May 25, 2024, 12:10 p.m. OK Java 8 TESTS 2 140 0 800
263029440 190y A May 28, 2024, 3:03 p.m. OK Java 8 TESTS 2 156 0 800
263615531 devesh434 A June 1, 2024, 10:47 a.m. OK Java 8 TESTS 2 171 0 800
262842281 xielaopai A May 27, 2024, 7:22 a.m. OK Java 8 TESTS 2 171 0 800
263592556 maverick_575 A June 1, 2024, 7:35 a.m. OK Java 8 TESTS 2 202 0 800
262837186 jovialcode A May 27, 2024, 6:44 a.m. OK Java 8 TESTS 2 202 0 800
262818346 Mr_A A May 27, 2024, 3:28 a.m. OK Java 8 TESTS 2 202 0 800
263279984 omarsaifeldeen2000 A May 30, 2024, 2:45 p.m. OK JavaScript TESTS 2 77 2560000 800
263123099 Kay0 A May 29, 2024, 10:04 a.m. OK Kotlin 1.9 TESTS 2 171 102400 800
262770372 nesco A May 26, 2024, 4:09 p.m. OK Kotlin 1.9 TESTS 2 186 102400 800
262629689 michaelm12358 A May 25, 2024, 10:35 p.m. OK Node.js TESTS 2 264 6860800 800
263118330 noobstar9614 A May 29, 2024, 9:26 a.m. OK PyPy 3 TESTS 2 124 4198400 800
263016691 Ashutosh352 A May 28, 2024, 1:21 p.m. OK PyPy 3 TESTS 2 155 3891200 800
263016315 Ashutosh352 A May 28, 2024, 1:18 p.m. OK PyPy 3 TESTS 2 187 6451200 800
263016184 vinayakzutshi A May 28, 2024, 1:17 p.m. OK PyPy 3 TESTS 2 187 6451200 800
262780077 Maxi2721 A May 26, 2024, 4:48 p.m. OK PyPy 3 TESTS 2 217 5836800 800
262708813 DynammicProgrammer A May 26, 2024, 1:16 p.m. OK PyPy 3 TESTS 2 217 5836800 800
262807821 U_quokka A May 26, 2024, 11:16 p.m. OK PyPy 3 TESTS 2 218 5529600 800
263260961 Vishesh2006 A May 30, 2024, 2:09 p.m. OK PyPy 3 TESTS 2 218 5734400 800
262504259 gursimarsinghmiglani A May 25, 2024, 11:41 a.m. OK PyPy 3 TESTS 2 218 6246400 800
262755801 Communication A May 26, 2024, 3:26 p.m. OK PyPy 3 TESTS 2 234 5632000 800
262807327 NitroSpear A May 26, 2024, 11 p.m. OK PyPy 3-64 TESTS 2 92 3788800 800
262993590 kingkevindebruyne A May 28, 2024, 10:15 a.m. OK PyPy 3-64 TESTS 2 93 3788800 800
263620249 kinglykang A June 1, 2024, 11:20 a.m. OK PyPy 3-64 TESTS 2 93 4403200 800
262977536 2024_how_to_practice A May 28, 2024, 7:56 a.m. OK PyPy 3-64 TESTS 2 108 3686400 800
262977168 ffstav A May 28, 2024, 7:53 a.m. OK PyPy 3-64 TESTS 2 108 4403200 800
262921245 kibr A May 27, 2024, 6:16 p.m. OK PyPy 3-64 TESTS 2 108 4505600 800
262824467 Taymyr A May 27, 2024, 4:58 a.m. OK PyPy 3-64 TESTS 2 108 4710400 800
262961539 MengxinWalkingGrass A May 28, 2024, 5:32 a.m. OK PyPy 3-64 TESTS 2 109 3788800 800
263416335 rq170 A May 31, 2024, 5:43 a.m. OK PyPy 3-64 TESTS 2 109 4300800 800
263101204 Scoosh72 A May 29, 2024, 7:11 a.m. OK PyPy 3-64 TESTS 2 109 4403200 800
262847540 MdHasibAskari A May 27, 2024, 8:02 a.m. OK Python 3 TESTS 2 61 0 800
262971099 0mkar A May 28, 2024, 7 a.m. OK Python 3 TESTS 2 61 102400 800
263107712 justmega2510 A May 29, 2024, 8 a.m. OK Python 3 TESTS 2 61 512000 800
263371268 Raven_03 A May 30, 2024, 5:48 p.m. OK Python 3 TESTS 2 62 0 800
263143389 InSlayer A May 29, 2024, 12:52 p.m. OK Python 3 TESTS 2 62 0 800
262922119 Oreki. A May 27, 2024, 6:25 p.m. OK Python 3 TESTS 2 62 307200 800
262821213 klu2100031976 A May 27, 2024, 4:13 a.m. OK Python 3 TESTS 2 62 307200 800
263628619 haruk A June 1, 2024, 12:26 p.m. OK Python 3 TESTS 2 77 0 800
263544543 yohannes2221 A May 31, 2024, 7:27 p.m. OK Python 3 TESTS 2 77 0 800
263415151 MikeDeeper A May 31, 2024, 5:32 a.m. OK Python 3 TESTS 2 77 0 800
262789199 Eleyond A May 26, 2024, 6:13 p.m. OK Rust 2021 TESTS 2 30 0 800
263496875 jeffzh4ng A May 31, 2024, 12:28 p.m. OK Rust 2021 TESTS 2 46 0 800
263082160 Album A May 29, 2024, 3:36 a.m. OK Rust 2021 TESTS 2 46 0 800
263670460 snamy520 A June 1, 2024, 6:31 p.m. OK Rust 2021 TESTS 2 61 0 800

remove filters

Back to search problems