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 |
248
|
Codeforces Round 152 (Div. 2) |
FINISHED |
False |
8100 |
387642589 |
Nov. 25, 2012, 3:30 p.m. |
Problems
B"Christmas celebrations are coming to Whoville. Cindy Lou Who and her parents Lou Lou Who and Betty Lou Who decided to give sweets to all people in their street. They decided to give the residents of each house on the street, one kilogram of sweets. So they need as many kilos of sweets as there are homes on their street. The street, where the Lou Who family lives can be represented as n consecutive sections of equal length. You can go from any section to a neighbouring one in one unit of time. Each of the sections is one of three types: an empty piece of land, a house or a shop. Cindy Lou and her family can buy sweets in a shop, but no more than one kilogram of sweets in one shop (the vendors care about the residents of Whoville not to overeat on sweets). After the Lou Who family leave their home, they will be on the first section of the road. To get to this section of the road, they also require one unit of time. We can assume that Cindy and her mom and dad can carry an unlimited number of kilograms of sweets. Every time they are on a house section, they can give a kilogram of sweets to the inhabitants of the house, or they can simply move to another section. If the family have already given sweets to the residents of a house, they can't do it again. Similarly, if they are on the shop section, they can either buy a kilo of sweets in it or skip this shop. If they've bought a kilo of sweets in a shop, the seller of the shop remembered them and the won't sell them a single candy if they come again. The time to buy and give sweets can be neglected. The Lou Whos do not want the people of any house to remain without food. The Lou Whos want to spend no more than t time units of time to give out sweets, as they really want to have enough time to prepare for the Christmas celebration. In order to have time to give all the sweets, they may have to initially bring additional k kilos of sweets. Cindy Lou wants to know the minimum number of k kilos of sweets they need "... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
2674264 |
Misha100896 |
D |
Nov. 28, 2012, 5:53 p.m. |
OK |
Delphi |
TESTS |
44 |
1812 |
5120000 |
|
2400 |
2677692 |
fillarios |
D |
Nov. 29, 2012, 4:11 p.m. |
OK |
FPC |
TESTS |
44 |
109 |
3993600 |
|
2400 |
2687356 |
pavelfomin |
D |
Dec. 2, 2012, 6:01 p.m. |
OK |
FPC |
TESTS |
44 |
171 |
512000 |
|
2400 |
5407850 |
yohshama |
D |
Dec. 11, 2013, 6:57 a.m. |
OK |
FPC |
TESTS |
44 |
186 |
3993600 |
|
2400 |
5407886 |
yohshama |
D |
Dec. 11, 2013, 7:05 a.m. |
OK |
FPC |
TESTS |
44 |
186 |
5427200 |
|
2400 |
3008921 |
gxnncrx1993 |
D |
Jan. 25, 2013, 5:36 p.m. |
OK |
GNU C |
TESTS |
44 |
109 |
10035200 |
|
2400 |
2671390 |
Satoshi_Pikachu |
D |
Nov. 28, 2012, 5:36 a.m. |
OK |
GNU C++ |
TESTS |
44 |
31 |
3174400 |
|
2400 |
2924653 |
hariprasath |
D |
Jan. 14, 2013, 4:25 p.m. |
OK |
GNU C++ |
TESTS |
44 |
31 |
5427200 |
|
2400 |
4922105 |
Smit |
D |
Oct. 28, 2013, 4:28 p.m. |
OK |
GNU C++ |
TESTS |
44 |
31 |
8499200 |
|
2400 |
2728236 |
UncleHandsome |
D |
Dec. 8, 2012, 12:25 p.m. |
OK |
GNU C++ |
TESTS |
44 |
46 |
3174400 |
|
2400 |
2655693 |
I_so_sad |
D |
Nov. 26, 2012, 3:09 a.m. |
OK |
GNU C++ |
TESTS |
44 |
46 |
3174400 |
|
2400 |
2655690 |
I_so_sad |
D |
Nov. 26, 2012, 3:08 a.m. |
OK |
GNU C++ |
TESTS |
44 |
46 |
3174400 |
|
2400 |
3670859 |
pwecar |
D |
May 5, 2013, 1:50 a.m. |
OK |
GNU C++ |
TESTS |
44 |
46 |
4505600 |
|
2400 |
3325605 |
chlxyd |
D |
March 16, 2013, 12:10 p.m. |
OK |
GNU C++ |
TESTS |
44 |
46 |
5529600 |
|
2400 |
4922087 |
Smit |
D |
Oct. 28, 2013, 4:24 p.m. |
OK |
GNU C++ |
TESTS |
44 |
46 |
31129600 |
|
2400 |
18948391 |
code_cola |
D |
July 7, 2016, 9:47 a.m. |
OK |
GNU C++ |
TESTS |
44 |
60 |
4300800 |
|
2400 |
4203163 |
mrTux |
D |
July 30, 2013, 7:58 a.m. |
OK |
GNU C++0x |
TESTS |
44 |
186 |
2560000 |
|
2400 |
4203142 |
mrTux |
D |
July 30, 2013, 7:52 a.m. |
OK |
GNU C++0x |
TESTS |
44 |
186 |
2560000 |
|
2400 |
9775105 |
Baby_Steps |
D |
Feb. 8, 2015, 9:50 p.m. |
OK |
GNU C++0x |
TESTS |
44 |
186 |
3481600 |
|
2400 |
9775094 |
Baby_Steps |
D |
Feb. 8, 2015, 9:47 p.m. |
OK |
GNU C++0x |
TESTS |
44 |
186 |
3481600 |
|
2400 |
2772646 |
ArkChar |
D |
Dec. 16, 2012, 11:05 a.m. |
OK |
GNU C++0x |
TESTS |
44 |
234 |
5632000 |
|
2400 |
4450720 |
EarlOfDitches |
D |
Sept. 13, 2013, 8:26 a.m. |
OK |
GNU C++0x |
TESTS |
44 |
248 |
9216000 |
|
2400 |
17129167 |
freebsdx |
D |
April 2, 2016, 11:36 a.m. |
OK |
GNU C++11 |
TESTS |
44 |
62 |
7475200 |
|
2400 |
15173223 |
Deemo |
D |
Jan. 3, 2016, 9:45 p.m. |
OK |
GNU C++11 |
TESTS |
44 |
92 |
3072000 |
|
2400 |
17088068 |
tumut |
D |
April 1, 2016, 10:07 a.m. |
OK |
GNU C++11 |
TESTS |
44 |
92 |
10547200 |
|
2400 |
57898371 |
lopare |
D |
July 28, 2019, 2:35 p.m. |
OK |
GNU C++11 |
TESTS |
44 |
122 |
2355200 |
|
2400 |
57821739 |
py_ultron |
D |
July 26, 2019, 11:56 p.m. |
OK |
GNU C++11 |
TESTS |
44 |
124 |
2355200 |
|
2400 |
58500015 |
caidongxiao |
D |
Aug. 9, 2019, 1:51 p.m. |
OK |
GNU C++11 |
TESTS |
44 |
124 |
4505600 |
|
2400 |
54059369 |
_DSy |
D |
May 13, 2019, 10:21 a.m. |
OK |
GNU C++11 |
TESTS |
44 |
156 |
2560000 |
|
2400 |
54499731 |
WOSHIGEPACHONG2 |
D |
May 22, 2019, 7:55 p.m. |
OK |
GNU C++11 |
TESTS |
44 |
186 |
2560000 |
|
2400 |
54022088 |
_DSy |
D |
May 12, 2019, 10:22 a.m. |
OK |
GNU C++11 |
TESTS |
44 |
186 |
6553600 |
|
2400 |
44056754 |
emoairx |
D |
Oct. 10, 2018, 1:29 a.m. |
OK |
GNU C++11 |
TESTS |
44 |
248 |
2560000 |
|
2400 |
54725423 |
bhargav_0085 |
D |
May 27, 2019, 8:06 p.m. |
OK |
GNU C++14 |
TESTS |
44 |
124 |
2560000 |
|
2400 |
25598356 |
TianyiChen |
D |
March 18, 2017, 11:16 a.m. |
OK |
GNU C++14 |
TESTS |
44 |
156 |
4403200 |
|
2400 |
58640294 |
vjudge1 |
D |
Aug. 12, 2019, 3:02 a.m. |
OK |
GNU C++14 |
TESTS |
44 |
156 |
5017600 |
|
2400 |
62402437 |
divyanshu_gaira_99 |
D |
Oct. 12, 2019, 7:50 a.m. |
OK |
GNU C++14 |
TESTS |
44 |
216 |
3584000 |
|
2400 |
60412515 |
TwentyOneHundredOrBust |
D |
Sept. 11, 2019, 11:09 p.m. |
OK |
GNU C++14 |
TESTS |
44 |
218 |
3686400 |
|
2400 |
58640979 |
Alex_McAvoy |
D |
Aug. 12, 2019, 3:33 a.m. |
OK |
GNU C++14 |
TESTS |
44 |
248 |
1945600 |
|
2400 |
43521866 |
iaojnh |
D |
Sept. 28, 2018, 9 a.m. |
OK |
GNU C++14 |
TESTS |
44 |
248 |
4812800 |
|
2400 |
58497213 |
vjudge5 |
D |
Aug. 9, 2019, 12:41 p.m. |
OK |
GNU C++14 |
TESTS |
44 |
278 |
2048000 |
|
2400 |
58498776 |
vjudge1 |
D |
Aug. 9, 2019, 1:19 p.m. |
OK |
GNU C++14 |
TESTS |
44 |
280 |
2048000 |
|
2400 |
20535548 |
Upsolver |
D |
Sept. 11, 2016, 3:53 p.m. |
OK |
GNU C++14 |
TESTS |
44 |
280 |
7065600 |
|
2400 |
63911248 |
jkchen |
D |
Oct. 31, 2019, 8:22 a.m. |
OK |
GNU C++17 |
TESTS |
44 |
92 |
14745600 |
|
2400 |
58499984 |
1024_20171786 |
D |
Aug. 9, 2019, 1:50 p.m. |
OK |
GNU C++17 |
TESTS |
44 |
124 |
512000 |
|
2400 |
58499926 |
vjudge1 |
D |
Aug. 9, 2019, 1:49 p.m. |
OK |
GNU C++17 |
TESTS |
44 |
124 |
512000 |
|
2400 |
51135932 |
ruo |
D |
March 10, 2019, 4:06 p.m. |
OK |
GNU C++17 |
TESTS |
44 |
154 |
6553600 |
|
2400 |
54354474 |
vjudge4 |
D |
May 18, 2019, 4:47 p.m. |
OK |
GNU C++17 |
TESTS |
44 |
156 |
2662400 |
|
2400 |
54059349 |
vjudge1 |
D |
May 13, 2019, 10:21 a.m. |
OK |
GNU C++17 |
TESTS |
44 |
156 |
2662400 |
|
2400 |
68329577 |
dnkywin |
D |
Jan. 6, 2020, 6:11 p.m. |
OK |
GNU C++17 |
TESTS |
44 |
156 |
3993600 |
|
2400 |
68328558 |
dnkywin |
D |
Jan. 6, 2020, 5:48 p.m. |
OK |
GNU C++17 |
TESTS |
44 |
156 |
3993600 |
|
2400 |
54981494 |
apare |
D |
June 2, 2019, 1:24 p.m. |
OK |
GNU C++17 |
TESTS |
44 |
186 |
5120000 |
|
2400 |
58516822 |
pxlsdz |
D |
Aug. 10, 2019, 12:52 a.m. |
OK |
GNU C++17 |
TESTS |
44 |
248 |
1945600 |
|
2400 |
2664329 |
gh_ost |
D |
Nov. 26, 2012, 5:30 p.m. |
OK |
Java 6 |
TESTS |
44 |
156 |
0 |
|
2400 |
3607780 |
niquefa_diego |
D |
April 22, 2013, 8:10 p.m. |
OK |
Java 6 |
TESTS |
44 |
218 |
0 |
|
2400 |
2671366 |
I_love_Malika |
D |
Nov. 28, 2012, 5:25 a.m. |
OK |
Java 6 |
TESTS |
44 |
234 |
0 |
|
2400 |
2668599 |
DexTrom |
D |
Nov. 27, 2012, 1:36 p.m. |
OK |
Java 6 |
TESTS |
44 |
250 |
0 |
|
2400 |
2655928 |
hota911 |
D |
Nov. 26, 2012, 4:35 a.m. |
OK |
Java 6 |
TESTS |
44 |
296 |
102400 |
|
2400 |
2665593 |
vanchope |
D |
Nov. 26, 2012, 11:09 p.m. |
OK |
Java 6 |
TESTS |
44 |
312 |
21299200 |
|
2400 |
2665476 |
vanchope |
D |
Nov. 26, 2012, 10:16 p.m. |
OK |
Java 6 |
TESTS |
44 |
343 |
41676800 |
|
2400 |
2674609 |
master_j |
D |
Nov. 28, 2012, 7:24 p.m. |
OK |
Java 7 |
TESTS |
44 |
390 |
204800 |
|
2400 |
12606611 |
free.dom |
D |
Aug. 19, 2015, 4:57 p.m. |
OK |
Java 7 |
TESTS |
44 |
434 |
0 |
|
2400 |
2669419 |
islam-al-aarag |
D |
Nov. 27, 2012, 4:05 p.m. |
OK |
Java 7 |
TESTS |
44 |
1890 |
36454400 |
|
2400 |
26047398 |
kushwaha_vi |
D |
April 1, 2017, 8:41 a.m. |
OK |
Java 8 |
TESTS |
44 |
466 |
20582400 |
|
2400 |
24157277 |
JenniferZweig |
D |
Jan. 26, 2017, 8:21 p.m. |
OK |
Java 8 |
TESTS |
44 |
560 |
21913600 |
|
2400 |
12292862 |
vjudge3 |
D |
July 31, 2015, 2:25 p.m. |
OK |
MS C++ |
TESTS |
44 |
62 |
6553600 |
|
2400 |
3995978 |
TheWishmaster |
D |
June 30, 2013, 1:53 p.m. |
OK |
MS C++ |
TESTS |
44 |
93 |
512000 |
|
2400 |
2692741 |
ermolmak |
D |
Dec. 3, 2012, 10:32 p.m. |
OK |
MS C++ |
TESTS |
44 |
109 |
512000 |
|
2400 |
2650911 |
YX201314 |
D |
Nov. 25, 2012, 7:23 p.m. |
OK |
MS C++ |
TESTS |
42 |
109 |
6553600 |
|
2400 |
4209876 |
xin5739 |
D |
July 31, 2013, 2:37 p.m. |
OK |
MS C++ |
TESTS |
44 |
124 |
2355200 |
|
2400 |
2661006 |
K.F.Cat |
D |
Nov. 26, 2012, 3:04 p.m. |
OK |
MS C++ |
TESTS |
44 |
125 |
4608000 |
|
2400 |
2712485 |
istepura |
D |
Dec. 7, 2012, 2:33 a.m. |
OK |
MS C++ |
TESTS |
44 |
140 |
921600 |
|
2400 |
54354461 |
vjudge3 |
D |
May 18, 2019, 4:46 p.m. |
OK |
MS C++ |
TESTS |
44 |
154 |
2560000 |
|
2400 |
2671597 |
steamqueen |
D |
Nov. 28, 2012, 7:22 a.m. |
OK |
MS C++ |
TESTS |
44 |
156 |
512000 |
|
2400 |
2651027 |
UminchuR |
D |
Nov. 25, 2012, 7:34 p.m. |
OK |
MS C++ |
TESTS |
42 |
156 |
1945600 |
|
2400 |
64339689 |
fzanutto |
D |
Nov. 6, 2019, 1:29 a.m. |
OK |
PyPy 3 |
TESTS |
44 |
716 |
4403200 |
|
2400 |
2860622 |
Gzs_iceberg |
D |
Dec. 31, 2012, 9:50 a.m. |
OK |
Python 2 |
TESTS |
44 |
750 |
1638400 |
|
2400 |
remove filters
Back to search problems