Codeforces Round 208 (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
358 Codeforces Round 208 (Div. 2) FINISHED False 7200 349108199 Oct. 25, 2013, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2032 ) C Dima and Containers PROGRAMMING constructive algorithms greedy implementation 2000

B"Dima has a birthday soon! It's a big day! Saryozha's present to Dima is that Seryozha won't be in the room and won't disturb Dima and Inna as they celebrate the birthday. Inna's present to Dima is a stack, a queue and a deck. Inna wants her present to show Dima how great a programmer he is. For that, she is going to give Dima commands one by one. There are two types of commands: Every time Dima makes a command of the second type, Inna kisses Dima some (possibly zero) number of times. Dima knows Inna perfectly well, he is sure that this number equals the sum of numbers he extracts from containers during this operation. As we've said before, Dima knows Inna perfectly well and he knows which commands Inna will give to Dima and the order of the commands. Help Dima find the strategy that lets him give as more kisses as possible for his birthday! The first line contains integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) -- the number of Inna's commands. Then n lines follow, describing Inna's commands. Each line consists an integer: Each command of the input must correspond to one line of the output -- Dima's action. For the command of the first type (adding) print one word that corresponds to Dima's choice: For a command of the second type first print an integer k (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x893), that shows the number of extract operations, then print k words separated by space. The words can be: The printed operations mustn't extract numbers from empty containers. Also, they must extract numbers from distinct containers. The printed sequence of actions must lead to the maximum number of kisses. If there are multiple sequences of actions leading to the maximum number of kisses, you are allowed to print any of them."...

Tutorials

Codeforces Round #208 (Div. 2) Разбор

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
4941654 Misha100896 C Oct. 31, 2013, 8:13 a.m. OK Delphi TESTS 26 31 6860800 2000
4890142 Ramp C Oct. 25, 2013, 5:22 p.m. OK Delphi TESTS 26 31 6860800 2000
4922359 annikura C Oct. 28, 2013, 5:19 p.m. OK Delphi TESTS 26 62 20480000 2000
4915617 ApachE C Oct. 27, 2013, 6:25 p.m. OK Delphi TESTS 26 234 409600 2000
5613284 Wolfik C Jan. 4, 2014, 12:53 a.m. OK FPC TESTS 26 46 409600 2000
4919686 Romantic_an C Oct. 28, 2013, 1:22 p.m. OK FPC TESTS 26 46 409600 2000
4919672 SpoonsAN C Oct. 28, 2013, 1:19 p.m. OK FPC TESTS 26 46 409600 2000
4900765 Stratonov C Oct. 26, 2013, 8:07 a.m. OK FPC TESTS 26 46 512000 2000
4888228 ZeRoGerc C Oct. 25, 2013, 4:55 p.m. OK FPC TESTS 26 46 921600 2000
4885763 trongdat3011 C Oct. 25, 2013, 4:25 p.m. OK FPC TESTS 26 46 921600 2000
4899603 ptnk_1215_panaka_13 C Oct. 26, 2013, 4:27 a.m. OK FPC TESTS 26 62 409600 2000
4913303 yanush C Oct. 27, 2013, 1:30 p.m. OK FPC TESTS 26 62 819200 2000
4888609 ARMv8 C Oct. 25, 2013, 5 p.m. OK FPC TESTS 26 62 819200 2000
4949731 Astreb C Nov. 1, 2013, 8:36 a.m. OK FPC TESTS 26 62 921600 2000
14340996 wesley.torres C Nov. 19, 2015, 11:39 a.m. OK GNU C TESTS 26 31 409600 2000
4948604 IceFire006 C Nov. 1, 2013, 5:03 a.m. OK GNU C TESTS 26 31 819200 2000
7248393 prashant211 C July 26, 2014, 8:57 a.m. OK GNU C TESTS 26 31 921600 2000
5068183 arradi C Nov. 11, 2013, 1:31 p.m. OK GNU C TESTS 26 31 2457600 2000
4889890 wei371114 C Oct. 25, 2013, 5:19 p.m. OK GNU C TESTS 26 46 819200 2000
4883998 LayCurse C Oct. 25, 2013, 4:07 p.m. OK GNU C TESTS 26 46 1228800 2000
7647672 msg C Aug. 30, 2014, 6:48 p.m. OK GNU C TESTS 26 46 2048000 2000
4936365 dmitry.s C Oct. 30, 2013, 3:24 p.m. OK GNU C TESTS 26 78 409600 2000
4927194 FancyCoder C Oct. 29, 2013, 8:23 a.m. OK GNU C++ TESTS 26 15 819200 2000
13217185 Darshan510 C Sept. 25, 2015, 10:57 a.m. OK GNU C++ TESTS 26 31 0 2000
5098560 olif C Nov. 14, 2013, 3:20 p.m. OK GNU C++ TESTS 26 31 0 2000
5098527 NegaTeeF C Nov. 14, 2013, 3:15 p.m. OK GNU C++ TESTS 26 31 0 2000
5023706 vepifanov C Nov. 7, 2013, 3:12 p.m. OK GNU C++ TESTS 26 31 0 2000
4947916 klammandi C Oct. 31, 2013, 10:43 p.m. OK GNU C++ TESTS 26 31 0 2000
4931732 ed1d1a8d C Oct. 30, 2013, 3:24 a.m. OK GNU C++ TESTS 26 31 0 2000
4923259 AKJ88 C Oct. 28, 2013, 9:03 p.m. OK GNU C++ TESTS 26 31 0 2000
4906512 mc_mosa C Oct. 26, 2013, 6:20 p.m. OK GNU C++ TESTS 26 31 0 2000
4901151 bluemmb C Oct. 26, 2013, 9:13 a.m. OK GNU C++ TESTS 26 31 0 2000
4889469 alex_world C Oct. 25, 2013, 5:12 p.m. OK GNU C++0x TESTS 26 31 204800 2000
4991601 Shik C Nov. 5, 2013, 8:46 a.m. OK GNU C++0x TESTS 26 31 409600 2000
4951650 lockmihai C Nov. 1, 2013, 2:17 p.m. OK GNU C++0x TESTS 26 31 819200 2000
4918044 Just_Me C Oct. 28, 2013, 5:30 a.m. OK GNU C++0x TESTS 26 31 819200 2000
4900146 RDG C Oct. 26, 2013, 6:19 a.m. OK GNU C++0x TESTS 26 31 819200 2000
4910980 virtualight C Oct. 27, 2013, 9:23 a.m. OK GNU C++0x TESTS 26 31 1536000 2000
4890556 boleyn.su C Oct. 25, 2013, 5:28 p.m. OK GNU C++0x TESTS 26 31 8396800 2000
4886658 Shtrix C Oct. 25, 2013, 4:35 p.m. OK GNU C++0x TESTS 26 46 0 2000
7427974 jianmodgqb C Aug. 11, 2014, 2:19 p.m. OK GNU C++0x TESTS 26 46 409600 2000
4889187 Toxic C Oct. 25, 2013, 5:08 p.m. OK GNU C++0x TESTS 26 46 409600 2000
16138092 vjudge4 C Feb. 18, 2016, 8:06 a.m. OK GNU C++11 TESTS 26 30 819200 2000
14012590 I_love_Hoang_Yen C Nov. 1, 2015, 5:45 p.m. OK GNU C++11 TESTS 26 31 0 2000
19182718 lajiniunai C July 17, 2016, 2:52 a.m. OK GNU C++11 TESTS 26 31 409600 2000
19016972 Testment C July 10, 2016, 11:44 p.m. OK GNU C++11 TESTS 26 31 409600 2000
36276296 Wolf. C March 14, 2018, 12:59 p.m. OK GNU C++11 TESTS 26 31 2048000 2000
26109805 y_shindoh C April 3, 2017, 10:48 p.m. OK GNU C++11 TESTS 26 31 2048000 2000
24451521 AmrMorsy2 C Feb. 5, 2017, 12:48 p.m. OK GNU C++11 TESTS 26 31 2048000 2000
17508520 loyolman C April 25, 2016, 12:20 p.m. OK GNU C++11 TESTS 26 31 2867200 2000
32130737 Ahmed_Morsy C Nov. 7, 2017, 9:09 p.m. OK GNU C++11 TESTS 26 46 0 2000
27306645 Bengal_Tiger C May 23, 2017, 6:06 p.m. OK GNU C++11 TESTS 26 46 0 2000
31907475 platypus179 C Oct. 30, 2017, 11:11 p.m. OK GNU C++14 TESTS 26 30 0 2000
51260470 YaoYaoLe C March 13, 2019, 1:07 p.m. OK GNU C++14 TESTS 26 46 0 2000
27596585 Your_dad C June 5, 2017, 5:10 p.m. OK GNU C++14 TESTS 26 46 102400 2000
44270670 Rahul C Oct. 13, 2018, 7 p.m. OK GNU C++14 TESTS 26 46 204800 2000
68455859 xvenom99 C Jan. 9, 2020, 4:11 p.m. OK GNU C++14 TESTS 26 46 409600 2000
41568379 resolute C Aug. 13, 2018, 7:06 p.m. OK GNU C++14 TESTS 26 46 409600 2000
39027468 kashyap_archit C June 7, 2018, 4:58 p.m. OK GNU C++14 TESTS 26 46 409600 2000
38580506 tataky C May 24, 2018, 8:26 a.m. OK GNU C++14 TESTS 26 46 409600 2000
29868654 abhi2812 C Aug. 29, 2017, 2:46 p.m. OK GNU C++14 TESTS 26 46 409600 2000
51280102 AngrySeal C March 14, 2019, 2:55 a.m. OK GNU C++14 TESTS 26 46 512000 2000
40085899 harshit601 C July 8, 2018, 1:06 p.m. OK GNU C++17 TESTS 26 46 0 2000
50610638 Stroustrup C Feb. 28, 2019, 4:42 p.m. OK GNU C++17 TESTS 26 46 102400 2000
57571708 salihfc C July 23, 2019, 5:31 a.m. OK GNU C++17 TESTS 26 46 204800 2000
41246483 Photon_ C Aug. 5, 2018, 1:24 p.m. OK GNU C++17 TESTS 26 46 204800 2000
62340288 Yoo_booy C Oct. 11, 2019, 4:34 a.m. OK GNU C++17 TESTS 26 46 409600 2000
56993369 LeoRiether C July 13, 2019, 7:49 p.m. OK GNU C++17 TESTS 26 46 409600 2000
53311267 jaaguptamme C April 26, 2019, 6:59 a.m. OK GNU C++17 TESTS 26 46 409600 2000
56286182 HazemEssawi C June 29, 2019, 7:44 p.m. OK GNU C++17 TESTS 26 46 512000 2000
54833044 ish.ranga11 C May 30, 2019, 9:41 a.m. OK GNU C++17 TESTS 26 46 921600 2000
56810093 pkgunboat C July 10, 2019, 3:39 p.m. OK GNU C++17 TESTS 26 46 1228800 2000
64113500 Martynas C Nov. 2, 2019, 7:39 p.m. OK Go TESTS 26 93 0 2000
4917774 autotaker C Oct. 28, 2013, 3:28 a.m. OK Haskell TESTS 26 62 1638400 2000
6166881 mashinist C March 28, 2014, 12:47 p.m. OK Java 6 TESTS 26 155 2252800 2000
4906229 pepradere C Oct. 26, 2013, 5:30 p.m. OK Java 6 TESTS 26 187 3174400 2000
4900607 mahmoudhanafi C Oct. 26, 2013, 7:41 a.m. OK Java 6 TESTS 26 218 4403200 2000
4947617 udontknowme C Oct. 31, 2013, 8:39 p.m. OK Java 6 TESTS 26 218 9113600 2000
5131473 wackloner C Nov. 17, 2013, 2:06 p.m. OK Java 6 TESTS 26 234 2662400 2000
4906879 alibaba C Oct. 26, 2013, 7:46 p.m. OK Java 6 TESTS 26 343 10035200 2000
4885361 Ahmed.Ibrahem C Oct. 25, 2013, 4:20 p.m. OK Java 6 TESTS 26 374 10035200 2000
4889628 mkirsche C Oct. 25, 2013, 5:15 p.m. OK Java 6 TESTS 26 468 6451200 2000
4888889 ankushjindal278 C Oct. 25, 2013, 5:04 p.m. OK Java 6 TESTS 26 717 6451200 2000
11606995 paresh C June 16, 2015, 12:47 p.m. OK Java 7 TESTS 26 78 0 2000
4881606 uwi C Oct. 25, 2013, 3:45 p.m. OK Java 7 TESTS 26 78 204800 2000
11606004 kuldeeppatel C June 16, 2015, 11:32 a.m. OK Java 7 TESTS 26 93 0 2000
4890964 flevix C Oct. 25, 2013, 6 p.m. OK Java 7 TESTS 26 93 0 2000
4888160 raha C Oct. 25, 2013, 4:54 p.m. OK Java 7 TESTS 26 93 0 2000
4884719 sweiss C Oct. 25, 2013, 4:13 p.m. OK Java 7 TESTS 26 93 0 2000
4883501 AZerone C Oct. 25, 2013, 4:02 p.m. OK Java 7 TESTS 26 93 0 2000
5484699 HidenoriS C Dec. 21, 2013, 3 a.m. OK Java 7 TESTS 26 93 102400 2000
5363268 HidenoriS C Dec. 6, 2013, 10:30 p.m. OK Java 7 TESTS 26 93 102400 2000
4921505 Azat_Yusupov C Oct. 28, 2013, 2:44 p.m. OK Java 7 TESTS 26 93 204800 2000
49377410 mandark27 C Feb. 2, 2019, 9:04 p.m. OK Java 8 TESTS 26 109 0 2000
10543016 fnch C April 1, 2015, 2:47 p.m. OK Java 8 TESTS 26 140 0 2000
18151529 Corvus C May 29, 2016, 10:01 p.m. OK Java 8 TESTS 26 140 20582400 2000
25587229 VerticesEdge C March 18, 2017, 2:10 a.m. OK Java 8 TESTS 26 140 20787200 2000
65756927 kocko C Nov. 26, 2019, 2:19 p.m. OK Java 8 TESTS 26 155 0 2000
52451438 Verdusk C April 7, 2019, 9:56 a.m. OK Java 8 TESTS 26 155 0 2000
35136114 parth_15 C Feb. 10, 2018, 7:53 p.m. OK Java 8 TESTS 26 155 20684800 2000
25568335 Slamur C March 17, 2017, 9:42 a.m. OK Java 8 TESTS 26 186 21094400 2000
36286093 ShafinKhadem C March 14, 2018, 7:55 p.m. OK Java 8 TESTS 26 187 20889600 2000
68139490 mj101 C Jan. 3, 2020, 9 p.m. OK Java 8 TESTS 26 997 0 2000
6165117 Eeyore C March 28, 2014, 6:30 a.m. OK JavaScript TESTS 26 343 4710400 2000
4935408 byserge C Oct. 30, 2013, 1:55 p.m. OK Mono C# TESTS 26 109 6451200 2000
4891893 T-D-K C Oct. 25, 2013, 6:35 p.m. OK Mono C# TESTS 26 156 4198400 2000
4891181 Guliash C Oct. 25, 2013, 6:04 p.m. OK MS C# TESTS 26 78 8499200 2000
4904954 Kavir C Oct. 26, 2013, 1:45 p.m. OK MS C# TESTS 26 124 2969600 2000
7826868 azukun C Sept. 18, 2014, 2:50 p.m. OK MS C# TESTS 26 155 11264000 2000
4971949 QuantumKnight C Nov. 2, 2013, 3:43 p.m. OK MS C# TESTS 26 202 3584000 2000
17316103 Mem C April 14, 2016, 3:08 p.m. OK MS C# TESTS 26 405 7270400 2000
7578808 Kamenev C Aug. 26, 2014, 9:37 a.m. OK MS C# TESTS 26 467 5734400 2000
17718500 fr0st C May 5, 2016, 1:46 p.m. OK MS C# TESTS 26 561 12595200 2000
4928546 riceCornSorghum C Oct. 29, 2013, 12:30 p.m. OK MS C++ TESTS 26 31 307200 2000
4889124 HorgH C Oct. 25, 2013, 5:07 p.m. OK MS C++ TESTS 26 31 716800 2000
4899197 NateRiverxkh C Oct. 26, 2013, 3 a.m. OK MS C++ TESTS 26 31 716800 2000
4888838 Anarivu C Oct. 25, 2013, 5:03 p.m. OK MS C++ TESTS 26 31 716800 2000
4888362 usingtc C Oct. 25, 2013, 4:56 p.m. OK MS C++ TESTS 26 31 716800 2000
4949002 Yury_Bandarchuk C Nov. 1, 2013, 6:35 a.m. OK MS C++ TESTS 26 31 1024000 2000
4884824 MrDindows C Oct. 25, 2013, 4:14 p.m. OK MS C++ TESTS 26 31 1433600 2000
4900320 Morgan_HackProg C Oct. 26, 2013, 6:50 a.m. OK MS C++ TESTS 26 46 0 2000
7435832 vviital C Aug. 12, 2014, 3:27 p.m. OK MS C++ TESTS 26 46 0 2000
4950119 ZaakDov C Nov. 1, 2013, 10:02 a.m. OK MS C++ TESTS 26 46 0 2000
62032747 vjudge4 C Oct. 7, 2019, 2 a.m. OK MS C++ 2017 TESTS 26 46 819200 2000
61822616 vjudge5 C Oct. 4, 2019, 3:04 a.m. OK MS C++ 2017 TESTS 26 62 819200 2000
61825324 vjudge2 C Oct. 4, 2019, 4:28 a.m. OK MS C++ 2017 TESTS 26 77 819200 2000
4931023 kurakun C Oct. 29, 2013, 8:58 p.m. OK Ocaml TESTS 26 78 2969600 2000
4986437 Frank84 C Nov. 4, 2013, 1:38 p.m. OK PHP TESTS 26 234 13516800 2000
4915754 mayakin C Oct. 27, 2013, 6:51 p.m. OK PHP TESTS 26 327 0 2000
41526780 yugle7 C Aug. 12, 2018, 12:22 p.m. OK PyPy 3 TESTS 26 857 10240000 2000
4889073 nwi C Oct. 25, 2013, 5:07 p.m. OK Python 2 TESTS 26 218 3174400 2000
4905157 devanshug C Oct. 26, 2013, 2:19 p.m. OK Python 2 TESTS 26 249 8908800 2000
4888553 ben.hwang C Oct. 25, 2013, 4:59 p.m. OK Python 2 TESTS 26 265 1843200 2000
4905179 devanshug C Oct. 26, 2013, 2:24 p.m. OK Python 2 TESTS 26 265 9318400 2000
4891590 victsou C Oct. 25, 2013, 6:20 p.m. OK Python 2 TESTS 26 280 4915200 2000
30527560 Khushboo05 C Sept. 19, 2017, 7:27 p.m. OK Python 2 TESTS 26 405 0 2000
30959078 arpitkath C Oct. 3, 2017, 5:52 a.m. OK Python 2 TESTS 26 405 102400 2000
4887108 spy C Oct. 25, 2013, 4:41 p.m. OK Python 2 TESTS 26 468 102400 2000
14333865 marceloclp C Nov. 18, 2015, 8:38 p.m. OK Python 2 TESTS 26 483 102400 2000
44532133 noelcowm C Oct. 19, 2018, 7:03 a.m. OK Python 2 TESTS 26 702 4505600 2000
41526531 yugle7 C Aug. 12, 2018, 12:14 p.m. OK Python 3 TESTS 26 545 4096000 2000
12115033 Ryan_MuQ C July 19, 2015, 9:22 a.m. OK Python 3 TESTS 26 624 2764800 2000
5043146 Muller20 C Nov. 10, 2013, 3:01 p.m. OK Python 3 TESTS 26 1029 512000 2000
13939867 step_by_step C Oct. 29, 2015, 7:57 p.m. OK Python 3 TESTS 26 1122 307200 2000
8026950 manoprenko C Sept. 29, 2014, 2:59 p.m. OK Python 3 TESTS 26 1138 2560000 2000
4913199 hatsuyuki15 C Oct. 27, 2013, 1:18 p.m. OK Python 3 TESTS 26 1216 819200 2000
37581803 nowyyz C April 24, 2018, 7 p.m. OK Python 3 TESTS 26 1372 7168000 2000
42135286 Mk_Python_v1 C Aug. 26, 2018, 10:57 p.m. OK Python 3 TESTS 26 1403 716800 2000
4888984 ZhNV C Oct. 25, 2013, 5:05 p.m. OK Python 3 TESTS 26 1684 3788800 2000
32802613 ditsing C Nov. 30, 2017, 10:48 a.m. OK Rust TESTS 26 561 1433600 2000
4887506 limed C Oct. 25, 2013, 4:45 p.m. OK Scala TESTS 26 374 204800 2000

remove filters

Back to search problems