Codeforces Beta Round 5

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
5 Codeforces Beta Round 5 FINISHED False 7200 462722399 March 20, 2010, 4 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2163 ) E Bindian Signalizing PROGRAMMING data structures 2400

B"Everyone knows that long ago on the territory of present-day Berland there lived Bindian tribes. Their capital was surrounded by n hills, forming a circle. On each hill there was a watchman, who watched the neighbourhood day and night. In case of any danger the watchman could make a fire on the hill. One watchman could see the signal of another watchman, if on the circle arc connecting the two hills there was no hill higher than any of the two. As for any two hills there are two different circle arcs connecting them, the signal was seen if the above mentioned condition was satisfied on at least one of the arcs. For example, for any two neighbouring watchmen it is true that the signal of one will be seen by the other. An important characteristics of this watch system was the amount of pairs of watchmen able to see each other's signals. You are to find this amount by the given heights of the hills. The first line of the input data contains an integer number n (3 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106), n -- the amount of hills around the capital. The second line contains n numbers -- heights of the hills in clockwise order. All height numbers are integer and lie between 1 and 109. Print the required amount of pairs."...

Tutorials

C, D и E с CBR5 - разбор

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
552465 Sender E July 20, 2011, 3:29 p.m. OK Delphi TESTS 46 270 24985600 2400
25028 bearf E April 29, 2010, 1:18 p.m. OK Delphi TESTS 46 380 21811200 2400
60348376 llbra9z E Sept. 10, 2019, 1:23 p.m. OK Delphi TESTS 46 592 20070400 2400
8043782 Vitaha E Oct. 1, 2014, 7:07 a.m. OK Delphi TESTS 46 1684 24166400 2400
2849030 lukianchik E Dec. 28, 2012, 12:37 p.m. OK FPC TESTS 46 359 20070400 2400
3849462 PeterTong97 E June 9, 2013, 6:12 a.m. OK FPC TESTS 46 359 40038400 2400
3004642 con_nha_ngheo E Jan. 24, 2013, 5:31 p.m. OK FPC TESTS 46 359 48230400 2400
25053 sevenkplus E May 2, 2010, 8:34 a.m. OK FPC TESTS 46 360 20992000 2400
1651320 kokadva1 dragon.SL E May 3, 2012, 5:49 p.m. OK FPC TESTS 46 360 21094400 2400
2849027 RoMaNoV E Dec. 28, 2012, 12:36 p.m. OK FPC TESTS 46 375 20070400 2400
487982 Sereja E June 15, 2011, 7 a.m. OK FPC TESTS 46 380 13004800 2400
2086528 ccad2015 E Sept. 1, 2012, 8:33 a.m. OK FPC TESTS 46 380 20684800 2400
1920907 Furko E July 21, 2012, 9:56 p.m. OK FPC TESTS 46 380 35225600 2400
24850 ConanKudo E March 31, 2010, 8:17 a.m. OK FPC TESTS 46 390 33075200 2400
9873722 Angellore E Feb. 16, 2015, 4:57 p.m. OK GNU C TESTS 46 436 28057600 2400
34574572 shiyanrui E Jan. 26, 2018, 12:02 p.m. OK GNU C TESTS 46 436 29900800 2400
36412425 rainboy E March 19, 2018, 1:56 p.m. OK GNU C TESTS 46 466 19353600 2400
9874642 Angellore E Feb. 16, 2015, 6:26 p.m. OK GNU C TESTS 46 466 28057600 2400
10312567 angel4death E March 17, 2015, 4:18 p.m. OK GNU C TESTS 46 468 19968000 2400
36396187 rainboy E March 18, 2018, 5:35 p.m. OK GNU C TESTS 46 904 27340800 2400
24896 china.zhangchenzi E April 2, 2010, 3:35 a.m. OK GNU C TESTS 46 1110 23859200 2400
23642 LayCurse E March 20, 2010, 5:52 p.m. OK GNU C TESTS 46 2220 179302400 2400
994069 jackiesteed E Jan. 1, 2012, 4:10 p.m. OK GNU C++ TESTS 46 110 26624000 2400
25493 wym510 E Sept. 24, 2010, 5:38 a.m. OK GNU C++ TESTS 46 110 43417600 2400
7897815 Susake E Sept. 21, 2014, 2:17 p.m. OK GNU C++ TESTS 46 124 11980800 2400
22078810 Claris E Nov. 6, 2016, 4:23 p.m. OK GNU C++ TESTS 46 124 30822400 2400
32734577 Behrooz_Binary E Nov. 27, 2017, 8:14 p.m. OK GNU C++ TESTS 46 124 44134400 2400
793088 sanzunonyasama E Oct. 24, 2011, 9:46 a.m. OK GNU C++ TESTS 46 130 21401600 2400
13913010 __debug E Oct. 28, 2015, 11:11 a.m. OK GNU C++ TESTS 46 154 13004800 2400
24334718 zhan8855 E Feb. 1, 2017, 6:48 a.m. OK GNU C++ TESTS 46 154 32972800 2400
20283188 Jin_Haonan E Aug. 30, 2016, 3:04 p.m. OK GNU C++ TESTS 46 156 15872000 2400
8338295 Stilwell E Oct. 21, 2014, 6:54 a.m. OK GNU C++ TESTS 46 156 19968000 2400
3969880 zekyll E June 28, 2013, 6:53 a.m. OK GNU C++0x TESTS 46 93 12083200 2400
6763714 FancyCoder E June 1, 2014, 10:29 a.m. OK GNU C++0x TESTS 46 186 21094400 2400
3905121 ilovealyona E June 16, 2013, 12:30 p.m. OK GNU C++0x TESTS 46 265 15974400 2400
7824181 A_Le_K E Sept. 18, 2014, 8:54 a.m. OK GNU C++0x TESTS 46 310 12800000 2400
6125635 ilovealyona E March 23, 2014, 1:46 p.m. OK GNU C++0x TESTS 46 310 16076800 2400
6105622 ilovealyona E March 22, 2014, 1:50 p.m. OK GNU C++0x TESTS 46 312 16076800 2400
8827584 slycelote E Nov. 23, 2014, 5:57 p.m. OK GNU C++0x TESTS 46 374 17203200 2400
5874263 BrightDays E Feb. 3, 2014, 2:34 p.m. OK GNU C++0x TESTS 46 436 16076800 2400
8328485 xtrome E Oct. 20, 2014, 9:12 a.m. OK GNU C++0x TESTS 46 436 19968000 2400
10217131 huantwofat E March 9, 2015, 12:02 p.m. OK GNU C++0x TESTS 46 436 20070400 2400
46936964 Dragon_fxl E Dec. 12, 2018, 2:22 p.m. OK GNU C11 TESTS 46 374 16076800 2400
46933047 Dragon_fxl E Dec. 12, 2018, 12:34 p.m. OK GNU C11 TESTS 46 404 16076800 2400
46937229 Dragon_fxl E Dec. 12, 2018, 2:29 p.m. OK GNU C11 TESTS 46 434 11980800 2400
35170129 nn020701 E Feb. 12, 2018, 6:20 a.m. OK GNU C++11 TESTS 46 124 14438400 2400
64291150 zzy2005 E Nov. 5, 2019, 7:03 a.m. OK GNU C++11 TESTS 46 154 16281600 2400
51258209 luogu_bot4 E March 13, 2019, 12:13 p.m. OK GNU C++11 TESTS 46 154 16896000 2400
44526928 _zay E Oct. 19, 2018, 3:32 a.m. OK GNU C++11 TESTS 46 154 16896000 2400
44568753 Zechariah_2001 E Oct. 20, 2018, 3:13 a.m. OK GNU C++11 TESTS 46 154 16998400 2400
58249069 luogu_bot2 E Aug. 4, 2019, 6:58 a.m. OK GNU C++11 TESTS 46 154 16998400 2400
57935245 luogu_bot2 E July 29, 2019, 10:22 a.m. OK GNU C++11 TESTS 46 154 16998400 2400
30363911 YPZ_979 E Sept. 15, 2017, 1:21 p.m. OK GNU C++11 TESTS 46 154 24064000 2400
64305218 luogu_bot1 E Nov. 5, 2019, 11:16 a.m. OK GNU C++11 TESTS 46 156 16998400 2400
64203070 luogu_bot5 E Nov. 4, 2019, 12:03 p.m. OK GNU C++11 TESTS 46 156 16998400 2400
56618029 yltx E July 6, 2019, 10:39 a.m. OK GNU C++14 TESTS 46 530 16076800 2400
67868739 illuminati_XY E Dec. 29, 2019, 10:38 a.m. OK GNU C++14 TESTS 46 530 16281600 2400
56690603 Rick1 E July 8, 2019, 3:28 a.m. OK GNU C++14 TESTS 46 530 20070400 2400
49341996 fsh317574518 E Feb. 2, 2019, 12:42 a.m. OK GNU C++14 TESTS 46 560 16076800 2400
66165388 nabid_anzum E Dec. 2, 2019, 7:17 a.m. OK GNU C++14 TESTS 46 560 16076800 2400
69783661 ak_taniya124 E Jan. 29, 2020, 4:49 p.m. OK GNU C++14 TESTS 46 560 16076800 2400
62057917 wyxdrqc E Oct. 7, 2019, 12:42 p.m. OK GNU C++14 TESTS 46 560 30412800 2400
59197490 schrodingercatss E Aug. 21, 2019, 2:31 a.m. OK GNU C++14 TESTS 46 592 16076800 2400
31039430 BinZhao E Oct. 5, 2017, 3:39 p.m. OK GNU C++14 TESTS 46 592 16076800 2400
34550675 satvik007 E Jan. 25, 2018, 3:25 p.m. OK GNU C++14 TESTS 46 592 17920000 2400
61870540 inv0ker E Oct. 4, 2019, 6 p.m. OK GNU C++17 TESTS 46 156 20172800 2400
45026356 magdy.hasan E Oct. 28, 2018, 10:12 p.m. OK GNU C++17 TESTS 46 560 20275200 2400
53704378 c9mH E May 3, 2019, 12:27 p.m. OK GNU C++17 TESTS 46 590 20070400 2400
69550729 liyuchong2 E Jan. 26, 2020, 6:18 a.m. OK GNU C++17 TESTS 46 590 21606400 2400
46782670 manhcuong99 E Dec. 9, 2018, 4:02 a.m. OK GNU C++17 TESTS 46 592 12083200 2400
62429891 dpkun E Oct. 12, 2019, 3:29 p.m. OK GNU C++17 TESTS 46 592 19968000 2400
63608725 Arianfk E Oct. 27, 2019, 4:14 p.m. OK GNU C++17 TESTS 46 592 21606400 2400
47460360 Bench0310 E Dec. 24, 2018, 2:46 p.m. OK GNU C++17 TESTS 46 622 16793600 2400
61544712 luogu_bot3 E Sept. 30, 2019, 9:54 a.m. OK GNU C++17 TESTS 46 622 20070400 2400
64639600 new_Start_CY E Nov. 10, 2019, 12:40 p.m. OK GNU C++17 TESTS 46 622 20070400 2400
29284484 WangJialei E Aug. 8, 2017, 12:05 p.m. OK Go TESTS 46 3088 75980800 2400
46821661 gehirndoper E Dec. 9, 2018, 3:39 p.m. OK Haskell TESTS 46 652 94310400 2400
470650 niyaznigmatul E May 26, 2011, 6:30 p.m. OK Java 6 TESTS 46 630 135987200 2400
24912 izbyshev E April 3, 2010, 4:21 a.m. OK Java 6 TESTS 46 670 111206400 2400
1233322 Slamur E Feb. 25, 2012, 8:17 a.m. OK Java 6 TESTS 46 700 138137600 2400
6002387 DooIt E March 12, 2014, 11:01 a.m. OK Java 6 TESTS 46 716 88473600 2400
23956 ivan.popelyshev E March 20, 2010, 7:04 p.m. OK Java 6 TESTS 46 720 67993600 2400
23050 winger E March 20, 2010, 5:08 p.m. OK Java 6 TESTS 46 920 103116800 2400
24266 dimozzz E March 21, 2010, 10:18 a.m. OK Java 6 TESTS 46 1080 174182400 2400
24515 yiuyuho E March 22, 2010, 3:57 p.m. OK Java 6 TESTS 46 1160 124006400 2400
3326062 bendyna.ivan E March 16, 2013, 1:49 p.m. OK Java 6 TESTS 46 1281 92672000 2400
368689 segrey E April 1, 2011, 12:44 p.m. OK Java 6 TESTS 46 1470 142336000 2400
18044624 DukeOfYork E May 23, 2016, 1:58 p.m. OK Java 7 TESTS 46 434 55193600 2400
5959112 larvaboy E March 7, 2014, 7:28 p.m. OK Java 7 TESTS 46 748 88576000 2400
1861548 mmaxio E July 3, 2012, 10:06 p.m. OK Java 7 TESTS 46 770 137728000 2400
11175219 mkirsche E May 20, 2015, 8:46 a.m. OK Java 7 TESTS 46 810 92160000 2400
7798113 darrensun E Sept. 15, 2014, 2:01 a.m. OK Java 7 TESTS 46 810 92672000 2400
1940437 qwerty787788 E July 26, 2012, 12:43 a.m. OK Java 7 TESTS 46 840 154419200 2400
14960647 xiaowuc1 E Dec. 23, 2015, 9:05 p.m. OK Java 7 TESTS 46 872 92467200 2400
10800794 dspstanky E April 20, 2015, 4:35 p.m. OK Java 7 TESTS 46 934 161177600 2400
6164443 Cricycle E March 28, 2014, 1:57 a.m. OK Java 7 TESTS 46 1028 185856000 2400
1444740 wigor E March 30, 2012, 9:12 p.m. OK Java 7 TESTS 46 2670 250060800 2400
10606967 he_19 E April 5, 2015, 10:13 p.m. OK Java 8 TESTS 46 374 12595200 2400
60902467 Oom E Sept. 19, 2019, 11:13 p.m. OK Java 8 TESTS 46 716 93286400 2400
9739633 Dukkha E Feb. 6, 2015, 7:29 p.m. OK Java 8 TESTS 46 810 91545600 2400
28379767 youtarou E July 9, 2017, 3:29 a.m. OK Java 8 TESTS 46 840 100454400 2400
10642464 shortyfin E April 9, 2015, 5:15 p.m. OK Java 8 TESTS 46 842 86630400 2400
10568893 naiyt E April 4, 2015, 2:53 a.m. OK Java 8 TESTS 46 872 91545600 2400
11695396 Slayer_29 E June 21, 2015, 11:05 a.m. OK Java 8 TESTS 46 872 91648000 2400
19143488 kafy83 E July 15, 2016, 5:39 a.m. OK Java 8 TESTS 46 872 99737600 2400
10596408 cpt_fwiffo E April 5, 2015, 1:37 a.m. OK Java 8 TESTS 46 902 86528000 2400
9974862 zzkzkkzzkz E Feb. 23, 2015, 11:10 p.m. OK Java 8 TESTS 46 1154 112947200 2400
5609494 LowB E Jan. 3, 2014, 9:16 a.m. OK JavaScript TESTS 46 2744 170291200 2400
1446098 consoleapplication1 E March 31, 2012, 10:04 a.m. OK Mono C# TESTS 46 860 189235200 2400
18296018 fsb4000 E June 8, 2016, 9:46 a.m. OK Mono C# TESTS 46 1278 187187200 2400
14642704 asdanilenko E Dec. 4, 2015, 5:49 a.m. OK Mono C# TESTS 46 3024 194150400 2400
18006338 azukun E May 20, 2016, 2:40 p.m. OK MS C# TESTS 46 1028 158412800 2400
20977427 AnatolyTolstobrov E Sept. 28, 2016, 7:12 p.m. OK MS C# TESTS 46 1246 15974400 2400
23186 dzhulgakov E March 20, 2010, 5:18 p.m. OK MS C++ TESTS 46 340 18124800 2400
2870295 LovelyPenguin E Jan. 3, 2013, 6:58 p.m. OK MS C++ TESTS 46 343 17100800 2400
3236582 smx E March 4, 2013, 6:45 a.m. OK MS C++ TESTS 46 343 23040000 2400
2255253 XilinX E Sept. 27, 2012, 8:43 a.m. OK MS C++ TESTS 46 359 20992000 2400
23322 RAVEman E March 20, 2010, 5:27 p.m. OK MS C++ TESTS 46 360 23244800 2400
25347 july E July 29, 2010, 8:15 p.m. OK MS C++ TESTS 46 360 61440000 2400
24874 nostop E March 31, 2010, 3:43 p.m. OK MS C++ TESTS 46 380 17408000 2400
24872 nostop E March 31, 2010, 3:41 p.m. OK MS C++ TESTS 46 380 17408000 2400
24639 DmitryKlenov E March 24, 2010, 11:32 p.m. OK MS C++ TESTS 46 380 17408000 2400
2052263 Antoniuk E Aug. 27, 2012, 12:03 p.m. OK MS C++ TESTS 46 390 18534400 2400
61760866 tyf0530 E Oct. 3, 2019, 7:03 a.m. OK MS C++ 2017 TESTS 46 686 80179200 2400
63627684 Saber4096 E Oct. 28, 2019, 4:51 a.m. OK MS C++ 2017 TESTS 46 1808 20480000 2400
7603871 ShingRay E Aug. 27, 2014, 9:47 a.m. OK Ocaml TESTS 46 904 29081600 2400
26202593 kunal_64 E April 7, 2017, 7:51 p.m. OK PyPy 2 TESTS 46 810 92262400 2400
35885987 ______k______ E March 3, 2018, 1:38 p.m. OK PyPy 2 TESTS 46 1028 83456000 2400
35885120 ______i______ E March 3, 2018, 1:22 p.m. OK PyPy 2 TESTS 46 1028 83456000 2400
35883219 ______M______ E March 3, 2018, 12:50 p.m. OK PyPy 2 TESTS 46 1028 83456000 2400
35817000 radioegor146 E March 1, 2018, 7:07 p.m. OK PyPy 2 TESTS 46 1028 83456000 2400
35894838 _____i_____ E March 3, 2018, 4:30 p.m. OK PyPy 2 TESTS 46 1028 83456000 2400
35895764 _____k_____ E March 3, 2018, 4:52 p.m. OK PyPy 2 TESTS 46 1028 83456000 2400
35895166 ______n______ E March 3, 2018, 4:36 p.m. OK PyPy 2 TESTS 46 1028 83456000 2400
35895080 ______u______ E March 3, 2018, 4:35 p.m. OK PyPy 2 TESTS 46 1028 83456000 2400
35886586 ______h______ E March 3, 2018, 1:50 p.m. OK PyPy 2 TESTS 46 1028 83456000 2400
66465098 Pippinpaddleopsicopolis E Dec. 7, 2019, 4:13 p.m. OK PyPy 3 TESTS 46 2244 103526400 2400
66746170 tycyd E Dec. 13, 2019, 2:31 a.m. OK PyPy 3 TESTS 46 2308 81510400 2400
59633996 winless E Aug. 28, 2019, 7:36 p.m. OK PyPy 3 TESTS 46 2650 79667200 2400
274885 ShingRay E Feb. 4, 2011, 10:52 a.m. OK Python 2 TESTS 46 2480 76390400 2400
3223231 daidailanlan E March 1, 2013, 8:01 a.m. OK Python 2 TESTS 46 3234 86528000 2400
3223160 daidailanlan E March 1, 2013, 7:48 a.m. OK Python 2 TESTS 46 3265 86323200 2400
3530657 malcolmyu E April 14, 2013, 2:51 a.m. OK Python 2 TESTS 46 3281 86528000 2400
3223139 daidailanlan E March 1, 2013, 7:45 a.m. OK Python 2 TESTS 46 3578 86937600 2400
11011640 darrensun E May 6, 2015, 9:56 a.m. OK Python 2 TESTS 46 3836 53657600 2400
11011621 darrensun E May 6, 2015, 9:53 a.m. OK Python 2 TESTS 46 3868 65843200 2400
3967581 E478 E June 27, 2013, 2:54 p.m. OK Python 2 TESTS 46 3906 53555200 2400
31876200 RetiaAdolf E Oct. 29, 2017, 7:50 p.m. OK Python 2 TESTS 46 3960 65945600 2400
17882149 hmoribe E May 12, 2016, 10:24 p.m. OK Python 3 TESTS 46 2464 80384000 2400
40407456 letoug E July 16, 2018, 10:38 a.m. OK Python 3 TESTS 46 3868 76492800 2400
6333206 zkw E April 12, 2014, 1:54 p.m. OK Scala TESTS 46 1932 143257600 2400
6322097 zkw E April 11, 2014, 12:35 p.m. OK Scala TESTS 46 2494 167424000 2400
6321720 zkw E April 11, 2014, 11:23 a.m. OK Scala TESTS 46 2744 174694400 2400
6333242 zkw E April 12, 2014, 2:02 p.m. OK Scala TESTS 46 3586 103116800 2400

remove filters

Back to search problems