Codeforces Round 325 (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
585 Codeforces Round 325 (Div. 1) FINISHED False 7200 287182199 Oct. 12, 2015, 9:10 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1633 ) D Lizard Era: Beginning PROGRAMMING meet-in-the-middle 2500

B'In the game Lizard Era: Beginning the protagonist will travel with three companions: Lynn, Meliana and Worrigan. Overall the game has n mandatory quests. To perform each of them, you need to take exactly two companions. The attitude of each of the companions to the hero is an integer. Initially, the attitude of each of them to the hero of neutral and equal to 0. As the hero completes quests, he makes actions that change the attitude of the companions, whom he took to perform this task, in positive or negative direction. Tell us what companions the hero needs to choose to make their attitude equal after completing all the quests. If this can be done in several ways, choose the one in which the value of resulting attitude is greatest possible. The first line contains positive integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8925) -- the number of important tasks. Next n lines contain the descriptions of the tasks -- the i-th line contains three integers li, xe2 x80 x89mi, xe2 x80 x89wi -- the values by which the attitude of Lynn, Meliana and Worrigan respectively will change towards the hero if the hero takes them on the i-th task. All the numbers in the input are integers and do not exceed 107 in absolute value. If there is no solution, print in the first line "Impossible". Otherwise, print n lines, two characters is each line -- in the i-th line print the first letters of the companions ' names that hero should take to complete the i-th task ( 'L ' for Lynn, 'M ' for Meliana, 'W ' for Worrigan). Print the letters in any order, if there are multiple solutions, print any of them.'...

Tutorials

Разбор Codeforces Round #325

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
13586282 ruban D Oct. 13, 2015, 3:25 a.m. OK Delphi TESTS 60 1996 233164800 2500
13824144 thythy D Oct. 24, 2015, 12:26 p.m. OK GNU C++ TESTS 61 124 51916800 2500
13821355 vjudge4 D Oct. 24, 2015, 9:16 a.m. OK GNU C++ TESTS 61 124 52121600 2500
13821326 chenyushuo___ D Oct. 24, 2015, 9:14 a.m. OK GNU C++ TESTS 61 124 52121600 2500
13849668 vjudge2 D Oct. 25, 2015, 10:41 a.m. OK GNU C++ TESTS 61 156 51916800 2500
40985990 ReaLNero1 D July 30, 2018, 8:17 p.m. OK GNU C++ TESTS 61 156 52121600 2500
26352150 vjudge3 D April 14, 2017, 7:49 a.m. OK GNU C++ TESTS 61 171 90112000 2500
40918172 XTyuan D July 29, 2018, 1:01 p.m. OK GNU C++ TESTS 61 187 51916800 2500
17548494 y0rkl1u D April 28, 2016, 2:42 a.m. OK GNU C++ TESTS 61 218 43315200 2500
13567701 jcvb D Oct. 12, 2015, 10:30 a.m. OK GNU C++ TESTS 60 233 154521600 2500
14681451 rainbow979 D Dec. 7, 2015, 12:21 a.m. OK GNU C++ TESTS 61 249 58675200 2500
45402217 vjudge4 D Nov. 7, 2018, 9:16 a.m. OK GNU C++11 TESTS 61 109 52121600 2500
45401543 vjudge1 D Nov. 7, 2018, 8:50 a.m. OK GNU C++11 TESTS 61 109 52121600 2500
52945964 libraqz D April 18, 2019, 11:34 a.m. OK GNU C++11 TESTS 61 109 197324800 2500
45401102 vjudge3 D Nov. 7, 2018, 8:36 a.m. OK GNU C++11 TESTS 61 124 51916800 2500
45401188 vjudge4 D Nov. 7, 2018, 8:39 a.m. OK GNU C++11 TESTS 61 124 52121600 2500
27283090 Toll D May 22, 2017, 11:48 a.m. OK GNU C++11 TESTS 61 202 66150400 2500
13571875 sharph D Oct. 12, 2015, 11:07 a.m. OK GNU C++11 TESTS 60 248 50483200 2500
13570966 Golovanov399 D Oct. 12, 2015, 11 a.m. OK GNU C++11 TESTS 60 265 44134400 2500
13570446 dreamoon_love_AA D Oct. 12, 2015, 10:56 a.m. OK GNU C++11 TESTS 60 280 79769600 2500
13620309 Ioser D Oct. 15, 2015, 12:22 p.m. OK GNU C++11 TESTS 61 296 106803200 2500
32498662 FallDream D Nov. 20, 2017, 12:11 p.m. OK GNU C++14 TESTS 61 171 52121600 2500
29969725 ko_osaga D Sept. 1, 2017, 11:32 a.m. OK GNU C++14 TESTS 61 327 100864000 2500
26972051 dupazbitastorazy D May 9, 2017, 10:48 a.m. OK GNU C++14 TESTS 61 343 67276800 2500
51939918 Akihiko_Kayaba D March 28, 2019, 2:02 p.m. OK GNU C++14 TESTS 61 389 25292800 2500
29902029 vjudge3 D Aug. 29, 2017, 8:11 p.m. OK GNU C++14 TESTS 61 405 100864000 2500
29901984 andwho D Aug. 29, 2017, 8:08 p.m. OK GNU C++14 TESTS 61 420 100864000 2500
36626096 msmlkm D March 25, 2018, 7:30 p.m. OK GNU C++14 TESTS 61 483 131584000 2500
27596787 prashanttyagi D June 5, 2017, 5:18 p.m. OK GNU C++14 TESTS 61 577 8499200 2500
26646804 Hujiwara D April 24, 2017, 6:12 p.m. OK GNU C++14 TESTS 61 592 10444800 2500
34938301 wrinx D Feb. 5, 2018, 8:37 a.m. OK GNU C++14 TESTS 61 592 244531200 2500
53003455 luogu_bot5 D April 19, 2019, 8:22 a.m. OK GNU C++17 TESTS 61 124 197427200 2500
63059108 rareone0602 D Oct. 21, 2019, 7:51 a.m. OK GNU C++17 TESTS 61 451 67379200 2500
43675038 DZYO D Oct. 2, 2018, 7:01 a.m. OK GNU C++17 TESTS 61 623 8806400 2500
40743728 Photon_ D July 25, 2018, 1:31 p.m. OK GNU C++17 TESTS 61 623 63897600 2500
64051919 Jatana D Nov. 1, 2019, 10:15 p.m. OK GNU C++17 TESTS 61 701 84275200 2500
55963274 89264270823 D June 23, 2019, 10:40 a.m. OK GNU C++17 TESTS 61 811 151449600 2500
36511433 NightRaven17 D March 22, 2018, 5:42 p.m. OK GNU C++17 TESTS 61 873 62156800 2500
63920040 Phortox D Oct. 31, 2019, 11:25 a.m. OK GNU C++17 TESTS 61 935 164249600 2500
58229059 Noureldin D Aug. 3, 2019, 3:50 p.m. OK GNU C++17 TESTS 61 1060 79667200 2500
46252254 vjudge3 D Nov. 26, 2018, 2:44 p.m. OK GNU C++17 TESTS 61 1091 21504000 2500
13588613 XelMed D Oct. 13, 2015, 7:29 a.m. OK Java 7 TESTS 60 1013 141312000 2500
13567705 cvm D Oct. 12, 2015, 10:30 a.m. OK Java 7 TESTS 60 1388 117350400 2500
14701940 edorundo D Dec. 8, 2015, 5:36 p.m. OK Java 7 TESTS 61 1575 138649600 2500
13590292 Slamur D Oct. 13, 2015, 9:35 a.m. OK Java 7 TESTS 60 1622 148889600 2500
13590360 Slamur D Oct. 13, 2015, 9:41 a.m. OK Java 7 TESTS 60 1669 148889600 2500
13570659 mashinist D Oct. 12, 2015, 10:58 a.m. OK Java 7 TESTS 60 1886 236544000 2500
14391350 stacy992 D Nov. 21, 2015, 4:41 a.m. OK Java 7 TESTS 61 1996 42086400 2500
14902391 sandun D Dec. 20, 2015, 5:05 p.m. OK Java 8 TESTS 61 780 44544000 2500
25135604 DiegoAE D March 1, 2017, 8:32 p.m. OK Java 8 TESTS 61 841 76185600 2500
13576073 Azat_Yusupov D Oct. 12, 2015, 3:06 p.m. OK Java 8 TESTS 60 1029 37376000 2500
13575656 Sumeet.Varma D Oct. 12, 2015, 2:56 p.m. OK Java 8 TESTS 60 1045 69529600 2500
13565392 uwi D Oct. 12, 2015, 10:11 a.m. OK Java 8 TESTS 60 1076 39628800 2500
13747800 marcose18 D Oct. 20, 2015, 8:20 a.m. OK Java 8 TESTS 61 1232 69324800 2500
13604993 fnch D Oct. 14, 2015, 10:18 a.m. OK Java 8 TESTS 61 1263 68403200 2500
43048511 ZeyadKhattab D Sept. 18, 2018, 7:31 p.m. OK Java 8 TESTS 61 1387 58060800 2500
13566161 hama-du D Oct. 12, 2015, 10:17 a.m. OK Java 8 TESTS 60 1466 105984000 2500
16037744 alibaba D Feb. 15, 2016, 5:49 p.m. OK Java 8 TESTS 61 1575 158924800 2500
13568603 Vedensky D Oct. 12, 2015, 10:39 a.m. OK MS C++ TESTS 60 545 185958400 2500
13569728 Milanin D Oct. 12, 2015, 10:49 a.m. OK MS C++ TESTS 60 670 19251200 2500
13567618 NVAL D Oct. 12, 2015, 10:29 a.m. OK MS C++ TESTS 60 717 25702400 2500
45408509 vjudge1 D Nov. 7, 2018, 10:55 a.m. OK MS C++ TESTS 61 748 19456000 2500
13661903 vanvector D Oct. 16, 2015, 9:37 a.m. OK MS C++ TESTS 61 748 84070400 2500
13592894 tangshitao D Oct. 13, 2015, 12:58 p.m. OK MS C++ TESTS 60 795 30105600 2500
13592041 Carups D Oct. 13, 2015, 12:01 p.m. OK MS C++ TESTS 60 1107 21401600 2500
13592777 Carups D Oct. 13, 2015, 12:50 p.m. OK MS C++ TESTS 60 1122 267776000 2500
13565734 jDomantas D Oct. 12, 2015, 10:14 a.m. OK MS C++ TESTS 60 1231 21401600 2500
13570746 FxF D Oct. 12, 2015, 10:58 a.m. OK MS C++ TESTS 60 1341 161689600 2500
35894837 _____k_____ D March 3, 2018, 4:30 p.m. OK PyPy 3 TESTS 61 1138 119091200 2500
35894105 ______n______ D March 3, 2018, 4:13 p.m. OK PyPy 3 TESTS 61 1138 119091200 2500
35894031 ______u______ D March 3, 2018, 4:13 p.m. OK PyPy 3 TESTS 61 1138 119091200 2500
35893810 _____i_____ D March 3, 2018, 4:07 p.m. OK PyPy 3 TESTS 61 1138 119091200 2500
35885005 ______h______ D March 3, 2018, 1:21 p.m. OK PyPy 3 TESTS 61 1138 119091200 2500
35884702 ______k______ D March 3, 2018, 1:15 p.m. OK PyPy 3 TESTS 61 1138 119091200 2500
35883559 ______i______ D March 3, 2018, 12:56 p.m. OK PyPy 3 TESTS 61 1138 119091200 2500
35874895 ______M______ D March 3, 2018, 8:03 a.m. OK PyPy 3 TESTS 61 1138 119091200 2500
44924313 shashkovs D Oct. 26, 2018, 7:20 p.m. OK PyPy 3 TESTS 61 1886 102297600 2500
14140234 grothendieck D Nov. 8, 2015, 11:37 a.m. OK PyPy 3 TESTS 61 1964 98201600 2500

remove filters

Back to search problems