Educational Codeforces 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
818 Educational Codeforces Round 24 FINISHED False 8100 233074499 June 29, 2017, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1582 ) F Level Generation PROGRAMMING binary search math ternary search 2200

B'Ivan is developing his own computer game. Now he tries to create some levels for his game. But firstly for each level he needs to draw a graph representing the structure of the level. Ivan decided that there should be exactly ni vertices in the graph representing level i, and the edges have to be bidirectional. When constructing the graph, Ivan is interested in special edges called bridges. An edge between two vertices u and v is called a bridge if this edge belongs to every path between u and v (and these vertices will belong to different connected components if we delete this edge). For each level Ivan wants to construct a graph where at least half of the edges are bridges. He also wants to maximize the number of edges in each constructed graph. So the task Ivan gave you is: given q numbers n1, xe2 x80 x89n2, xe2 x80 x89..., xe2 x80 x89nq, for each i tell the maximum number of edges in a graph with ni vertices, if at least half of the edges are bridges. Note that the graphs cannot contain multiple edges or self-loops. The first line of input file contains a positive integer q (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89q xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100 xe2 x80 x89000) -- the number of graphs Ivan needs to construct. Then q lines follow, i-th line contains one positive integer ni (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ni xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7109) -- the number of vertices in i-th graph. Note that in hacks you have to use q xe2 x80 x89= xe2 x80 x891. Output q numbers, i-th of them must be equal to the maximum number of edges in i-th graph. In the first example it is possible to construct these graphs: '...

Tutorials

52991

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
28204226 nanae1914 F July 2, 2017, 6:11 a.m. OK D TESTS 16 156 2969600 2200
28203925 nanae1914 F July 2, 2017, 5:48 a.m. OK D TESTS 16 171 2969600 2200
28168432 sagiri_ F June 30, 2017, 9:14 a.m. OK FPC TESTS 16 234 1740800 2200
29529268 slavik228 F Aug. 17, 2017, 3:27 p.m. OK FPC TESTS 16 264 102400 2200
28168454 sagiri_ F June 30, 2017, 9:15 a.m. OK FPC TESTS 16 265 1740800 2200
28155431 sgtlaugh F June 29, 2017, 5:51 p.m. OK GNU C TESTS 16 312 1945600 2200
28170812 gutkrutz F June 30, 2017, 11:44 a.m. OK GNU C++ TESTS 16 62 1945600 2200
28171165 gutkrutz F June 30, 2017, 12:04 p.m. OK GNU C++ TESTS 16 62 1945600 2200
28407546 YJH143 F July 10, 2017, 12:52 p.m. OK GNU C++ TESTS 16 77 1945600 2200
28572074 guoyu1098 F July 15, 2017, 11:39 a.m. OK GNU C++ TESTS 16 77 2150400 2200
28159572 doraaki F June 29, 2017, 11:08 p.m. OK GNU C++ TESTS 16 78 1945600 2200
28207185 a_student F July 2, 2017, 9:16 a.m. OK GNU C++ TESTS 16 78 2048000 2200
28150947 cyand1317 F June 29, 2017, 4:32 p.m. OK GNU C++ TESTS 16 93 1945600 2200
28563272 vjudge2 F July 15, 2017, 4:29 a.m. OK GNU C++ TESTS 16 93 2048000 2200
28563265 vjudge1 F July 15, 2017, 4:29 a.m. OK GNU C++ TESTS 16 93 2048000 2200
28392876 vjudge5 F July 9, 2017, 6:53 p.m. OK GNU C++ TESTS 16 93 2048000 2200
55683660 rainboy F June 17, 2019, 2:21 p.m. OK GNU C11 TESTS 16 405 0 2200
43813615 Umi F Oct. 5, 2018, 3:20 a.m. OK GNU C++11 TESTS 16 46 0 2200
28167760 llgyc F June 30, 2017, 8:40 a.m. OK GNU C++11 TESTS 16 46 2048000 2200
40980680 ReaLNero1 F July 30, 2018, 5:38 p.m. OK GNU C++11 TESTS 16 62 0 2200
48910654 rrp212 F Jan. 25, 2019, 1:53 a.m. OK GNU C++11 TESTS 16 62 0 2200
34539005 zhouyuyang F Jan. 25, 2018, 7:36 a.m. OK GNU C++11 TESTS 16 62 1843200 2200
28268458 AkaneSasu F July 4, 2017, 2:38 a.m. OK GNU C++11 TESTS 16 62 1945600 2200
38150672 RNS_MHB F May 13, 2018, 2:06 a.m. OK GNU C++11 TESTS 16 62 3481600 2200
48911017 rrp212 F Jan. 25, 2019, 2:11 a.m. OK GNU C++11 TESTS 16 77 0 2200
28162066 jerry F June 30, 2017, 2:43 a.m. OK GNU C++11 TESTS 16 77 2048000 2200
38150678 RNS3 F May 13, 2018, 2:07 a.m. OK GNU C++11 TESTS 16 77 3481600 2200
29937393 aman_soni72 F Aug. 31, 2017, 7:54 a.m. OK GNU C++14 TESTS 16 77 0 2200
28697727 mengrao F July 19, 2017, 1:32 p.m. OK GNU C++14 TESTS 16 77 1945600 2200
28154971 ckw1140 F June 29, 2017, 5:34 p.m. OK GNU C++14 TESTS 16 78 1945600 2200
28349183 naijeuohz F July 7, 2017, 12:25 p.m. OK GNU C++14 TESTS 16 78 1945600 2200
28210561 lygsbw F July 2, 2017, 12:51 p.m. OK GNU C++14 TESTS 16 78 1945600 2200
28210476 lygsbw F July 2, 2017, 12:46 p.m. OK GNU C++14 TESTS 16 78 1945600 2200
28171737 nir123 F June 30, 2017, 12:32 p.m. OK GNU C++14 TESTS 16 78 1945600 2200
28159612 doraaki F June 29, 2017, 11:12 p.m. OK GNU C++14 TESTS 16 78 1945600 2200
28159174 spencer F June 29, 2017, 10:20 p.m. OK GNU C++14 TESTS 16 78 1945600 2200
28153277 naij F June 29, 2017, 5:03 p.m. OK GNU C++14 TESTS 16 78 1945600 2200
60733397 gratus907 F Sept. 17, 2019, 4:32 p.m. OK GNU C++17 TESTS 16 77 0 2200
51609058 AhemJi F March 21, 2019, 9:13 a.m. OK GNU C++17 TESTS 16 78 0 2200
59254647 nnova11 F Aug. 22, 2019, 6:03 a.m. OK GNU C++17 TESTS 16 109 0 2200
66488379 TAB_0905 F Dec. 8, 2019, 7:30 a.m. OK GNU C++17 TESTS 16 109 0 2200
38989110 065583 F June 6, 2018, 9:02 a.m. OK GNU C++17 TESTS 16 109 0 2200
44607401 gonP F Oct. 20, 2018, 5:37 p.m. OK GNU C++17 TESTS 16 109 0 2200
59267952 igba F Aug. 22, 2019, 11:35 a.m. OK GNU C++17 TESTS 16 109 0 2200
49468000 markotee F Feb. 4, 2019, 3:54 p.m. OK GNU C++17 TESTS 16 109 204800 2200
67448206 StarCuriosity F Dec. 23, 2019, 12:56 a.m. OK GNU C++17 TESTS 16 124 0 2200
63069144 hkyiitd F Oct. 21, 2019, 11:51 a.m. OK GNU C++17 TESTS 16 124 0 2200
55683661 Dukkha F June 17, 2019, 2:21 p.m. OK Java 8 TESTS 16 171 0 2200
66743155 unicorn20141 F Dec. 12, 2019, 10:33 p.m. OK Java 8 TESTS 16 218 0 2200
28154656 uwi F June 29, 2017, 5:23 p.m. OK Java 8 TESTS 16 218 20684800 2200
35772224 HardikDobariya F Feb. 27, 2018, 6:39 p.m. OK Java 8 TESTS 16 218 20889600 2200
28157444 Musin F June 29, 2017, 7:52 p.m. OK Java 8 TESTS 16 265 20684800 2200
60506489 SecondThread F Sept. 13, 2019, 10:04 p.m. OK Java 8 TESTS 16 280 0 2200
28351549 Kammola F July 7, 2017, 2:48 p.m. OK Java 8 TESTS 16 358 20480000 2200
53590009 mikkk F April 30, 2019, 10:10 p.m. OK Java 8 TESTS 16 483 0 2200
31794505 vjudge5 F Oct. 27, 2017, 12:17 p.m. OK Java 8 TESTS 16 561 0 2200
28651458 roboyby F July 18, 2017, 1:15 a.m. OK Java 8 TESTS 16 670 20992000 2200
28161721 leign F June 30, 2017, 2:20 a.m. OK Mono C# TESTS 16 265 18739200 2200
28416517 ME_AJUUUUUDAAA F July 10, 2017, 11:34 p.m. OK Mono C# TESTS 16 639 12288000 2200
28153843 AnatolyTolstobrov F June 29, 2017, 5:11 p.m. OK MS C# TESTS 16 171 19148800 2200
28154475 og.kostya F June 29, 2017, 5:19 p.m. OK MS C# TESTS 16 187 12185600 2200
28393743 IleksaNott F July 9, 2017, 8:11 p.m. OK MS C# TESTS 16 732 13107200 2200
28186686 miha715lev F July 1, 2017, 7:50 a.m. OK MS C++ TESTS 16 78 2048000 2200
28157503 P___ F June 29, 2017, 7:55 p.m. OK MS C++ TESTS 16 124 2048000 2200
28186656 miha715lev F July 1, 2017, 7:48 a.m. OK MS C++ TESTS 16 405 2150400 2200
28186666 miha715lev F July 1, 2017, 7:49 a.m. OK MS C++ TESTS 16 405 2150400 2200
31156699 WNG F Oct. 8, 2017, 11:43 p.m. OK Python 2 TESTS 16 561 1638400 2200
29524117 blee_bloop_blee_bop F Aug. 17, 2017, 10:34 a.m. OK Python 3 TESTS 16 919 9932800 2200

remove filters

Back to search problems