Playrix Codescapes Cup (Codeforces Round 413, rated, Div. 1 + 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
799 Playrix Codescapes Cup (Codeforces Round 413, rated, Div. 1 + Div. 2) FINISHED False 7200 243008723 May 11, 2017, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2073 ) D Field expansion PROGRAMMING brute force dp meet-in-the-middle 2000

B"In one of the games Arkady is fond of the game process happens on a rectangular field. In the game process Arkady can buy extensions for his field, each extension enlarges one of the field sizes in a particular number of times. Formally, there are n extensions, the i-th of them multiplies the width or the length (by Arkady's choice) by ai. Each extension can't be used more than once, the extensions can be used in any order. Now Arkady's field has size h xe2 x80 x89 xc3 x97 xe2 x80 x89w. He wants to enlarge it so that it is possible to place a rectangle of size a xe2 x80 x89 xc3 x97 xe2 x80 x89b on it (along the width or along the length, with sides parallel to the field sides). Find the minimum number of extensions needed to reach Arkady's goal. The first line contains five integers a, b, h, w and n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89a, xe2 x80 x89b, xe2 x80 x89h, xe2 x80 x89w, xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100 xe2 x80 x89000) -- the sizes of the rectangle needed to be placed, the initial sizes of the field and the number of available extensions. The second line contains n integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100 xe2 x80 x89000), where ai equals the integer a side multiplies by when the i-th extension is applied. Print the minimum number of extensions needed to reach Arkady's goal. If it is not possible to place the rectangle on the field with all extensions, print -1. If the rectangle can be placed on the initial field, print 0. In the first example it is enough to use any of the extensions available. For example, we can enlarge h in 5 times using the second extension. Then h becomes equal 10 and it is now possible to place the rectangle on the field. "...

Tutorials

Playrix Codescapes Cup Problems Analysis

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
27303539 FalseMirror D May 23, 2017, 2:47 p.m. OK D TESTS 103 31 4198400 2000
27029686 SirNickolas D May 11, 2017, 4:50 p.m. OK D TESTS 103 46 4710400 2000
27550299 slavik228 D June 3, 2017, 6:27 p.m. OK FPC TESTS 103 31 2457600 2000
27031784 Holidin D May 11, 2017, 5:05 p.m. OK FPC TESTS 103 109 409600 2000
34257662 AsahiKasugano D Jan. 17, 2018, 4:56 p.m. OK FPC TESTS 103 327 11059200 2000
27188311 supy D May 18, 2017, 12:37 a.m. OK GNU C++ TESTS 103 15 204800 2000
27171027 L1937434926 D May 17, 2017, 2:34 a.m. OK GNU C++ TESTS 103 15 409600 2000
27046679 yveh1999 D May 12, 2017, 4:38 a.m. OK GNU C++ TESTS 103 15 409600 2000
27032153 FateVawait D May 11, 2017, 5:08 p.m. OK GNU C++ TESTS 103 15 409600 2000
27025629 wzj152501 D May 11, 2017, 4:32 p.m. OK GNU C++ TESTS 103 15 409600 2000
27404485 cbhcbh D May 28, 2017, 8:30 a.m. OK GNU C++ TESTS 103 15 512000 2000
27032785 zyding D May 11, 2017, 5:13 p.m. OK GNU C++ TESTS 103 15 819200 2000
31555401 4qqqqqqqqqqq D Oct. 21, 2017, 7:35 a.m. OK GNU C++ TESTS 103 15 2867200 2000
27715164 Saveng D June 11, 2017, 5:08 a.m. OK GNU C++ TESTS 103 30 409600 2000
27662139 __stdcall D June 8, 2017, 3:16 a.m. OK GNU C++ TESTS 103 30 409600 2000
27026178 maksay D May 11, 2017, 4:36 p.m. OK GNU C++11 TESTS 103 15 0 2000
27071498 WickedGame D May 13, 2017, 8:33 a.m. OK GNU C++11 TESTS 103 15 204800 2000
27056208 snowflake D May 12, 2017, 2:18 p.m. OK GNU C++11 TESTS 103 15 204800 2000
27048271 smilesum D May 12, 2017, 6:40 a.m. OK GNU C++11 TESTS 103 15 204800 2000
27024701 rowdark D May 11, 2017, 4:25 p.m. OK GNU C++11 TESTS 103 15 204800 2000
27088392 doublechar D May 13, 2017, 12:15 p.m. OK GNU C++11 TESTS 103 15 409600 2000
27057708 T0RRES D May 12, 2017, 3:39 p.m. OK GNU C++11 TESTS 103 15 409600 2000
27056184 kakjapan31 D May 12, 2017, 2:17 p.m. OK GNU C++11 TESTS 103 15 409600 2000
27055270 tapasjain D May 12, 2017, 1:29 p.m. OK GNU C++11 TESTS 103 15 409600 2000
27049148 RETURNCZQ D May 12, 2017, 7:39 a.m. OK GNU C++11 TESTS 103 15 409600 2000
27041777 sgtlaugh D May 11, 2017, 8:38 p.m. OK GNU C++14 TESTS 103 15 409600 2000
27097757 tanujWF D May 13, 2017, 10:02 p.m. OK GNU C++14 TESTS 103 15 614400 2000
27094185 P___ D May 13, 2017, 5:01 p.m. OK GNU C++14 TESTS 103 15 614400 2000
27025451 yancouto D May 11, 2017, 4:31 p.m. OK GNU C++14 TESTS 103 15 921600 2000
27122872 Flyce D May 15, 2017, 1:45 p.m. OK GNU C++14 TESTS 103 15 1638400 2000
27057706 I_See_You D May 12, 2017, 3:39 p.m. OK GNU C++14 TESTS 103 15 1638400 2000
27029403 femsub_a D May 11, 2017, 4:48 p.m. OK GNU C++14 TESTS 103 15 1638400 2000
28780788 monk_z D July 22, 2017, 2:18 p.m. OK GNU C++14 TESTS 103 15 2355200 2000
27035599 sjq D May 11, 2017, 5:32 p.m. OK GNU C++14 TESTS 103 30 102400 2000
27033291 rzmn D May 11, 2017, 5:16 p.m. OK GNU C++14 TESTS 103 30 102400 2000
68051125 Phortox D Jan. 1, 2020, 6:54 p.m. OK GNU C++17 TESTS 103 31 409600 2000
64179037 tfg D Nov. 3, 2019, 10:38 p.m. OK GNU C++17 TESTS 103 31 512000 2000
55736685 shefin.cse16 D June 19, 2019, 4:38 a.m. OK GNU C++17 TESTS 103 31 819200 2000
67302142 yotin D Dec. 20, 2019, 7:13 p.m. OK GNU C++17 TESTS 103 31 1638400 2000
68941837 dars D Jan. 16, 2020, 2:40 p.m. OK GNU C++17 TESTS 103 31 7987200 2000
51803022 chinmay0906 D March 24, 2019, 7:15 p.m. OK GNU C++17 TESTS 103 31 8192000 2000
37520874 Osama_Alkhodairy D April 21, 2018, 5:55 p.m. OK GNU C++17 TESTS 103 31 18432000 2000
69180951 YJU D Jan. 20, 2020, 10:07 a.m. OK GNU C++17 TESTS 103 46 409600 2000
54735258 ZhihuiLiu D May 28, 2019, 4:27 a.m. OK GNU C++17 TESTS 103 46 409600 2000
40812753 crathva D July 26, 2018, 6:27 p.m. OK GNU C++17 TESTS 103 46 409600 2000
27031203 Martynas D May 11, 2017, 5:01 p.m. OK Go TESTS 103 15 18022400 2000
67303316 vaibhavpulastya D Dec. 20, 2019, 7:45 p.m. OK Java 11 TESTS 103 218 0 2000
27100438 RP_9 D May 14, 2017, 4:24 a.m. OK Java 8 TESTS 103 109 0 2000
27066849 hama-du D May 13, 2017, 1:23 a.m. OK Java 8 TESTS 103 109 0 2000
27434783 parth_1 D May 29, 2017, 7:06 p.m. OK Java 8 TESTS 103 124 0 2000
27111512 ChrisWu D May 14, 2017, 6:57 p.m. OK Java 8 TESTS 103 124 0 2000
27071950 U_Square D May 13, 2017, 9:07 a.m. OK Java 8 TESTS 103 124 0 2000
27057639 AhmedSoliman D May 12, 2017, 3:36 p.m. OK Java 8 TESTS 103 124 0 2000
27043304 ewan D May 11, 2017, 10:56 p.m. OK Java 8 TESTS 103 124 0 2000
27043085 pmarecki D May 11, 2017, 10:30 p.m. OK Java 8 TESTS 103 124 0 2000
27041595 shavkat D May 11, 2017, 8:26 p.m. OK Java 8 TESTS 103 124 0 2000
27039269 EmThoDau D May 11, 2017, 6:51 p.m. OK Java 8 TESTS 103 124 0 2000
27482191 Kvark161 D June 1, 2017, 10:15 a.m. OK Kotlin TESTS 103 327 21299200 2000
27038737 chokudai D May 11, 2017, 6:41 p.m. OK Mono C# TESTS 103 62 3993600 2000
27041334 peregrinus D May 11, 2017, 8:11 p.m. OK Mono C# TESTS 103 78 11468800 2000
27029338 camypaper D May 11, 2017, 4:48 p.m. OK MS C# TESTS 103 61 921600 2000
27046625 og.kostya D May 12, 2017, 4:33 a.m. OK MS C# TESTS 103 62 2867200 2000
27023908 azukun D May 11, 2017, 4:20 p.m. OK MS C# TESTS 103 62 7577600 2000
27062647 lionvs13 D May 12, 2017, 9:54 p.m. OK MS C# TESTS 103 62 8396800 2000
27049354 chokudai D May 12, 2017, 7:52 a.m. OK MS C# TESTS 103 77 3993600 2000
27032183 Neverauskas D May 11, 2017, 5:08 p.m. OK MS C# TESTS 103 77 6963200 2000
27062677 lionvs13 D May 12, 2017, 9:58 p.m. OK MS C# TESTS 103 77 8294400 2000
27041299 koyaaniqatsi D May 11, 2017, 8:09 p.m. OK MS C# TESTS 103 93 7884800 2000
27050370 fr0st D May 12, 2017, 8:58 a.m. OK MS C# TESTS 103 93 8192000 2000
27136604 zhymaoiing D May 15, 2017, 4:40 p.m. OK MS C# TESTS 103 467 15872000 2000
27024634 Perforator D May 11, 2017, 4:25 p.m. OK MS C++ TESTS 103 15 512000 2000
27031192 NVAL D May 11, 2017, 5:01 p.m. OK MS C++ TESTS 103 30 204800 2000
27037439 RCG D May 11, 2017, 5:33 p.m. OK MS C++ TESTS 103 30 614400 2000
27039174 DimonK D May 11, 2017, 6:49 p.m. OK MS C++ TESTS 103 31 7884800 2000
27110143 batya_322 D May 14, 2017, 4:51 p.m. OK MS C++ TESTS 103 46 102400 2000
27041004 Ancient_mage D May 11, 2017, 7:53 p.m. OK MS C++ TESTS 103 46 614400 2000
27111216 batya_322 D May 14, 2017, 6:31 p.m. OK MS C++ TESTS 103 46 921600 2000
27034588 DimonK D May 11, 2017, 5:26 p.m. OK MS C++ TESTS 103 46 7884800 2000
42756657 vjudge1 D Sept. 11, 2018, 7:40 a.m. OK MS C++ TESTS 103 46 31539200 2000
27059884 _mactep D May 12, 2017, 5:49 p.m. OK MS C++ TESTS 103 61 819200 2000
41544314 Onesh0t D Aug. 13, 2018, 2:59 a.m. OK PyPy 2 TESTS 103 234 5017600 2000
28199529 BenL D July 1, 2017, 10:56 p.m. OK PyPy 3 TESTS 103 139 28672000 2000
27169731 denny_sem D May 16, 2017, 11:24 p.m. OK PyPy 3 TESTS 103 171 7168000 2000
32780649 dthung1602 D Nov. 29, 2017, 12:43 p.m. OK Python 2 TESTS 103 93 5836800 2000
27053292 artyom.fedosov D May 12, 2017, 11:55 a.m. OK Python 2 TESTS 103 124 1638400 2000
41130036 Ali_Pi D Aug. 2, 2018, 4:45 p.m. OK Python 2 TESTS 103 218 2969600 2000
27029831 pedrosorio D May 11, 2017, 4:50 p.m. OK Python 2 TESTS 103 312 1945600 2000
27057373 nwi D May 12, 2017, 3:21 p.m. OK Python 2 TESTS 103 920 1433600 2000
27278877 wujuihsuan2016 D May 22, 2017, 7:31 a.m. OK Python 3 TESTS 103 78 2764800 2000
33873569 yugle7 D Jan. 2, 2018, 8:51 p.m. OK Python 3 TESTS 103 93 7270400 2000
27038712 ---------- D May 11, 2017, 6:41 p.m. OK Python 3 TESTS 103 124 1945600 2000
27034917 kleninz D May 11, 2017, 5:28 p.m. OK Python 3 TESTS 103 826 2150400 2000
27044041 kobae964 D May 12, 2017, 12:29 a.m. OK Rust TESTS 103 46 107520000 2000
27030834 limed D May 11, 2017, 4:58 p.m. OK Scala TESTS 103 311 0 2000

remove filters

Back to search problems