Codeforces Beta Round 40 (Div. 2)

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
41 Codeforces Beta Round 40 (Div. 2) FINISHED False 7200 442591199 Nov. 8, 2010, 4 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1978 ) E 3-cycles PROGRAMMING constructive algorithms graphs greedy 1900

B'During a recent research Berland scientists found out that there were n cities in Ancient Berland, joined by two-way paths. Any two cities are joined by no more than one path. No path joins a city with itself. According to a well-known tradition, the road network was built so that it would be impossible to choose three cities from each of which one can get to any other one directly. That is, there was no cycle exactly as long as 3. Unfortunately, the road map has not been preserved till nowadays. Now the scientists are interested how much developed a country Ancient Berland was. Help them - find, what maximal number of roads could be in the country. You also have to restore any of the possible road maps. The first line contains an integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100) -- the number of cities in Berland. On the first line must be printed number m -- the maximal number of roads in Berland. Then print m lines containing two numbers each -- the numbers of cities that the given road joins. The cities are numbered with integers from 1 to n. If there are several variants of solving the problem, print any of them.'...

Tutorials

Codeforces Beta Round #40 Mini-Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
17311096 Ahriman E April 14, 2016, 7:25 a.m. OK FPC TESTS 50 62 0 1900
21810500 Jin_Haonan E Oct. 27, 2016, 1:33 a.m. OK GNU C++ TESTS 50 30 0 1900
26869873 AkaneSasu E May 5, 2017, 1:09 a.m. OK GNU C++ TESTS 50 30 0 1900
20347472 Zovube E Sept. 2, 2016, 7:21 p.m. OK GNU C++ TESTS 50 30 0 1900
19579021 M2J E Aug. 2, 2016, 12:18 p.m. OK GNU C++ TESTS 50 30 0 1900
19325897 lys1280023 E July 22, 2016, 2:12 p.m. OK GNU C++ TESTS 50 30 0 1900
17325347 Karan2116 E April 15, 2016, 11:10 a.m. OK GNU C++ TESTS 50 30 0 1900
17325328 Karan2116 E April 15, 2016, 11:09 a.m. OK GNU C++ TESTS 50 30 0 1900
30281639 spsmoj3 E Sept. 12, 2017, 8:39 a.m. OK GNU C++ TESTS 50 30 0 1900
29962939 vjudge4 E Sept. 1, 2017, 2:20 a.m. OK GNU C++ TESTS 50 30 0 1900
29602052 vjudge3 E Aug. 19, 2017, 3:20 p.m. OK GNU C++ TESTS 50 30 102400 1900
45669667 dupeljan E Nov. 13, 2018, 9:47 a.m. OK GNU C11 TESTS 50 62 0 1900
59418888 rainboy E Aug. 24, 2019, 7:44 p.m. OK GNU C11 TESTS 50 92 0 1900
22091614 Soroosh E Nov. 7, 2016, 9:36 a.m. OK GNU C++11 TESTS 50 30 0 1900
20766164 rxdoi Dirak AkaneSasu E Sept. 20, 2016, midnight OK GNU C++11 TESTS 50 30 0 1900
19608438 mr.IncrediBle E Aug. 4, 2016, 3:27 a.m. OK GNU C++11 TESTS 50 30 0 1900
19071435 aditya1495 E July 13, 2016, 11:30 a.m. OK GNU C++11 TESTS 50 30 0 1900
18919824 WeHaveInt E July 6, 2016, 1:48 p.m. OK GNU C++11 TESTS 50 30 0 1900
27468001 423555290 E May 31, 2017, 1:39 p.m. OK GNU C++11 TESTS 50 30 0 1900
27122732 Juve45 E May 15, 2017, 1:37 p.m. OK GNU C++11 TESTS 50 30 0 1900
27321591 Meowl E May 24, 2017, 2:20 p.m. OK GNU C++11 TESTS 50 30 0 1900
27045541 RNS_JKS E May 12, 2017, 2:58 a.m. OK GNU C++11 TESTS 50 30 0 1900
22648511 albeXL E Dec. 1, 2016, 9:04 p.m. OK GNU C++11 TESTS 50 30 0 1900
29964067 ekeitaro E Sept. 1, 2017, 4:38 a.m. OK GNU C++14 TESTS 50 30 0 1900
32141230 Atreus E Nov. 8, 2017, 1:46 p.m. OK GNU C++14 TESTS 50 30 0 1900
32073636 chinmay0906 E Nov. 5, 2017, 10:40 a.m. OK GNU C++14 TESTS 50 30 0 1900
31903292 vivekkumar15 E Oct. 30, 2017, 6:54 p.m. OK GNU C++14 TESTS 50 30 0 1900
27437512 cr0n E May 30, 2017, 12:04 a.m. OK GNU C++14 TESTS 50 30 0 1900
27355536 zoooma13 E May 26, 2017, 12:32 p.m. OK GNU C++14 TESTS 50 30 0 1900
27279673 Kerim.K E May 22, 2017, 8:30 a.m. OK GNU C++14 TESTS 50 30 0 1900
22108253 HaMeD-moll E Nov. 8, 2016, 8:29 a.m. OK GNU C++14 TESTS 50 30 0 1900
22105543 p.tasbihgou E Nov. 8, 2016, 4:59 a.m. OK GNU C++14 TESTS 50 30 0 1900
22105488 Amirshayan E Nov. 8, 2016, 4:54 a.m. OK GNU C++14 TESTS 50 30 0 1900
54221572 Saleh.P E May 16, 2019, 3:41 a.m. OK GNU C++17 TESTS 50 30 0 1900
48667468 vjudge2 E Jan. 21, 2019, 8:51 a.m. OK GNU C++17 TESTS 50 30 204800 1900
69276002 mahdi.hasnat E Jan. 22, 2020, 2:08 a.m. OK GNU C++17 TESTS 50 60 102400 1900
48670444 vjudge1 E Jan. 21, 2019, 10:36 a.m. OK GNU C++17 TESTS 50 60 204800 1900
42004571 Restinpeace E Aug. 23, 2018, 5:28 p.m. OK GNU C++17 TESTS 50 60 204800 1900
59261101 i_love_614 E Aug. 22, 2019, 8:39 a.m. OK GNU C++17 TESTS 50 62 0 1900
68851290 is_mail E Jan. 15, 2020, 9:02 a.m. OK GNU C++17 TESTS 50 62 0 1900
66558670 AlexLuchianov E Dec. 9, 2019, 5:54 p.m. OK GNU C++17 TESTS 50 62 0 1900
62260435 mk_02 E Oct. 10, 2019, 12:02 p.m. OK GNU C++17 TESTS 50 62 0 1900
60398063 PouyaNavid E Sept. 11, 2019, 3:40 p.m. OK GNU C++17 TESTS 50 62 0 1900
46017272 ViciousCoder E Nov. 21, 2018, 5:04 a.m. OK Java 8 TESTS 50 218 0 1900
47815089 xodiac E Jan. 1, 2019, 1:53 p.m. OK Java 8 TESTS 50 248 0 1900
47308112 wrong_lemma E Dec. 20, 2018, 6 p.m. OK Java 8 TESTS 50 248 0 1900
46914347 flyman3046 E Dec. 11, 2018, 7:04 p.m. OK Java 8 TESTS 50 248 0 1900
45475384 Jeel_Vaishnav E Nov. 9, 2018, 12:12 p.m. OK Java 8 TESTS 50 248 0 1900
22913707 Zahisho E Dec. 12, 2016, 8:35 p.m. OK Java 8 TESTS 50 248 0 1900
17475186 ankeet E April 24, 2016, 12:15 a.m. OK Java 8 TESTS 50 248 20480000 1900
23416782 da_201501181 E Dec. 30, 2016, 10:08 a.m. OK Java 8 TESTS 50 248 20582400 1900
35590336 Md._Abu_Nafee_Ibna_Zahid E Feb. 23, 2018, 7:18 a.m. OK Java 8 TESTS 50 248 20684800 1900
16886324 Sumeet.Varma E March 23, 2016, 12:39 p.m. OK Java 8 TESTS 50 248 20684800 1900
47486493 moss3s E Dec. 25, 2018, 9:01 a.m. OK Kotlin TESTS 50 248 0 1900
26835564 Tampere E May 4, 2017, 1:26 p.m. OK MS C++ TESTS 50 30 0 1900
36294060 andrewting E March 15, 2018, 8:56 a.m. OK MS C++ TESTS 50 30 2048000 1900
34299219 duongbp1990 E Jan. 19, 2018, 10:29 a.m. OK MS C++ TESTS 50 30 2048000 1900
36378258 nitrateatom E March 18, 2018, 6:22 a.m. OK MS C++ TESTS 50 60 3481600 1900
45669682 dupeljan E Nov. 13, 2018, 9:47 a.m. OK MS C++ TESTS 50 62 0 1900
43812619 vjudge1 E Oct. 5, 2018, 2:23 a.m. OK MS C++ TESTS 50 62 0 1900
41004881 ReaLNero1 E July 31, 2018, 9:09 a.m. OK MS C++ TESTS 50 62 0 1900
60328515 Ffemgc E Sept. 10, 2019, 4:02 a.m. OK MS C++ 2017 TESTS 50 62 0 1900
60323794 nagato1208 E Sept. 9, 2019, 10:39 p.m. OK PyPy 3 TESTS 50 310 2560000 1900
61962457 vishwesh18 E Oct. 6, 2019, 7:52 a.m. OK PyPy 3 TESTS 50 342 3072000 1900
17475246 ishanktandon E April 24, 2016, 12:35 a.m. OK Python 2 TESTS 50 124 4710400 1900
16909726 rajat1603 E March 24, 2016, 4:20 p.m. OK Python 2 TESTS 50 124 4710400 1900
36321466 cjquines E March 16, 2018, 9:28 a.m. OK Python 2 TESTS 50 218 6041600 1900
61704542 NocturneBflat E Oct. 2, 2019, 9:36 a.m. OK Python 3 TESTS 50 248 409600 1900
45668873 dupeljan E Nov. 13, 2018, 9:21 a.m. OK Python 3 TESTS 50 248 409600 1900
45668775 dupeljan E Nov. 13, 2018, 9:18 a.m. OK Python 3 TESTS 50 248 409600 1900
60739945 sushant_verma E Sept. 17, 2019, 7:25 p.m. OK Python 3 TESTS 50 248 512000 1900
37756576 _lucifer_ E April 30, 2018, 3:02 p.m. OK Python 3 TESTS 50 310 7577600 1900
56015447 sorry_im_smurfing E June 24, 2019, 8:48 p.m. OK Ruby TESTS 50 154 102400 1900
35871217 ______u______ E March 3, 2018, 6:46 a.m. OK Ruby TESTS 50 186 6451200 1900
35870985 ______n______ E March 3, 2018, 6:40 a.m. OK Ruby TESTS 50 186 6451200 1900
35870389 _____i_____ E March 3, 2018, 6:28 a.m. OK Ruby TESTS 50 186 6451200 1900
35870380 _____k_____ E March 3, 2018, 6:28 a.m. OK Ruby TESTS 50 186 6451200 1900
35861752 ______k______ E March 2, 2018, 10:10 p.m. OK Ruby TESTS 50 186 6451200 1900
35861741 ______h______ E March 2, 2018, 10:10 p.m. OK Ruby TESTS 50 186 6451200 1900
35861230 ______i______ E March 2, 2018, 9:58 p.m. OK Ruby TESTS 50 186 6451200 1900
35859733 ______M______ E March 2, 2018, 9:26 p.m. OK Ruby TESTS 50 186 6451200 1900

remove filters

Back to search problems