Codeforces Beta Round 58

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
62 Codeforces Beta Round 58 FINISHED False 7200 477756023 Feb. 25, 2011, 4 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 281 ) E World Evil PROGRAMMING dp flows 2700

As a result of Pinky and Brain's mysterious experiments in the Large Hadron Collider some portals or black holes opened to the parallel dimension. And the World Evil has crept to the veil between their world and ours. Brain quickly evaluated the situation and he understood that the more evil tentacles creep out and become free, the higher is the possibility that Brain will rule the world. The collider's constriction is a rectangular grid rolled into a cylinder and consisting of n rows and m columns such as is shown in the picture below: In this example n = 4 , m = 5 . Dotted lines are corridores that close each column to a ring, i. e. connect the n -th and the 1 -th rows of the grid. In the leftmost column of the grid the portals are situated and the tentacles of the World Evil are ready to creep out from there. In the rightmost column the exit doors are located. The tentacles can only get out through those doors. The segments joining the nodes of the grid are corridors. Brain would be glad to let all the tentacles out but he faces a problem: the infinite number of tentacles can creep out of the portals, every tentacle possesses infinite length and some width and the volume of the corridors are, unfortunately, quite limited. Brain could approximately evaluate the maximal number of tentacles that will be able to crawl through every corridor. Now help the mice to determine the maximal number of tentacles of the World Evil that will crawl out of the Large Hadron Collider. The first line of the input file contains two integers n and m ( 2 ≤ n ≤ 5 , 2 ≤ m ≤ 10 5 ). They are the sizes of the Large Hadron Collider grid. The next m - 1 lines contain n numbers each. They are the horizontal corridors' capacities. The next m lines contain n numbers each. They are the vertical corridors' capacities. Corridors are described from left to right and from top to bottom. Every n -th vertical corridor connects nodes of the n -th and 1 -th rows. A corridor's capacity is a non

Tutorials

Codeforces Beta Round #58 tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
2311969 KaiZeR E Oct. 7, 2012, 3:08 p.m. OK Delphi TESTS 18 1031 8908800 2700
1510872 sillycross E April 12, 2012, 6:12 a.m. OK FPC TESTS 18 580 5836800 2700
1218636 zanoes E Feb. 23, 2012, 6:17 a.m. OK FPC TESTS 18 780 26726400 2700
1220210 coolinging E Feb. 24, 2012, 12:58 a.m. OK FPC TESTS 18 810 5017600 2700
1810719 blackapple E June 20, 2012, 5:40 a.m. OK FPC TESTS 18 1200 84992000 2700
1218806 zanoes E Feb. 23, 2012, 8:22 a.m. OK FPC TESTS 18 1450 26726400 2700
1218858 zanoes E Feb. 23, 2012, 8:48 a.m. OK FPC TESTS 18 1630 26726400 2700
1218847 zanoes E Feb. 23, 2012, 8:42 a.m. OK FPC TESTS 18 1700 26726400 2700
692085 scottai1 E Sept. 13, 2011, 7:36 a.m. OK GNU C TESTS 18 720 6144000 2700
691826 zpl1 E Sept. 13, 2011, 3:10 a.m. OK GNU C TESTS 18 1450 99123200 2700
6655254 gjh E May 19, 2014, 9:17 a.m. OK GNU C++ TESTS 18 528 5632000 2700
40993058 ReaLNero1 E July 31, 2018, 1:44 a.m. OK GNU C++ TESTS 18 530 5427200 2700
35897014 ______u______ E March 3, 2018, 5:41 p.m. OK GNU C++ TESTS 18 560 7782400 2700
35897013 _____k_____ E March 3, 2018, 5:41 p.m. OK GNU C++ TESTS 18 560 7782400 2700
35895999 ______n______ E March 3, 2018, 4:58 p.m. OK GNU C++ TESTS 18 560 7782400 2700
35895783 _____i_____ E March 3, 2018, 4:52 p.m. OK GNU C++ TESTS 18 560 7782400 2700
35889580 ______h______ E March 3, 2018, 2:42 p.m. OK GNU C++ TESTS 18 560 7782400 2700
35889560 ______k______ E March 3, 2018, 2:42 p.m. OK GNU C++ TESTS 18 560 7782400 2700
35887951 ______i______ E March 3, 2018, 2:13 p.m. OK GNU C++ TESTS 18 560 7782400 2700
35885872 ______M______ E March 3, 2018, 1:37 p.m. OK GNU C++ TESTS 18 560 7782400 2700
9441774 AmirAz E Jan. 16, 2015, 9:10 a.m. OK GNU C++0x TESTS 18 2308 12288000 2700
12162149 HellKitsune E July 22, 2015, 9:56 a.m. OK GNU C++11 TESTS 18 468 3993600 2700
45252486 KCSC E Nov. 3, 2018, 5:25 p.m. OK GNU C++11 TESTS 18 530 3993600 2700
57906286 lopare E July 28, 2019, 5:45 p.m. OK GNU C++11 TESTS 18 530 5632000 2700
27520190 754986421653 E June 2, 2017, 9:34 a.m. OK GNU C++11 TESTS 18 560 5632000 2700
27157046 snowflake E May 16, 2017, 10:43 a.m. OK GNU C++11 TESTS 18 560 5734400 2700
27151583 RNS_CUS E May 16, 2017, 6:36 a.m. OK GNU C++11 TESTS 18 560 5734400 2700
27151513 RNS_CUS E May 16, 2017, 6:31 a.m. OK GNU C++11 TESTS 18 560 5734400 2700
33508392 EmanuelNrx E Dec. 22, 2017, 1:30 p.m. OK GNU C++11 TESTS 18 560 6041600 2700
27151012 RNS_CUS E May 16, 2017, 5:56 a.m. OK GNU C++11 TESTS 18 590 5632000 2700
47373069 luogu_bot1 E Dec. 22, 2018, 3:25 p.m. OK GNU C++11 TESTS 18 592 3993600 2700
23645918 lys1280023 E Jan. 8, 2017, 12:26 p.m. OK GNU C++14 TESTS 18 716 6451200 2700
27446497 0w1 E May 30, 2017, 10:57 a.m. OK GNU C++14 TESTS 18 746 3993600 2700
56016278 sorry_im_smurfing E June 24, 2019, 9:29 p.m. OK GNU C++14 TESTS 18 748 5632000 2700
27150836 RNS_CUS E May 16, 2017, 5:44 a.m. OK GNU C++14 TESTS 18 748 5632000 2700
27150817 RNS_CUS E May 16, 2017, 5:43 a.m. OK GNU C++14 TESTS 18 748 5632000 2700
38645577 AleksandraZh E May 27, 2018, 2:05 a.m. OK GNU C++14 TESTS 18 780 12288000 2700
38645581 AleksandraZh E May 27, 2018, 2:06 a.m. OK GNU C++14 TESTS 18 872 12288000 2700
30086381 ki1 E Sept. 4, 2017, 11:30 p.m. OK GNU C++14 TESTS 18 996 73216000 2700
27186286 a_kiselev E May 17, 2017, 7:58 p.m. OK GNU C++14 TESTS 18 1278 4812800 2700
23621883 Ali.Pi E Jan. 7, 2017, 10:35 a.m. OK GNU C++14 TESTS 18 1310 6758400 2700
64872211 hjk1030 E Nov. 14, 2019, 8:33 a.m. OK GNU C++17 TESTS 18 684 4812800 2700
59034269 crathva E Aug. 18, 2019, 3:04 p.m. OK GNU C++17 TESTS 18 686 3993600 2700
59034328 crathva E Aug. 18, 2019, 3:04 p.m. OK GNU C++17 TESTS 18 716 3993600 2700
58540814 user02 E Aug. 10, 2019, 2:05 p.m. OK GNU C++17 TESTS 18 748 4812800 2700
38556194 oneplus54 E May 23, 2018, 8:49 a.m. OK GNU C++17 TESTS 18 748 5632000 2700
59034178 crathva E Aug. 18, 2019, 3:03 p.m. OK GNU C++17 TESTS 18 778 3993600 2700
59022654 crathva E Aug. 18, 2019, 2:25 p.m. OK GNU C++17 TESTS 18 778 3993600 2700
38639833 ruo E May 26, 2018, 4:33 p.m. OK GNU C++17 TESTS 18 780 4812800 2700
67262176 rama_pang E Dec. 20, 2019, 4:12 a.m. OK GNU C++17 TESTS 18 1714 32051200 2700
307981 hydrastuff E Feb. 26, 2011, 12:04 p.m. OK Java 6 TESTS 18 1380 211456000 2700
307990 hydrastuff E Feb. 26, 2011, 12:08 p.m. OK Java 6 TESTS 18 1440 211660800 2700
307863 ivan.popelyshev E Feb. 26, 2011, 10:21 a.m. OK Java 6 TESTS 18 2390 43315200 2700
307953 hydrastuff E Feb. 26, 2011, 11:47 a.m. OK Java 6 TESTS 18 2580 109056000 2700
955831 FattyPenguin E Dec. 15, 2011, 3:45 a.m. OK Java 6 TESTS 18 2980 97894400 2700
2287515 Logvinov_Leon E Oct. 1, 2012, 7:54 p.m. OK MS C++ TESTS 18 1578 176230400 2700
2287478 Logvinov_Leon E Oct. 1, 2012, 7:51 p.m. OK MS C++ TESTS 18 2640 176230400 2700
12216346 abistrigova E July 24, 2015, 3:45 p.m. OK MS C++ TESTS 18 3338 56115200 2700
23554947 LLI_E_P_JI_O_K E Jan. 5, 2017, 12:56 p.m. OK MS C++ TESTS 18 3680 86937600 2700
309013 slavik E Feb. 27, 2011, 7:11 p.m. OK MS C++ TESTS 18 3940 31129600 2700
307323 Shef E Feb. 25, 2011, 10:08 p.m. OK MS C++ TESTS 18 4080 11673600 2700
307319 Shef E Feb. 25, 2011, 10:05 p.m. OK MS C++ TESTS 18 4090 11673600 2700

remove filters

Back to search problems