Codeforces Round 467 (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
936 Codeforces Round 467 (Div. 1) FINISHED False 7200 212248499 Feb. 25, 2018, 4:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4372 ) A Save Energy! PROGRAMMING binary search implementation math 1700

B"Julia is going to cook a chicken in the kitchen of her dormitory. To save energy, the stove in the kitchen automatically turns off after k minutes after turning on. During cooking, Julia goes to the kitchen every d minutes and turns on the stove if it is turned off. While the cooker is turned off, it stays warm. The stove switches on and off instantly. It is known that the chicken needs t minutes to be cooked on the stove, if it is turned on, and 2t minutes, if it is turned off. You need to find out, how much time will Julia have to cook the chicken, if it is considered that the chicken is cooked evenly, with constant speed when the stove is turned on and at a constant speed when it is turned off. The single line contains three integers k, d and t (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k, xe2 x80 x89d, xe2 x80 x89t xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891018). Print a single number, the total time of cooking in minutes. The relative or absolute error must not exceed 10 xe2 x80 x89- xe2 x80 x899. Namely, let's assume that your answer is x and the answer of the jury is y. The checker program will consider your answer correct if . In the first example, the chicken will be cooked for 3 minutes on the turned on stove, after this it will be cooked for . Then the chicken will be cooked for one minute on a turned off stove, it will be cooked for . Thus, after four minutes the chicken will be cooked for . Before the fifth minute Julia will turn on the stove and after 2.5 minutes the chicken will be ready . In the second example, when the stove is turned off, Julia will immediately turn it on, so the stove will always be turned on and the chicken will be cooked in 20 minutes. "...

Tutorials

Codeforces Round #467, Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
35705513 Gassa A Feb. 25, 2018, 5:48 p.m. OK D TESTS 59 15 2969600 1700
35693082 FalseMirror A Feb. 25, 2018, 4:32 p.m. OK D TESTS 59 15 2969600 1700
35768347 I_Love_U_Sohan A Feb. 27, 2018, 4:04 p.m. OK GNU C TESTS 59 15 1843200 1700
35716120 Hyde A Feb. 26, 2018, 12:41 a.m. OK GNU C TESTS 59 15 1843200 1700
35748818 TsReaper A Feb. 27, 2018, 1:26 a.m. OK GNU C TESTS 59 15 1945600 1700
35733932 jsu008 A Feb. 26, 2018, 1:49 p.m. OK GNU C TESTS 59 30 2048000 1700
36512401 The.Last.Wizard A March 22, 2018, 6:18 p.m. OK GNU C TESTS 59 30 3379200 1700
36879719 y60091534 A April 2, 2018, 1:34 p.m. OK GNU C TESTS 59 31 3276800 1700
39191578 vjudge5 A June 12, 2018, 12:39 p.m. OK GNU C++ TESTS 59 15 0 1700
38705938 thx A May 28, 2018, 11:24 p.m. OK GNU C++ TESTS 59 15 0 1700
35807046 PinkRabbit A March 1, 2018, 9:20 a.m. OK GNU C++ TESTS 59 15 1843200 1700
36188599 vjudge4 A March 11, 2018, 6:32 a.m. OK GNU C++ TESTS 59 15 1843200 1700
35921411 zhan8855 A March 4, 2018, 12:15 p.m. OK GNU C++ TESTS 59 15 1843200 1700
35871138 Mingqi_H A March 3, 2018, 6:44 a.m. OK GNU C++ TESTS 59 15 1843200 1700
35848815 Robert_Yuan A March 2, 2018, 5:04 p.m. OK GNU C++ TESTS 59 15 1843200 1700
35759306 Stilwell A Feb. 27, 2018, 11:12 a.m. OK GNU C++ TESTS 59 15 1843200 1700
35717284 XingGeRuCi A Feb. 26, 2018, 2 a.m. OK GNU C++ TESTS 59 15 1843200 1700
35716075 zjczzzjczjczzzjc A Feb. 26, 2018, 12:38 a.m. OK GNU C++ TESTS 59 15 1843200 1700
62119723 vjudge5 A Oct. 8, 2019, 2:19 p.m. OK GNU C11 TESTS 59 31 0 1700
36533285 shui_a_shui A March 23, 2018, 2:20 p.m. OK GNU C11 TESTS 59 31 3276800 1700
39339757 pr3pony A June 17, 2018, 4:18 p.m. OK GNU C++11 TESTS 59 15 0 1700
35693409 Hyperbolic A Feb. 25, 2018, 4:33 p.m. OK GNU C++11 TESTS 59 15 1843200 1700
35692599 dantrag A Feb. 25, 2018, 4:29 p.m. OK GNU C++11 TESTS 59 15 1843200 1700
35691113 Antimony A Feb. 25, 2018, 4:22 p.m. OK GNU C++11 TESTS 59 15 1843200 1700
35689902 iaNTU A Feb. 25, 2018, 4:16 p.m. OK GNU C++11 TESTS 59 15 1843200 1700
35689140 deep_learning A Feb. 25, 2018, 4:13 p.m. OK GNU C++11 TESTS 59 15 1843200 1700
35762490 hmfzy A Feb. 27, 2018, 12:57 p.m. OK GNU C++11 TESTS 59 15 1843200 1700
35808272 Stelutzu A March 1, 2018, 10:17 a.m. OK GNU C++11 TESTS 59 15 1843200 1700
36294480 sujon A March 15, 2018, 9:20 a.m. OK GNU C++11 TESTS 59 15 2048000 1700
36294977 weeping_samael A March 15, 2018, 9:55 a.m. OK GNU C++11 TESTS 59 15 2048000 1700
46407151 2001092235 A Nov. 30, 2018, 3:13 p.m. OK GNU C++14 TESTS 59 15 0 1700
36296644 sun_hongjia A March 15, 2018, 11:07 a.m. OK GNU C++14 TESTS 59 15 1843200 1700
35868040 vjudge5 A March 3, 2018, 4:22 a.m. OK GNU C++14 TESTS 59 15 1843200 1700
35867126 mittalshubham A March 3, 2018, 3:12 a.m. OK GNU C++14 TESTS 59 15 1843200 1700
35826006 O0iMpN0_0iNmp0O A March 2, 2018, 5:41 a.m. OK GNU C++14 TESTS 59 15 1843200 1700
35825467 wanggann A March 2, 2018, 5:09 a.m. OK GNU C++14 TESTS 59 15 1843200 1700
35822377 dionysios A March 2, 2018, 12:45 a.m. OK GNU C++14 TESTS 59 15 1843200 1700
35880492 3_14149 A March 3, 2018, 11:37 a.m. OK GNU C++14 TESTS 59 15 1843200 1700
35897173 otrecnoc A March 3, 2018, 5:47 p.m. OK GNU C++14 TESTS 59 15 1843200 1700
36031128 kennethsnow A March 7, 2018, 2:01 a.m. OK GNU C++14 TESTS 59 15 1843200 1700
38411277 mareksom A May 18, 2018, 9:34 p.m. OK GNU C++17 TESTS 59 15 0 1700
56854472 Locke_ A July 11, 2019, 5:32 p.m. OK GNU C++17 TESTS 59 15 819200 1700
35868013 vjudge3 A March 3, 2018, 4:21 a.m. OK GNU C++17 TESTS 59 15 1843200 1700
36119721 openopentw A March 9, 2018, 2:15 p.m. OK GNU C++17 TESTS 59 15 1843200 1700
35925642 xiaxiangyu29 A March 4, 2018, 2:35 p.m. OK GNU C++17 TESTS 59 15 1843200 1700
36084946 vjudge5 A March 9, 2018, 1:45 a.m. OK GNU C++17 TESTS 59 15 1945600 1700
35991373 AtillaAk A March 6, 2018, 12:28 p.m. OK GNU C++17 TESTS 59 15 1945600 1700
35968045 CaiWeiHan A March 5, 2018, 2:05 p.m. OK GNU C++17 TESTS 59 15 1945600 1700
36126827 FariduN_05 A March 9, 2018, 6:31 p.m. OK GNU C++17 TESTS 59 15 1945600 1700
36264565 LiChenKoh A March 14, 2018, 4:20 a.m. OK GNU C++17 TESTS 59 15 1945600 1700
35691093 Martynas A Feb. 25, 2018, 4:22 p.m. OK Go TESTS 59 15 23040000 1700
56992134 JCKG A July 13, 2019, 6:58 p.m. OK Java 8 TESTS 59 109 0 1700
49886635 wadissimo A Feb. 13, 2019, 10:04 p.m. OK Java 8 TESTS 59 109 0 1700
48179493 kusomushi A Jan. 10, 2019, 11:42 a.m. OK Java 8 TESTS 59 109 0 1700
68993029 SecondThread A Jan. 17, 2020, 4:02 p.m. OK Java 8 TESTS 59 124 0 1700
48481819 barakraganosungam A Jan. 17, 2019, 6:24 a.m. OK Java 8 TESTS 59 124 0 1700
38555273 sagnihotri A May 23, 2018, 8:11 a.m. OK Java 8 TESTS 59 124 0 1700
36198119 kubusgol A March 11, 2018, 11:55 a.m. OK Java 8 TESTS 59 124 20684800 1700
35949237 beroul A March 4, 2018, 8:04 p.m. OK Java 8 TESTS 59 124 20684800 1700
35787818 r_sutaria A Feb. 28, 2018, 2:28 p.m. OK Java 8 TESTS 59 124 20684800 1700
37914017 KulikAlex A May 5, 2018, 7:57 p.m. OK Java 8 TESTS 59 124 20684800 1700
57287912 NiggaPony A July 18, 2019, 3:22 p.m. OK Mono C# TESTS 59 61 0 1700
35699338 camypaper A Feb. 25, 2018, 5:03 p.m. OK MS C# TESTS 59 46 9318400 1700
35690088 chokudai A Feb. 25, 2018, 4:17 p.m. OK MS C# TESTS 59 46 9318400 1700
35828076 Archery2000 A March 2, 2018, 7:30 a.m. OK MS C# TESTS 59 46 9420800 1700
39208104 vjudge1 A June 13, 2018, 6:47 a.m. OK MS C++ TESTS 59 15 0 1700
35688685 TheConfessor A Feb. 25, 2018, 4:11 p.m. OK MS C++ TESTS 59 15 2048000 1700
35905315 xiao__feng A March 4, 2018, 2:30 a.m. OK MS C++ TESTS 59 15 2048000 1700
35698919 RCG A Feb. 25, 2018, 5:01 p.m. OK MS C++ TESTS 59 15 2048000 1700
35690021 AndrewB330 A Feb. 25, 2018, 4:17 p.m. OK MS C++ TESTS 59 15 2048000 1700
35731992 wj2dy A Feb. 26, 2018, 12:45 p.m. OK MS C++ TESTS 59 15 2150400 1700
35723442 absi2011 A Feb. 26, 2018, 7:40 a.m. OK MS C++ TESTS 59 15 2150400 1700
35721567 Maffka A Feb. 26, 2018, 6:21 a.m. OK MS C++ TESTS 59 15 2150400 1700
35924197 keklol360 A March 4, 2018, 1:24 p.m. OK MS C++ TESTS 59 15 2457600 1700
62084097 vjudge3 A Oct. 7, 2019, 11:47 p.m. OK MS C++ TESTS 59 30 0 1700
55863613 petko_mitkov A June 21, 2019, 10:53 a.m. OK MS C++ 2017 TESTS 59 31 0 1700
49690787 alex145031 A Feb. 10, 2019, 11:05 a.m. OK MS C++ 2017 TESTS 59 31 0 1700
61823104 vjudge3 A Oct. 4, 2019, 3:20 a.m. OK MS C++ 2017 TESTS 59 31 0 1700
51876440 mm944 A March 26, 2019, 7:46 p.m. OK PascalABC.NET TESTS 59 311 307200 1700
35714830 masonsbro A Feb. 25, 2018, 10:54 p.m. OK PyPy 2 TESTS 59 62 21401600 1700
35896535 mdippel A March 3, 2018, 5:19 p.m. OK PyPy 2 TESTS 59 92 21401600 1700
35692501 yum A Feb. 25, 2018, 4:29 p.m. OK PyPy 3 TESTS 59 77 19968000 1700
53423607 vjudge1 A April 27, 2019, 12:37 p.m. OK PyPy 3 TESTS 59 140 0 1700
40071911 homoeconomicus A July 7, 2018, 11:39 p.m. OK PyPy 3 TESTS 59 140 0 1700
40072151 homoeconomicus A July 8, 2018, 12:11 a.m. OK PyPy 3 TESTS 59 155 0 1700
36290285 nealzane A March 15, 2018, 4:33 a.m. OK Python 2 TESTS 59 62 4608000 1700
35963557 laoliumang A March 5, 2018, 11:41 a.m. OK Python 2 TESTS 59 62 4608000 1700
35723089 flower A Feb. 26, 2018, 7:25 a.m. OK Python 2 TESTS 59 62 4608000 1700
35692318 nwi A Feb. 25, 2018, 4:28 p.m. OK Python 2 TESTS 59 62 4608000 1700
35689991 Neil A Feb. 25, 2018, 4:16 p.m. OK Python 2 TESTS 59 62 4608000 1700
35692031 WNG A Feb. 25, 2018, 4:26 p.m. OK Python 2 TESTS 59 77 4608000 1700
37919100 Hahahahahahahhahaha A May 6, 2018, 5:07 a.m. OK Python 2 TESTS 59 108 6041600 1700
37393158 frostn A April 17, 2018, 11:09 a.m. OK Python 2 TESTS 59 108 6041600 1700
40690390 sanjaygupta251210 A July 24, 2018, 5:34 a.m. OK Python 2 TESTS 59 187 0 1700
36027074 ilshatus A March 6, 2018, 7:59 p.m. OK Python 3 TESTS 59 62 5632000 1700
36026773 hamlet A March 6, 2018, 7:41 p.m. OK Python 3 TESTS 59 62 5632000 1700
35948990 nathantheinventor A March 4, 2018, 7:52 p.m. OK Python 3 TESTS 59 62 5632000 1700
35791529 Savit_Gupta A Feb. 28, 2018, 4:50 p.m. OK Python 3 TESTS 59 62 5632000 1700
35700666 ---------- A Feb. 25, 2018, 5:11 p.m. OK Python 3 TESTS 59 62 5632000 1700
35694783 maxxaon A Feb. 25, 2018, 4:40 p.m. OK Python 3 TESTS 59 62 5632000 1700
35692193 cai_lw A Feb. 25, 2018, 4:27 p.m. OK Python 3 TESTS 59 62 5632000 1700
35691554 Mogby A Feb. 25, 2018, 4:24 p.m. OK Python 3 TESTS 59 62 5632000 1700
35691201 Boterphile A Feb. 25, 2018, 4:22 p.m. OK Python 3 TESTS 59 62 5632000 1700
35753079 WarZ A Feb. 27, 2018, 6:28 a.m. OK Python 3 TESTS 59 62 5836800 1700
36068157 cympfh A March 8, 2018, 11:05 a.m. OK Ruby TESTS 59 77 6451200 1700
35691515 emma A Feb. 25, 2018, 4:24 p.m. OK Ruby TESTS 59 77 6451200 1700
36088260 cympfh A March 9, 2018, 6:15 a.m. OK Ruby TESTS 59 108 6451200 1700
35697002 pekempey A Feb. 25, 2018, 4:51 p.m. OK Rust TESTS 59 31 1433600 1700

remove filters

Back to search problems