Codeforces Round 257 (Div. 1)

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
449 Codeforces Round 257 (Div. 1) FINISHED False 7200 326048399 July 19, 2014, 1 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3951 ) A Jzzhu and Chocolate PROGRAMMING greedy math 1700

B"Jzzhu has a big rectangular chocolate bar that consists of n xe2 x80 x89 xc3 x97 xe2 x80 x89m unit squares. He wants to cut this bar exactly k times. Each cut must meet the following requirements: The picture below shows a possible way to cut a 5 xe2 x80 x89 xc3 x97 xe2 x80 x896 chocolate for 5 times. Imagine Jzzhu have made k cuts and the big chocolate is splitted into several pieces. Consider the smallest (by area) piece of the chocolate, Jzzhu wants this piece to be as large as possible. What is the maximum possible area of smallest piece he can get with exactly k cuts? The area of a chocolate piece is the number of unit squares in it. A single line contains three integers n, xe2 x80 x89m, xe2 x80 x89k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109; 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7109). Output a single integer representing the answer. If it is impossible to cut the big chocolate k times, print -1. In the first sample, Jzzhu can cut the chocolate following the picture below: In the second sample the optimal division looks like this: In the third sample, it's impossible to cut a 2 xe2 x80 x89 xc3 x97 xe2 x80 x893 chocolate 4 times."...

Tutorials

Codeforces Round #257 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
50494767 rr_ A Feb. 25, 2019, 2:43 p.m. OK D TESTS 92 31 0 1700
7355204 hos.lyric A Aug. 5, 2014, 6:08 p.m. OK D TESTS 92 31 1433600 1700
7353989 hos.lyric A Aug. 5, 2014, 4:21 p.m. OK D TESTS 92 31 1433600 1700
7168371 Gassa A July 19, 2014, 2:14 p.m. OK D TESTS 92 46 0 1700
7175384 ruban A July 19, 2014, 3:55 p.m. OK Delphi TESTS 92 15 0 1700
7177341 Misha100896 A July 19, 2014, 5 p.m. OK Delphi TESTS 92 31 102400 1700
7177329 Misha100896 A July 19, 2014, 4:59 p.m. OK Delphi TESTS 92 46 102400 1700
7187312 graceoflives A July 20, 2014, 2:47 p.m. OK FPC TESTS 92 15 0 1700
7434349 BenderRodriguez A Aug. 12, 2014, 11:55 a.m. OK FPC TESTS 92 15 0 1700
7293460 AllCatsAreBeautiful A July 30, 2014, 2:10 p.m. OK FPC TESTS 92 15 102400 1700
7186150 GiannisAntetokounmpo A July 20, 2014, 12:19 p.m. OK FPC TESTS 92 30 0 1700
31553154 simoncatcity A Oct. 21, 2017, 6:15 a.m. OK FPC TESTS 92 30 1638400 1700
42668136 chaorenhaha A Sept. 8, 2018, 9:15 a.m. OK FPC TESTS 92 31 0 1700
42330611 chaorenhaha A Sept. 1, 2018, 9:38 a.m. OK FPC TESTS 92 31 0 1700
7542678 Mayyy A Aug. 21, 2014, 11:19 a.m. OK FPC TESTS 92 31 0 1700
7433639 BenderRodriguez A Aug. 12, 2014, 10:02 a.m. OK FPC TESTS 92 31 0 1700
7183148 DaibaNana A July 20, 2014, 4:26 a.m. OK FPC TESTS 92 31 0 1700
8059067 VanillaWind A Oct. 2, 2014, 2:14 p.m. OK GNU C TESTS 92 15 0 1700
20675659 pratik0509 A Sept. 17, 2016, 7:50 a.m. OK GNU C TESTS 92 15 0 1700
7979629 phfask A Sept. 27, 2014, 4:24 a.m. OK GNU C TESTS 92 15 0 1700
7810643 drs95 A Sept. 16, 2014, 3:34 p.m. OK GNU C TESTS 92 15 0 1700
7193736 SpringSpark A July 21, 2014, 11:13 a.m. OK GNU C TESTS 92 15 0 1700
27622477 JoeBlow A June 6, 2017, 10:35 p.m. OK GNU C TESTS 92 30 0 1700
7181751 crccw A July 20, 2014, 2:15 a.m. OK GNU C TESTS 92 30 0 1700
11140207 ving.xia A May 19, 2015, 3:52 a.m. OK GNU C TESTS 92 31 0 1700
10040383 DatTenNayChoNgan A Feb. 27, 2015, 5:39 a.m. OK GNU C TESTS 92 31 0 1700
9446580 ziedom A Jan. 16, 2015, 10:02 p.m. OK GNU C TESTS 92 31 0 1700
29646330 vjudge2 A Aug. 21, 2017, 2:57 p.m. OK GNU C++ TESTS 92 15 0 1700
29646000 vjudge3 A Aug. 21, 2017, 2:36 p.m. OK GNU C++ TESTS 92 15 0 1700
29645606 vjudge2 A Aug. 21, 2017, 2:18 p.m. OK GNU C++ TESTS 92 15 0 1700
29642815 vjudge4 A Aug. 21, 2017, 12:02 p.m. OK GNU C++ TESTS 92 15 0 1700
29642671 vjudge3 A Aug. 21, 2017, 11:55 a.m. OK GNU C++ TESTS 92 15 0 1700
29598848 Ahmed_Morsy A Aug. 19, 2017, 1:02 p.m. OK GNU C++ TESTS 92 15 0 1700
27707121 rTraining1997 A June 10, 2017, 1:28 p.m. OK GNU C++ TESTS 92 15 0 1700
22177375 vjudge3 A Nov. 12, 2016, 12:05 p.m. OK GNU C++ TESTS 92 15 0 1700
22125889 yusufsholeh A Nov. 9, 2016, 8:15 a.m. OK GNU C++ TESTS 92 15 0 1700
22034006 iamqzh A Nov. 4, 2016, 12:28 p.m. OK GNU C++ TESTS 92 15 0 1700
8953090 JohStraat A Dec. 3, 2014, 1:42 p.m. OK GNU C++0x TESTS 92 15 0 1700
9949669 JafarBM A Feb. 21, 2015, 3:18 p.m. OK GNU C++0x TESTS 92 15 0 1700
9153620 T0RRES A Dec. 16, 2014, 4:13 p.m. OK GNU C++0x TESTS 92 15 0 1700
8136404 mgemaakbar A Oct. 8, 2014, 4:58 a.m. OK GNU C++0x TESTS 92 15 0 1700
8026812 IcyGirl A Sept. 29, 2014, 2:50 p.m. OK GNU C++0x TESTS 92 15 0 1700
7929721 desert97 A Sept. 23, 2014, 5:39 p.m. OK GNU C++0x TESTS 92 15 0 1700
7864050 softmob A Sept. 20, 2014, 8:51 a.m. OK GNU C++0x TESTS 92 15 0 1700
7728455 piob A Sept. 9, 2014, 1:17 p.m. OK GNU C++0x TESTS 92 15 0 1700
7615160 RealEyes A Aug. 28, 2014, 4:26 p.m. OK GNU C++0x TESTS 92 15 0 1700
7551730 sjq A Aug. 22, 2014, 11:17 a.m. OK GNU C++0x TESTS 92 15 0 1700
57911742 rainboy A July 28, 2019, 8:44 p.m. OK GNU C11 TESTS 92 31 0 1700
27732005 quarks A June 12, 2017, 6:13 a.m. OK GNU C++11 TESTS 92 15 0 1700
26965528 Deathly_Hallows A May 8, 2017, 11:22 p.m. OK GNU C++11 TESTS 92 15 0 1700
26922690 vjudge5 A May 7, 2017, 11:52 a.m. OK GNU C++11 TESTS 92 15 0 1700
26920060 zzhzz A May 7, 2017, 9:16 a.m. OK GNU C++11 TESTS 92 15 0 1700
29646218 vjudge4 A Aug. 21, 2017, 2:50 p.m. OK GNU C++11 TESTS 92 15 0 1700
22282044 lajiniunai A Nov. 17, 2016, 6:56 a.m. OK GNU C++11 TESTS 92 15 0 1700
22125994 DigiM A Nov. 9, 2016, 8:24 a.m. OK GNU C++11 TESTS 92 15 0 1700
20947060 meshi A Sept. 27, 2016, 1:26 p.m. OK GNU C++11 TESTS 92 15 0 1700
27732275 Dr.Dendro A June 12, 2017, 6:32 a.m. OK GNU C++11 TESTS 92 15 0 1700
27738396 bigcrunch A June 12, 2017, 1:12 p.m. OK GNU C++11 TESTS 92 15 0 1700
30100300 I-Love-Islam A Sept. 5, 2017, 1:11 p.m. OK GNU C++14 TESTS 92 15 0 1700
32002425 IM7MDHaMdYI A Nov. 3, 2017, 9:03 a.m. OK GNU C++14 TESTS 92 15 0 1700
31962310 NahlaAfifi A Nov. 1, 2017, 8:17 p.m. OK GNU C++14 TESTS 92 15 0 1700
31262851 FallDream A Oct. 13, 2017, 1:10 a.m. OK GNU C++14 TESTS 92 15 0 1700
30952057 conquistador3 A Oct. 2, 2017, 7:31 p.m. OK GNU C++14 TESTS 92 15 0 1700
30815962 The_Learners A Sept. 28, 2017, 8:59 p.m. OK GNU C++14 TESTS 92 15 0 1700
30191626 Riad.IIT7 A Sept. 7, 2017, 10:26 p.m. OK GNU C++14 TESTS 92 15 0 1700
29693007 KhaledJU A Aug. 22, 2017, 8:20 p.m. OK GNU C++14 TESTS 92 15 0 1700
29693002 wjubeh A Aug. 22, 2017, 8:20 p.m. OK GNU C++14 TESTS 92 15 0 1700
29692975 KhaledJU A Aug. 22, 2017, 8:18 p.m. OK GNU C++14 TESTS 92 15 0 1700
67482025 FlowerOfSorrow A Dec. 23, 2019, 4:14 p.m. OK GNU C++17 TESTS 92 31 0 1700
67481893 tfg A Dec. 23, 2019, 4:13 p.m. OK GNU C++17 TESTS 92 31 0 1700
66493256 nikita4109 A Dec. 8, 2019, 9:23 a.m. OK GNU C++17 TESTS 92 31 0 1700
64443065 GaneshBunny A Nov. 7, 2019, 5:21 a.m. OK GNU C++17 TESTS 92 31 0 1700
62627504 aarsh01 A Oct. 15, 2019, 2:29 p.m. OK GNU C++17 TESTS 92 31 0 1700
61290232 andriy_zhuk A Sept. 25, 2019, 8:17 p.m. OK GNU C++17 TESTS 92 31 0 1700
61262542 vjudge2 A Sept. 25, 2019, 11:57 a.m. OK GNU C++17 TESTS 92 31 0 1700
61001994 jakedavis A Sept. 21, 2019, 9:55 a.m. OK GNU C++17 TESTS 92 31 0 1700
60132917 Tomx A Sept. 5, 2019, 5:26 p.m. OK GNU C++17 TESTS 92 31 0 1700
69049601 manish_joshi A Jan. 18, 2020, 12:13 p.m. OK GNU C++17 TESTS 92 31 0 1700
7187054 dikei A July 20, 2014, 2:11 p.m. OK Go TESTS 92 15 0 1700
15914422 not_bot_but_POT A Feb. 9, 2016, 1:44 p.m. OK Haskell TESTS 92 15 0 1700
7192610 9mmlitswe A July 21, 2014, 8:50 a.m. OK Haskell TESTS 92 15 0 1700
33824563 sighingnow A Dec. 31, 2017, 4:15 a.m. OK Haskell TESTS 92 15 44851200 1700
7272714 kost A July 28, 2014, 12:50 a.m. OK Haskell TESTS 92 30 2150400 1700
7176151 choice A July 19, 2014, 4:13 p.m. OK Haskell TESTS 92 31 0 1700
9376923 dragon.ignil A Jan. 7, 2015, 5:35 a.m. OK Haskell TESTS 92 31 0 1700
7177124 autotaker A July 19, 2014, 4:50 p.m. OK Haskell TESTS 92 46 0 1700
7176860 autotaker A July 19, 2014, 4:39 p.m. OK Haskell TESTS 92 46 0 1700
7159277 Rotsor A July 19, 2014, 1:11 p.m. OK Haskell TESTS 92 46 0 1700
7536167 mkirsche A Aug. 20, 2014, 7:23 p.m. OK Java 6 TESTS 92 78 0 1700
7352483 loven A Aug. 5, 2014, 12:30 p.m. OK Java 6 TESTS 92 78 0 1700
7211087 hweigel528 A July 23, 2014, 5:34 p.m. OK Java 6 TESTS 92 92 0 1700
7513952 trym A Aug. 20, 2014, 7:35 a.m. OK Java 6 TESTS 92 109 0 1700
7182522 maitony A July 20, 2014, 3:14 a.m. OK Java 6 TESTS 92 140 0 1700
7198469 katsukare A July 22, 2014, 12:14 a.m. OK Java 7 TESTS 92 77 0 1700
12099079 PrakharJain A July 17, 2015, 9:08 p.m. OK Java 7 TESTS 92 77 0 1700
8072246 simenl A Oct. 3, 2014, 8:11 p.m. OK Java 7 TESTS 92 77 0 1700
7482182 KillerCage A Aug. 16, 2014, 9:38 a.m. OK Java 7 TESTS 92 77 0 1700
7359227 trunghieu11 A Aug. 6, 2014, 9:05 a.m. OK Java 7 TESTS 92 77 0 1700
7306565 watson A Aug. 1, 2014, 10:34 a.m. OK Java 7 TESTS 92 77 0 1700
7287084 hiro116s A July 29, 2014, 5:52 p.m. OK Java 7 TESTS 92 77 0 1700
7287074 hiro116s A July 29, 2014, 5:51 p.m. OK Java 7 TESTS 92 77 0 1700
7258465 hiukim A July 27, 2014, 4:19 p.m. OK Java 7 TESTS 92 77 0 1700
10747098 wonjohn.choi A April 17, 2015, 1:08 a.m. OK Java 7 TESTS 92 78 0 1700
12255784 .tx A July 28, 2015, 6:48 p.m. OK Java 8 TESTS 92 109 0 1700
15848887 Ahmad_Elsagheer A Feb. 6, 2016, 8:02 p.m. OK Java 8 TESTS 92 109 0 1700
9658606 poikniok A Jan. 31, 2015, 7:19 p.m. OK Java 8 TESTS 92 109 0 1700
9658364 poikniok A Jan. 31, 2015, 6:57 p.m. OK Java 8 TESTS 92 109 0 1700
10205647 Sumeet.Varma A March 8, 2015, 12:11 p.m. OK Java 8 TESTS 92 109 0 1700
25719719 OmarRadwan A March 22, 2017, 6:43 p.m. OK Java 8 TESTS 92 109 20172800 1700
38637347 vjudge1 A May 26, 2018, 2:57 p.m. OK Java 8 TESTS 92 124 0 1700
47307307 wery0 A Dec. 20, 2018, 5:31 p.m. OK Java 8 TESTS 92 124 0 1700
41567082 amolpratap007 A Aug. 13, 2018, 6:11 p.m. OK Java 8 TESTS 92 124 0 1700
16704820 flyman3046 A March 13, 2016, 9:06 p.m. OK Java 8 TESTS 92 124 0 1700
37041303 inaduma A April 7, 2018, 7:17 a.m. OK Kotlin TESTS 92 202 22835200 1700
41567239 mid_or_feed A Aug. 13, 2018, 6:19 p.m. OK Mono C# TESTS 92 62 3686400 1700
7186053 Silithus A July 20, 2014, 12:06 p.m. OK MS C# TESTS 92 61 409600 1700
25836270 taikid1412 A March 27, 2017, 10:46 a.m. OK MS C# TESTS 92 61 11366400 1700
7413805 lazyc97 A Aug. 10, 2014, 1:21 p.m. OK MS C# TESTS 92 62 102400 1700
7672518 azukun A Sept. 3, 2014, 7:37 a.m. OK MS C# TESTS 92 62 512000 1700
7802418 LLT A Sept. 15, 2014, 3:27 p.m. OK MS C# TESTS 92 62 2150400 1700
25836144 taikid1412 A March 27, 2017, 10:39 a.m. OK MS C# TESTS 92 62 11366400 1700
7160807 og.kostya A July 19, 2014, 1:20 p.m. OK MS C# TESTS 92 77 204800 1700
7186920 eitaho A July 20, 2014, 1:54 p.m. OK MS C# TESTS 92 77 4608000 1700
13968220 nicky_ua A Oct. 31, 2015, 10:36 a.m. OK MS C++ TESTS 92 15 0 1700
11406536 aka.Sohieb A June 3, 2015, 7:59 p.m. OK MS C++ TESTS 92 15 0 1700
10762218 zljsdtc A April 17, 2015, 10:27 p.m. OK MS C++ TESTS 92 15 0 1700
9016836 iblacksun A Dec. 8, 2014, 10:06 a.m. OK MS C++ TESTS 92 15 0 1700
8137858 EarlOfDitches A Oct. 8, 2014, 9:10 a.m. OK MS C++ TESTS 92 15 0 1700
7514927 NVAL A Aug. 20, 2014, 9:48 a.m. OK MS C++ TESTS 92 15 0 1700
7502465 repeatuntil0 A Aug. 18, 2014, 4:04 p.m. OK MS C++ TESTS 92 15 0 1700
7429897 Com A Aug. 11, 2014, 6:05 p.m. OK MS C++ TESTS 92 15 0 1700
7349973 TonySnark A Aug. 5, 2014, 7:16 a.m. OK MS C++ TESTS 92 15 0 1700
15877507 BRAD_BIT A Feb. 7, 2016, 2:02 p.m. OK MS C++ TESTS 92 15 0 1700
7177051 Darooha A July 19, 2014, 4:47 p.m. OK Ocaml TESTS 92 31 0 1700
32035545 shivam_1708 shmabulock A Nov. 3, 2017, 7:56 p.m. OK PyPy 2 TESTS 92 77 0 1700
27994192 Yash_ A June 24, 2017, 12:17 a.m. OK PyPy 2 TESTS 92 77 21913600 1700
68082791 lowoncode A Jan. 2, 2020, 3:01 p.m. OK PyPy 3 TESTS 92 155 0 1700
7733328 fcbruce A Sept. 10, 2014, 8:12 a.m. OK Python 2 TESTS 92 46 0 1700
7715489 Unlenin A Sept. 7, 2014, 7:35 p.m. OK Python 2 TESTS 92 46 0 1700
7300815 jebwizoscar A July 31, 2014, 3:35 p.m. OK Python 2 TESTS 92 46 0 1700
7546540 squiggly_lines A Aug. 21, 2014, 6:42 p.m. OK Python 2 TESTS 92 61 0 1700
7213586 danielfleischman A July 24, 2014, 4:22 a.m. OK Python 2 TESTS 92 61 0 1700
13714090 yuxy A Oct. 18, 2015, 2:09 p.m. OK Python 2 TESTS 92 62 0 1700
7250788 fidot A July 26, 2014, 2:24 p.m. OK Python 2 TESTS 92 62 0 1700
7217119 simararorarox94 A July 24, 2014, 1:58 p.m. OK Python 2 TESTS 92 62 0 1700
7189524 nifantyev A July 20, 2014, 11:59 p.m. OK Python 2 TESTS 92 62 0 1700
7176089 dcod A July 19, 2014, 4:12 p.m. OK Python 2 TESTS 92 62 0 1700
16247311 orailly A Feb. 20, 2016, 6:49 p.m. OK Python 3 TESTS 92 62 0 1700
7299969 yugle7 A July 31, 2014, 1:32 p.m. OK Python 3 TESTS 92 62 0 1700
7292483 learningmou A July 30, 2014, 11:56 a.m. OK Python 3 TESTS 92 62 0 1700
7196022 xxxyyy635 A July 21, 2014, 2:48 p.m. OK Python 3 TESTS 92 62 0 1700
7185836 nigehan A July 20, 2014, 11:46 a.m. OK Python 3 TESTS 92 62 0 1700
7196130 xxxyyy635 A July 21, 2014, 3:03 p.m. OK Python 3 TESTS 92 77 0 1700
22071989 PassingBy A Nov. 6, 2016, 9:44 a.m. OK Python 3 TESTS 92 78 819200 1700
38629901 vjudge2 A May 26, 2018, 9:30 a.m. OK Python 3 TESTS 92 93 0 1700
46923119 hitesh.gen9 A Dec. 12, 2018, 6:39 a.m. OK Python 3 TESTS 92 109 0 1700
7183075 zby A July 20, 2014, 4:16 a.m. OK Python 3 TESTS 92 109 0 1700
7258450 puru A July 27, 2014, 4:16 p.m. OK Scala TESTS 92 218 0 1700
7364445 lurker86 A Aug. 7, 2014, 2:41 a.m. OK Scala TESTS 92 233 0 1700

remove filters

Back to search problems