Codeforces Beta Round 62

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
68 Codeforces Beta Round 62 FINISHED False 7200 475941623 March 18, 2011, 4 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 351 ) C Synchrophasotron PROGRAMMING brute force 2200

For some experiments little Petya needs a synchrophasotron. He has already got the device, all that's left is to set the fuel supply. Fuel comes through a system of nodes numbered from 1 to n and connected by pipes. Pipes go from every node with smaller number to every node with greater number. Fuel can only flow through pipes in direction from node with smaller number to node with greater number. Any amount of fuel can enter through the first node and the last node is connected directly to the synchrophasotron. It is known that every pipe has three attributes: the minimum amount of fuel that should go through it, the maximum amount of fuel that can possibly go through it and the cost of pipe activation. If c ij units of fuel ( c ij > 0 ) flow from node i to node j , it will cost a ij + c ij 2 tugriks ( a ij is the cost of pipe activation), and if fuel doesn't flow through the pipe, it doesn't cost anything. Only integer number of units of fuel can flow through each pipe. Constraints on the minimal and the maximal fuel capacity of a pipe take place always , not only if it is active. You may assume that the pipe is active if and only if the flow through it is strictly greater than zero. Petya doesn't want the pipe system to be overloaded, so he wants to find the minimal amount of fuel, that, having entered the first node, can reach the synchrophasotron. Besides that he wants to impress the sponsors, so the sum of money needed to be paid for fuel to go through each pipe, must be as big as possible. First line contains integer n ( 2 ≤ n ≤ 6 ), which represents the number of nodes. Each of the next n ( n - 1) / 2 lines contains five integers s , f , l , h , a that describe pipes — the first node of the pipe, the second node of the pipe, the minimum and the maximum amount of fuel that can flow through the pipe and the the activation cost, respectively. ( 1 ≤ s < f ≤ n , 0 ≤ l ≤ h ≤ 5, 0 ≤ a ≤ 6 ). It is guaranteed that for each pair of nodes with distinct numbe

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
342593 PanZverski C March 18, 2011, 5:46 p.m. OK Delphi TESTS 82 440 819200 2200
342234 sankear C March 18, 2011, 5:22 p.m. OK Delphi TESTS 82 2470 2867200 2200
575789 vlad107 C Aug. 2, 2011, 6:28 a.m. OK FPC TESTS 82 30 1024000 2200
342288 Sereja C March 18, 2011, 5:26 p.m. OK FPC TESTS 82 30 1228800 2200
8465458 gyz_gyz C Oct. 29, 2014, 4:25 a.m. OK FPC TESTS 82 122 0 2200
342842 Oryshych C March 18, 2011, 5:58 p.m. OK FPC TESTS 82 720 1024000 2200
342837 USA C March 18, 2011, 5:58 p.m. OK FPC TESTS 82 730 1024000 2200
343820 vilcheuski C March 19, 2011, 10:12 a.m. OK FPC TESTS 82 1720 1024000 2200
342055 LayCurse C March 18, 2011, 5:07 p.m. OK GNU C TESTS 82 300 1331200 2200
7192553 ItsLastDay C July 21, 2014, 8:45 a.m. OK GNU C TESTS 82 1184 0 2200
3039298 hariprasath C Jan. 31, 2013, 6:42 a.m. OK GNU C++ TESTS 82 15 0 2200
4161729 data_h C July 25, 2013, 7:22 a.m. OK GNU C++ TESTS 82 15 0 2200
3696341 vjudge2 C May 9, 2013, 1:35 p.m. OK GNU C++ TESTS 82 15 0 2200
3042656 wind C Feb. 1, 2013, 3:26 a.m. OK GNU C++ TESTS 82 15 0 2200
3042653 vjudge2 C Feb. 1, 2013, 3:25 a.m. OK GNU C++ TESTS 82 15 0 2200
3041679 Mabraygas C Jan. 31, 2013, 5:02 p.m. OK GNU C++ TESTS 82 15 0 2200
3039467 vjudge2 C Jan. 31, 2013, 7:36 a.m. OK GNU C++ TESTS 82 15 0 2200
3039455 vjudge1 C Jan. 31, 2013, 7:32 a.m. OK GNU C++ TESTS 82 15 0 2200
3039424 vjudge4 C Jan. 31, 2013, 7:21 a.m. OK GNU C++ TESTS 82 15 0 2200
3039290 vjudge2 C Jan. 31, 2013, 6:39 a.m. OK GNU C++ TESTS 82 15 0 2200
670403 Archon.JK C Sept. 6, 2011, 8:59 a.m. OK GNU C++0x TESTS 82 30 1331200 2200
8999084 sdya C Dec. 6, 2014, 11:22 a.m. OK GNU C++0x TESTS 82 60 0 2200
7798718 dojiboy9 C Sept. 15, 2014, 5:24 a.m. OK GNU C++0x TESTS 82 62 0 2200
7798694 klavisha C Sept. 15, 2014, 5:16 a.m. OK GNU C++0x TESTS 82 62 0 2200
8538251 marat.snowbear C Nov. 3, 2014, 4:37 p.m. OK GNU C++0x TESTS 82 280 0 2200
8538229 marat.snowbear C Nov. 3, 2014, 4:35 p.m. OK GNU C++0x TESTS 82 280 0 2200
19215375 gsmcoder97 C July 18, 2016, 3:16 p.m. OK GNU C++11 TESTS 82 30 0 2200
13872685 target2016 C Oct. 26, 2015, 1:09 p.m. OK GNU C++11 TESTS 82 30 0 2200
13869572 target2016 C Oct. 26, 2015, 9:50 a.m. OK GNU C++11 TESTS 82 30 0 2200
12332257 HellKitsune C Aug. 4, 2015, 2:18 a.m. OK GNU C++11 TESTS 82 30 0 2200
21572180 jjjjjjjjjjj C Oct. 18, 2016, 4 p.m. OK GNU C++11 TESTS 82 30 2048000 2200
65414685 AdiZer0 C Nov. 20, 2019, 6:19 a.m. OK GNU C++11 TESTS 82 62 0 2200
64779732 gn_wz C Nov. 13, 2019, 6:35 a.m. OK GNU C++11 TESTS 82 62 0 2200
57906054 lopare C July 28, 2019, 5:40 p.m. OK GNU C++11 TESTS 82 62 0 2200
54496287 WOSHIGEPACHONG2 C May 22, 2019, 5:55 p.m. OK GNU C++11 TESTS 82 62 0 2200
15137549 tenshi_kanade C Dec. 31, 2015, 1:53 p.m. OK GNU C++11 TESTS 82 62 0 2200
22838281 Qoogle C Dec. 9, 2016, 4:11 p.m. OK GNU C++14 TESTS 82 30 0 2200
31879250 -Morass- C Oct. 30, 2017, 12:50 a.m. OK GNU C++14 TESTS 82 30 0 2200
22269045 xehoth C Nov. 16, 2016, 1:54 p.m. OK GNU C++14 TESTS 82 30 0 2200
31879207 -Morass- C Oct. 30, 2017, 12:44 a.m. OK GNU C++14 TESTS 82 30 204800 2200
31879218 -Morass- C Oct. 30, 2017, 12:44 a.m. OK GNU C++14 TESTS 82 30 204800 2200
31879192 -Morass- C Oct. 30, 2017, 12:42 a.m. OK GNU C++14 TESTS 82 30 204800 2200
34356751 0bps C Jan. 20, 2018, 3 p.m. OK GNU C++14 TESTS 82 30 1945600 2200
26100612 Roms C April 3, 2017, 1:29 p.m. OK GNU C++14 TESTS 82 30 1945600 2200
22115477 2016 C Nov. 8, 2016, 3:25 p.m. OK GNU C++14 TESTS 82 60 409600 2200
56016458 sorry_im_smurfing C June 24, 2019, 9:39 p.m. OK GNU C++14 TESTS 82 62 0 2200
42108936 gwq2017 C Aug. 26, 2018, 4:07 a.m. OK GNU C++17 TESTS 82 62 0 2200
38934445 ruo C June 4, 2018, 4:53 a.m. OK GNU C++17 TESTS 82 62 3379200 2200
51735612 kenimo C March 23, 2019, 2:06 a.m. OK GNU C++17 TESTS 82 92 6451200 2200
342668 Di735 C March 18, 2011, 5:51 p.m. OK Java 6 TESTS 82 80 43315200 2200
360715 islam-al-aarag C March 28, 2011, 6:28 a.m. OK Java 6 TESTS 82 90 43315200 2200
346733 segrey C March 20, 2011, 9:59 p.m. OK Java 6 TESTS 82 90 43315200 2200
343171 S.Yesipenko C March 18, 2011, 7:13 p.m. OK Java 6 TESTS 82 90 43315200 2200
343104 Hadi_Asiaie C March 18, 2011, 6:59 p.m. OK Java 6 TESTS 82 90 43315200 2200
342220 SpookyCookie C March 18, 2011, 5:21 p.m. OK Java 6 TESTS 82 90 43315200 2200
342044 uwi C March 18, 2011, 5:07 p.m. OK Java 6 TESTS 82 90 43315200 2200
341910 ktuan C March 18, 2011, 4:59 p.m. OK Java 6 TESTS 82 110 43315200 2200
342038 Egor C March 18, 2011, 5:06 p.m. OK Java 6 TESTS 82 110 43315200 2200
890201 evgeny11 C Nov. 24, 2011, 10:46 p.m. OK Java 6 TESTS 82 130 43110400 2200
2747336 niyaznigmatul C Dec. 10, 2012, 12:42 p.m. OK Java 7 TESTS 82 78 0 2200
11328115 131121 C May 28, 2015, 4:11 a.m. OK Java 7 TESTS 82 590 0 2200
20554959 Ahmad_Elsagheer C Sept. 12, 2016, 6:50 p.m. OK Java 8 TESTS 82 248 0 2200
20535365 Ahmad_Elsagheer C Sept. 11, 2016, 3:43 p.m. OK Java 8 TESTS 82 904 73625600 2200
343759 tanzaku C March 19, 2011, 8:50 a.m. OK Mono C# TESTS 82 130 5734400 2200
342949 Eugene C March 18, 2011, 6:38 p.m. OK Mono C# TESTS 82 940 5836800 2200
11271510 Amr_Hassan C May 25, 2015, 10:57 p.m. OK MS C++ TESTS 82 30 0 2200
342934 kuzmichev_dima C March 18, 2011, 6:38 p.m. OK MS C++ TESTS 82 30 1331200 2200
342797 Krh2011 C March 18, 2011, 5:56 p.m. OK MS C++ TESTS 82 30 1331200 2200
342265 eik0u C March 18, 2011, 5:24 p.m. OK MS C++ TESTS 82 30 1331200 2200
341926 Erop C March 18, 2011, 5 p.m. OK MS C++ TESTS 82 30 1331200 2200
342946 Krh2011 C March 18, 2011, 6:38 p.m. OK MS C++ TESTS 82 30 1331200 2200
353914 iSea C March 25, 2011, 7:45 a.m. OK MS C++ TESTS 82 30 1331200 2200
353562 shou C March 24, 2011, 5:04 p.m. OK MS C++ TESTS 82 30 1433600 2200
378089 Gerald C April 11, 2011, 3:26 p.m. OK MS C++ TESTS 82 30 1433600 2200
361090 mongolrgata C March 28, 2011, 4:49 p.m. OK MS C++ TESTS 82 30 1433600 2200

remove filters

Back to search problems