Codeforces Beta Round 24

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
24 Codeforces Beta Round 24 FINISHED False 7200 451673999 July 26, 2010, 1 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5228 ) A Ring road PROGRAMMING graphs 1400

B"Nowadays the one-way traffic is introduced all over the world in order to improve driving safety and reduce traffic jams. The government of Berland decided to keep up with new trends. Formerly all n cities of Berland were connected by n two-way roads in the ring, i. e. each city was connected directly to exactly two other cities, and from each city it was possible to get to any other city. Government of Berland introduced one-way traffic on all n roads, but it soon became clear that it's impossible to get from some of the cities to some others. Now for each road is known in which direction the traffic is directed at it, and the cost of redirecting the traffic. What is the smallest amount of money the government should spend on the redirecting of roads so that from every city you can get to any other? The first line contains integer n (3 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100) -- amount of cities (and roads) in Berland. Next n lines contain description of roads. Each road is described by three integers ai, bi, ci (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai, xe2 x80 x89bi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa0 xe2 x80 x89bi, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ci xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100) -- road is directed from city ai to city bi, redirecting the traffic costs ci. Output single integer -- the smallest amount of money the government should spend on the redirecting of roads so that from every city you can get to any other."...

Tutorials

Codeforces Beta Round #24 solutions

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
101176 tourist A July 26, 2010, 1:10 p.m. OK Delphi TESTS 21 10 921600 1400
101546 subscriber A July 26, 2010, 1:27 p.m. OK Delphi TESTS 21 30 819200 1400
101249 PanZverski A July 26, 2010, 1:14 p.m. OK Delphi TESTS 21 30 819200 1400
101208 chavit A July 26, 2010, 1:12 p.m. OK Delphi TESTS 21 30 819200 1400
101167 CherryTree A July 26, 2010, 1:10 p.m. OK Delphi TESTS 21 30 819200 1400
101520 subscriber A July 26, 2010, 1:26 p.m. OK Delphi TESTS 21 30 819200 1400
103679 ErzhanDS A July 26, 2010, 2:48 p.m. OK Delphi TESTS 21 30 921600 1400
103225 ant.ermilov A July 26, 2010, 2:32 p.m. OK Delphi TESTS 21 30 921600 1400
102363 kuzmichev_dima A July 26, 2010, 2:01 p.m. OK Delphi TESTS 21 30 921600 1400
101803 DanDrago A July 26, 2010, 1:37 p.m. OK Delphi TESTS 21 30 921600 1400
101556 kozima A July 26, 2010, 1:28 p.m. OK F# TESTS 21 200 6758400 1400
103363 Oryshych A July 26, 2010, 2:38 p.m. OK FPC TESTS 21 30 1024000 1400
103559 IwfWcf A July 26, 2010, 2:44 p.m. OK FPC TESTS 21 30 1024000 1400
103063 DMKaplony A July 26, 2010, 2:26 p.m. OK FPC TESTS 21 30 1024000 1400
102828 flavio A July 26, 2010, 2:17 p.m. OK FPC TESTS 21 30 1024000 1400
102385 PAG A July 26, 2010, 2:02 p.m. OK FPC TESTS 21 30 1024000 1400
102109 SNU A July 26, 2010, 1:50 p.m. OK FPC TESTS 21 30 1024000 1400
101813 iamme181 A July 26, 2010, 1:37 p.m. OK FPC TESTS 21 30 1024000 1400
101736 tuananh93 A July 26, 2010, 1:34 p.m. OK FPC TESTS 21 30 1024000 1400
101657 igor_kz A July 26, 2010, 1:31 p.m. OK FPC TESTS 21 30 1024000 1400
101645 sillyboy A July 26, 2010, 1:30 p.m. OK FPC TESTS 21 30 1024000 1400
103254 pritam_iem A July 26, 2010, 2:33 p.m. OK GNU C TESTS 21 30 1331200 1400
101267 stubbscroll A July 26, 2010, 1:15 p.m. OK GNU C TESTS 21 30 1331200 1400
101162 LayCurse A July 26, 2010, 1:09 p.m. OK GNU C TESTS 21 30 1331200 1400
103474 xlfd A July 26, 2010, 2:41 p.m. OK GNU C TESTS 21 30 4710400 1400
101114 ikatanic A July 26, 2010, 1:07 p.m. OK GNU C++ TESTS 21 10 1331200 1400
102708 naagi A July 26, 2010, 2:13 p.m. OK GNU C++ TESTS 21 10 1331200 1400
101771 ahyangyi A July 26, 2010, 1:36 p.m. OK GNU C++ TESTS 21 10 1331200 1400
101610 MarioYC A July 26, 2010, 1:29 p.m. OK GNU C++ TESTS 21 10 1331200 1400
101327 felipebart A July 26, 2010, 1:18 p.m. OK GNU C++ TESTS 21 10 1331200 1400
101293 Igel_SK A July 26, 2010, 1:16 p.m. OK GNU C++ TESTS 21 10 1331200 1400
101191 Steps09 A July 26, 2010, 1:11 p.m. OK GNU C++ TESTS 21 10 1331200 1400
101145 mrc88 A July 26, 2010, 1:09 p.m. OK GNU C++ TESTS 21 10 1331200 1400
102262 glasslion A July 26, 2010, 1:57 p.m. OK GNU C++ TESTS 21 10 1433600 1400
101805 miki A July 26, 2010, 1:37 p.m. OK GNU C++ TESTS 21 10 1433600 1400
101675 naota A July 26, 2010, 1:32 p.m. OK Haskell TESTS 21 30 2048000 1400
101551 KTR A July 26, 2010, 1:28 p.m. OK Java 6 TESTS 21 60 43008000 1400
101270 shindo A July 26, 2010, 1:15 p.m. OK Java 6 TESTS 21 60 43008000 1400
103926 Mohannad A July 26, 2010, 2:56 p.m. OK Java 6 TESTS 21 60 43008000 1400
101216 yaro A July 26, 2010, 1:12 p.m. OK Java 6 TESTS 21 60 43008000 1400
101193 anhdt A July 26, 2010, 1:11 p.m. OK Java 6 TESTS 21 60 43008000 1400
101186 Thekid A July 26, 2010, 1:11 p.m. OK Java 6 TESTS 21 60 43008000 1400
101148 Kandyman A July 26, 2010, 1:09 p.m. OK Java 6 TESTS 21 60 43008000 1400
101259 mastersobg A July 26, 2010, 1:14 p.m. OK Java 6 TESTS 21 60 43008000 1400
103652 Abra A July 26, 2010, 2:47 p.m. OK Java 6 TESTS 21 60 43008000 1400
103309 mostafa_elabady A July 26, 2010, 2:36 p.m. OK Java 6 TESTS 21 60 43008000 1400
103558 Hadi_Asiaie A July 26, 2010, 2:44 p.m. OK Mono C# TESTS 21 110 6041600 1400
102996 tanzaku A July 26, 2010, 2:24 p.m. OK Mono C# TESTS 21 110 6041600 1400
102899 fujiyama A July 26, 2010, 2:20 p.m. OK Mono C# TESTS 21 130 6041600 1400
101770 mu66 A July 26, 2010, 1:36 p.m. OK MS C++ TESTS 21 10 1331200 1400
102761 ddd A July 26, 2010, 2:15 p.m. OK MS C++ TESTS 21 10 1331200 1400
101981 KiRiN A July 26, 2010, 1:45 p.m. OK MS C++ TESTS 21 10 1331200 1400
101345 hydrastuff A July 26, 2010, 1:19 p.m. OK MS C++ TESTS 21 10 1331200 1400
101209 Sleepwalker A July 26, 2010, 1:12 p.m. OK MS C++ TESTS 21 10 1433600 1400
101152 Nyatl A July 26, 2010, 1:09 p.m. OK MS C++ TESTS 21 10 1536000 1400
101846 KhaustovPavel A July 26, 2010, 1:39 p.m. OK MS C++ TESTS 21 10 1638400 1400
103851 mightyvoice A July 26, 2010, 2:53 p.m. OK MS C++ TESTS 21 30 1331200 1400
102701 Varlok A July 26, 2010, 2:13 p.m. OK MS C++ TESTS 21 30 1331200 1400
102658 Xorand A July 26, 2010, 2:11 p.m. OK MS C++ TESTS 21 30 1331200 1400
102073 Gassa A July 26, 2010, 1:49 p.m. OK Python 2 TESTS 21 60 2764800 1400
101532 citxx A July 26, 2010, 1:27 p.m. OK Python 2 TESTS 21 60 2764800 1400
102571 jaindsonvs A July 26, 2010, 2:08 p.m. OK Python 2 TESTS 21 80 2764800 1400
102471 urutom A July 26, 2010, 2:05 p.m. OK Ruby TESTS 21 50 3891200 1400
101664 biochem_fan A July 26, 2010, 1:31 p.m. OK Ruby TESTS 21 80 3891200 1400

remove filters

Back to search problems