Good Bye 2013

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
379 Good Bye 2013 FINISHED False 7200 387988223 Dec. 30, 2013, 3:30 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 378 ) E New Year Tree Decorations PROGRAMMING geometry schedules sortings 2500

Due to atheistic Soviet past, Christmas wasn't officially celebrated in Russia for most of the twentieth century. As a result, the Russian traditions for Christmas and New Year mixed into one event celebrated on the New Year but including the tree, a Santa-like 'Grandfather Frost', presents and huge family reunions and dinner parties all over the country. Bying a Tree at the New Year and installing it in the house is a tradition. Usually the whole family decorates the tree on the New Year Eve. We hope that Codeforces is a big and loving family, so in this problem we are going to decorate a tree as well. So, our decoration consists of n pieces, each piece is a piece of colored paper, its border is a closed polyline of a special shape. The pieces go one by one as is shown on the picture. The i -th piece is a polyline that goes through points: (0, 0) , (0, y 0 ) , (1, y 1 ) , (2, y 2 ) , ..., ( k , y k ) , ( k , 0) . The width of each piece equals k . The piece number 1 (shown red on the figure) is the outer piece (we see it completely), piece number 2 (shown yellow) follows it (we don't see it completely as it is partially closed by the first piece) and so on. The programmers are quite curious guys, so the moment we hung a decoration on the New Year tree we started to wonder: what area of each piece can people see? The first line contains two integers, n and k (1 ≤ n , k ≤ 300) . Each of the following n lines contains k + 1 integers — the description of the polyline. If the i -th line contains ontegers y i , 0 , y i , 1 , ..., y i , k , that means that the polyline of the i -th piece goes through points (0, 0) , (0, y i , 0 ) , (1, y i , 1 ) , (2, y i , 2 ) , ..., ( k , y i , k ) , ( k , 0) (1 ≤ y i , j ≤ 1000) . Print n real numbers — for each polyline, the area of its visible part. The answer will be considered correct if its relative or absolute error do not exceed 10 - 4 .

Tutorials

Tutorial Good Bye 2013

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
38575521 zx2003 E May 24, 2018, 3:08 a.m. OK GNU C++ TESTS 15 31 409600 2500
10995030 function348 E May 4, 2015, 11:30 a.m. OK GNU C++ TESTS 15 31 1024000 2500
27941428 vjudge2 E June 21, 2017, 8:52 a.m. OK GNU C++ TESTS 15 31 5017600 2500
27938524 vjudge2 E June 21, 2017, 6:29 a.m. OK GNU C++ TESTS 15 31 38195200 2500
27944853 vjudge3 E June 21, 2017, 11:43 a.m. OK GNU C++ TESTS 15 46 7884800 2500
27944817 tkandi E June 21, 2017, 11:40 a.m. OK GNU C++ TESTS 15 46 7884800 2500
27939378 vjudge3 E June 21, 2017, 7:20 a.m. OK GNU C++ TESTS 15 46 14745600 2500
27939370 Feeey E June 21, 2017, 7:20 a.m. OK GNU C++ TESTS 15 46 14745600 2500
40989205 ReaLNero1 E July 30, 2018, 10:42 p.m. OK GNU C++ TESTS 15 77 102400 2500
11273796 Amr_Hassan E May 26, 2015, 5:41 a.m. OK GNU C++ TESTS 15 78 716800 2500
27350257 ujzwt4it E May 26, 2017, 7:08 a.m. OK GNU C++11 TESTS 15 31 512000 2500
17085378 Tima E April 1, 2016, 6:06 a.m. OK GNU C++11 TESTS 15 31 3379200 2500
27936932 The_Unbeatable E June 21, 2017, 4:24 a.m. OK GNU C++11 TESTS 15 31 33587200 2500
49944119 vjudge1 E Feb. 15, 2019, 11:15 a.m. OK GNU C++11 TESTS 15 46 102400 2500
50061319 vjudge2 E Feb. 17, 2019, 12:46 p.m. OK GNU C++11 TESTS 15 46 1536000 2500
50061297 chc_1234567890 E Feb. 17, 2019, 12:46 p.m. OK GNU C++11 TESTS 15 46 1536000 2500
13226522 dreamoon_love_AA E Sept. 26, 2015, 1:03 a.m. OK GNU C++11 TESTS 15 46 1843200 2500
17085402 Tima E April 1, 2016, 6:09 a.m. OK GNU C++11 TESTS 15 46 3379200 2500
17085390 Tima E April 1, 2016, 6:08 a.m. OK GNU C++11 TESTS 15 46 3379200 2500
12472998 CyberZHG E Aug. 12, 2015, 3:01 a.m. OK GNU C++11 TESTS 15 62 409600 2500
27291008 PORONGON E May 22, 2017, 9:26 p.m. OK GNU C++14 TESTS 15 46 1433600 2500
49940675 wangyc E Feb. 15, 2019, 9:28 a.m. OK GNU C++14 TESTS 15 46 1536000 2500
22803832 ngochai94 E Dec. 8, 2016, 7:22 a.m. OK GNU C++14 TESTS 15 62 921600 2500
49039803 black_horse2014 E Jan. 27, 2019, 5:59 a.m. OK GNU C++14 TESTS 15 62 3072000 2500
23520619 jerry73204 E Jan. 3, 2017, 4:42 p.m. OK GNU C++14 TESTS 15 249 3379200 2500
23543936 Ali.Pi E Jan. 4, 2017, 8:59 p.m. OK GNU C++14 TESTS 15 373 2252800 2500
49937074 vjudge5 E Feb. 15, 2019, 7:48 a.m. OK GNU C++14 TESTS 15 389 7987200 2500
49935954 sunyunqi E Feb. 15, 2019, 7:17 a.m. OK GNU C++14 TESTS 15 389 7987200 2500
49930071 vjudge3 E Feb. 15, 2019, 3:42 a.m. OK GNU C++14 TESTS 15 468 11980800 2500
49934623 LLL_2820 E Feb. 15, 2019, 6:39 a.m. OK GNU C++14 TESTS 15 499 7987200 2500
49940702 vjudge4 E Feb. 15, 2019, 9:28 a.m. OK GNU C++17 TESTS 15 46 1536000 2500
56399672 ruo E July 1, 2019, 4:15 p.m. OK GNU C++17 TESTS 15 61 614400 2500
64337591 how_to_become_purple E Nov. 5, 2019, 11:14 p.m. OK GNU C++17 TESTS 15 77 614400 2500
44691064 chirs241097 E Oct. 22, 2018, 12:02 p.m. OK GNU C++17 TESTS 15 233 409600 2500
49612865 tataky E Feb. 8, 2019, 3:27 a.m. OK GNU C++17 TESTS 15 234 2150400 2500
49938076 inbred0iq E Feb. 15, 2019, 8:15 a.m. OK GNU C++17 TESTS 15 530 16793600 2500
49938478 chenmingyu E Feb. 15, 2019, 8:26 a.m. OK GNU C++17 TESTS 15 592 7987200 2500
49937083 vjudge4 E Feb. 15, 2019, 7:48 a.m. OK GNU C++17 TESTS 15 624 7987200 2500
49935689 vjudge3 E Feb. 15, 2019, 7:12 a.m. OK GNU C++17 TESTS 15 639 7987200 2500
49934717 SkyWT E Feb. 15, 2019, 6:43 a.m. OK GNU C++17 TESTS 15 639 7987200 2500
15142591 HappyNewYearMike E Dec. 31, 2015, 10:36 p.m. OK Java 7 TESTS 15 202 102400 2500
16338911 antonkov E Feb. 25, 2016, 11:54 p.m. OK Java 8 TESTS 15 171 0 2500
11099871 polequoll E May 14, 2015, 3:14 p.m. OK MS C++ TESTS 15 31 5836800 2500
15182004 step_by_step E Jan. 4, 2016, 2:22 p.m. OK MS C++ TESTS 15 62 1843200 2500
30102090 bangx3 E Sept. 5, 2017, 2:21 p.m. OK MS C++ TESTS 15 233 1331200 2500

remove filters

Back to search problems