Codeforces Round 952 (Div. 4)

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
1985 Codeforces Round 952 (Div. 4) FINISHED False 9000 13706699 June 11, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 19930 ) E Secret Box PROGRAMMING brute force combinatorics math

B'Ntarsis has a box B with side lengths x , y , and z . It lies in the 3D coordinate plane, extending from (0,0,0) to (x,y,z) . Ntarsis has a secret box S . He wants to choose its dimensions such that all side lengths are positive integers, and the volume of S is k . He can place S somewhere within B such that: S is magical, so when placed at an integer location inside B , it will not fall to the ground. Among all possible ways to choose the dimensions of S , determine the maximum number of distinct locations he can choose to place his secret box S inside B . Ntarsis does not rotate S once its side lengths are selected. The first line consists of an integer t , the number of test cases ( 1 <= q t <= q 2000 ). The description of the test cases follows. The first and only line of each test case contains four integers x, y, z and k ( 1 <= q x, y, z <= q 2000 , 1 <= q k <= q x cdot y cdot z ). It is guaranteed the sum of all x , sum of all y , and sum of all z do not exceed 2000 over all test cases. Note that k may not fit in a standard 32-bit integer data type. For each test case, output the answer as an integer on a new line. If there is no way to select the dimensions of S so it fits in B , output 0 . For the first test case, it is optimal to choose S with side lengths 2 , 2 , and 2 , which has a volume of 2 cdot 2 cdot 2 = 8 . It can be shown there are 8 ways to put S inside B . The coordinate with the least x , y , and z values for each possible arrangement of S are: The arrangement of S with a coordinate of (0, 0, 0) is depicted below: For the second test case, S with side lengths 2 , 3 , and 3 are optimal. '...

Tutorials

Codeforces Round 952 (Div. 4) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
265424312 nishantagl E June 12, 2024, 2:02 a.m. OK C++14 (GCC 6-32) TESTS 8 46 0
265407050 Atom01 E June 11, 2024, 8:06 p.m. OK C++14 (GCC 6-32) TESTS 8 46 0
265401975 vishal2045ks E June 11, 2024, 7:05 p.m. OK C++14 (GCC 6-32) TESTS 8 46 0
265394544 fareedaragab E June 11, 2024, 5:57 p.m. OK C++14 (GCC 6-32) TESTS 8 46 0
265409488 sreekarvj_7 E June 11, 2024, 8:31 p.m. OK C++14 (GCC 6-32) TESTS 8 46 4198400
265395646 jayaprakash11 E June 11, 2024, 6:06 p.m. OK C++14 (GCC 6-32) TESTS 8 46 4198400
265441721 dudheg E June 12, 2024, 5:40 a.m. OK C++14 (GCC 6-32) TESTS 8 46 4198400
265433210 zykxxx E June 12, 2024, 4:05 a.m. OK C++14 (GCC 6-32) TESTS 8 46 4198400
265426445 NoOb_MASTER07 E June 12, 2024, 2:35 a.m. OK C++14 (GCC 6-32) TESTS 8 46 4198400
265443560 Morvolzz E June 12, 2024, 5:57 a.m. OK C++14 (GCC 6-32) TESTS 8 61 0
265401008 abhisheky969 E June 11, 2024, 6:56 p.m. OK C++17 (GCC 7-32) TESTS 8 31 0
265434216 Surrender_submission E June 12, 2024, 4:17 a.m. OK C++17 (GCC 7-32) TESTS 8 31 4198400
265442537 wildbirb E June 12, 2024, 5:48 a.m. OK C++17 (GCC 7-32) TESTS 8 46 0
265443698 yahiamahmoood333 E June 12, 2024, 5:58 a.m. OK C++17 (GCC 7-32) TESTS 8 46 0
265443645 Sadvik_Meda E June 12, 2024, 5:57 a.m. OK C++17 (GCC 7-32) TESTS 8 46 0
265443557 Shubhangeya E June 12, 2024, 5:57 a.m. OK C++17 (GCC 7-32) TESTS 8 46 0
265443237 Psi_Reborn E June 12, 2024, 5:54 a.m. OK C++17 (GCC 7-32) TESTS 8 46 0
265443054 cheemu E June 12, 2024, 5:52 a.m. OK C++17 (GCC 7-32) TESTS 8 46 0
265442758 boostwar21 E June 12, 2024, 5:50 a.m. OK C++17 (GCC 7-32) TESTS 8 46 0
265442030 lucky_013 E June 12, 2024, 5:43 a.m. OK C++17 (GCC 7-32) TESTS 8 46 0
265425684 Rigle E June 12, 2024, 2:24 a.m. OK C++20 (GCC 13-64) TESTS 8 31 102400
265442637 Parth_27_9 E June 12, 2024, 5:49 a.m. OK C++20 (GCC 13-64) TESTS 8 46 0
265442428 NAce E June 12, 2024, 5:47 a.m. OK C++20 (GCC 13-64) TESTS 8 46 0
265441875 ItsBufu E June 12, 2024, 5:41 a.m. OK C++20 (GCC 13-64) TESTS 8 46 0
265440579 ksehgal.0809 E June 12, 2024, 5:29 a.m. OK C++20 (GCC 13-64) TESTS 8 46 0
265440338 chandrahas7c E June 12, 2024, 5:26 a.m. OK C++20 (GCC 13-64) TESTS 8 46 0
265440090 zhanhe E June 12, 2024, 5:24 a.m. OK C++20 (GCC 13-64) TESTS 8 46 0
265439317 hemlatasachin E June 12, 2024, 5:16 a.m. OK C++20 (GCC 13-64) TESTS 8 46 0
265439075 ChandrashekharD E June 12, 2024, 5:14 a.m. OK C++20 (GCC 13-64) TESTS 8 46 0
265439152 grindingManiacally E June 12, 2024, 5:15 a.m. OK C++20 (GCC 13-64) TESTS 8 46 0
265435084 bluemegane E June 12, 2024, 4:28 a.m. OK C# 8 TESTS 8 124 716800
265399806 NenadDapic E June 11, 2024, 6:44 p.m. OK FPC TESTS 8 62 0
265435934 xylu E June 12, 2024, 4:37 a.m. OK Go TESTS 8 46 0
265398824 swatishivam23 E June 11, 2024, 6:33 p.m. OK Java 21 TESTS 8 234 102400
265415737 Eslam_Ahmed E June 11, 2024, 10:33 p.m. OK Java 21 TESTS 8 234 614400
265409973 OsamaNassar E June 11, 2024, 8:38 p.m. OK Java 21 TESTS 8 249 204800
265440237 202203011 E June 12, 2024, 5:25 a.m. OK Java 21 TESTS 8 249 614400
265396347 Manjot1151 E June 11, 2024, 6:11 p.m. OK Java 21 TESTS 8 249 614400
265417938 Johnes_01 E June 11, 2024, 11:32 p.m. OK Java 21 TESTS 8 249 1024000
265396387 _ryan18_ E June 11, 2024, 6:12 p.m. OK Java 21 TESTS 8 280 307200
265426956 echo-hope E June 12, 2024, 2:42 a.m. OK Java 21 TESTS 8 280 307200
265428519 Harsh_Agrawal_12 E June 12, 2024, 3:03 a.m. OK Java 21 TESTS 8 280 614400
265417873 xorfftdp E June 11, 2024, 11:30 p.m. OK Java 21 TESTS 8 280 716800
265439210 coderman2004 E June 12, 2024, 5:15 a.m. OK Java 8 TESTS 8 156 0
265436853 lavender_me E June 12, 2024, 4:49 a.m. OK Java 8 TESTS 8 171 0
265415696 Eslam_Ahmed E June 11, 2024, 10:32 p.m. OK Java 8 TESTS 8 171 0
265396829 abhayrajnegi0416 E June 11, 2024, 6:15 p.m. OK Java 8 TESTS 8 171 0
265433988 desaizeeshan22 E June 12, 2024, 4:14 a.m. OK Java 8 TESTS 8 187 0
265397246 TheBoogeyman_429 E June 11, 2024, 6:19 p.m. OK Java 8 TESTS 8 187 0
265438914 Obitouuti18 E June 12, 2024, 5:12 a.m. OK Java 8 TESTS 8 218 0
265431116 ashishsah255 E June 12, 2024, 3:38 a.m. OK Java 8 TESTS 8 218 0
265398020 nesco E June 11, 2024, 6:26 p.m. OK Kotlin 1.7 TESTS 8 343 409600
265403065 gendu-Z E June 11, 2024, 7:18 p.m. OK PyPy 2 TESTS 8 202 1740800
265397163 ckkkk E June 11, 2024, 6:18 p.m. OK PyPy 3 TESTS 8 187 4403200
265397211 Shubh_ag E June 11, 2024, 6:18 p.m. OK PyPy 3 TESTS 8 202 6553600
265406859 perfect_dash E June 11, 2024, 8:03 p.m. OK PyPy 3 TESTS 8 311 4300800
265403158 Kefrov E June 11, 2024, 7:19 p.m. OK PyPy 3 TESTS 8 406 4505600
265404814 DAGGERWRATH E June 11, 2024, 7:38 p.m. OK PyPy 3 TESTS 8 499 4505600
265404827 gardengnome E June 11, 2024, 7:38 p.m. OK PyPy 3-64 TESTS 8 93 2048000
265416120 mgoldy925 E June 11, 2024, 10:44 p.m. OK PyPy 3-64 TESTS 8 93 3072000
265398486 devjain1028 E June 11, 2024, 6:30 p.m. OK PyPy 3-64 TESTS 8 108 2048000
265422689 cybsbbb E June 12, 2024, 1:29 a.m. OK PyPy 3-64 TESTS 8 108 3686400
265433560 callmeabhi E June 12, 2024, 4:09 a.m. OK PyPy 3-64 TESTS 8 109 2252800
265440876 DJ_I E June 12, 2024, 5:32 a.m. OK PyPy 3-64 TESTS 8 109 3276800
265432060 kahaan_ E June 12, 2024, 3:50 a.m. OK PyPy 3-64 TESTS 8 109 3481600
265395188 FTGUPP E June 11, 2024, 6:02 p.m. OK PyPy 3-64 TESTS 8 124 2048000
265410577 Om_Singh_ E June 11, 2024, 8:47 p.m. OK PyPy 3-64 TESTS 8 124 2150400
265397861 aayush249 E June 11, 2024, 6:24 p.m. OK PyPy 3-64 TESTS 8 124 2867200
265403018 gendu-Z E June 11, 2024, 7:17 p.m. OK Python 2 TESTS 8 874 0
265439089 IITDG-CODER E June 12, 2024, 5:14 a.m. OK Python 3 TESTS 8 93 0
265440753 eugalt E June 12, 2024, 5:31 a.m. OK Python 3 TESTS 8 108 1024000
265397565 lollasrichandra9 E June 11, 2024, 6:21 p.m. OK Python 3 TESTS 8 109 0
265440835 DhruvG0858 E June 12, 2024, 5:31 a.m. OK Python 3 TESTS 8 171 0
265401539 saif_reyad E June 11, 2024, 7:01 p.m. OK Python 3 TESTS 8 171 0
265400967 i.am.aryanraj E June 11, 2024, 6:55 p.m. OK Python 3 TESTS 8 281 0
265440955 eugalt E June 12, 2024, 5:32 a.m. OK Python 3 TESTS 8 359 0
265421293 eugalt E June 12, 2024, 12:57 a.m. OK Python 3 TESTS 8 437 0
265410628 Om_Singh_ E June 11, 2024, 8:48 p.m. OK Python 3 TESTS 8 452 0
265442854 Utkarsh.iitkgp E June 12, 2024, 5:50 a.m. OK Python 3 TESTS 8 499 0
265442201 10000 E June 12, 2024, 5:44 a.m. OK Rust 2021 TESTS 8 46 0
265402172 vstiff E June 11, 2024, 7:08 p.m. OK Rust 2021 TESTS 8 77 0

remove filters

Back to search problems