Codeforces Beta Round 33 (Codeforces format)

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
33 Codeforces Beta Round 33 (Codeforces format) FINISHED False 7200 445359599 Oct. 7, 2010, 3 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3028 ) C Wonderful Randomized Sum PROGRAMMING greedy 1800

B"Learn, learn and learn again -- Valera has to do this every day. He is studying at mathematical school, where math is the main discipline. The mathematics teacher loves her discipline very much and tries to cultivate this love in children. That's why she always gives her students large and difficult homework. Despite that Valera is one of the best students, he failed to manage with the new homework. That's why he asks for your help. He has the following task. A sequence of n numbers is given. A prefix of a sequence is the part of the sequence (possibly empty), taken from the start of the sequence. A suffix of a sequence is the part of the sequence (possibly empty), taken from the end of the sequence. It is allowed to sequentially make two operations with the sequence. The first operation is to take some prefix of the sequence and multiply all numbers in this prefix by xe2 x80 x89- xe2 x80 x891. The second operation is to take some suffix and multiply all numbers in it by xe2 x80 x89- xe2 x80 x891. The chosen prefix and suffix may intersect. What is the maximum total sum of the sequence that can be obtained by applying the described operations? The first line contains integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) -- amount of elements in the sequence. The second line contains n integers ai ( xe2 x80 x89- xe2 x80 x89104 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89104) -- the sequence itself. The first and the only line of the output should contain the answer to the problem."...

Tutorials

Codeforces Beta Round #33 (personal participation commentaries)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
54980810 rr_ C June 2, 2019, 1:04 p.m. OK D TESTS 89 92 11571200 1800
147156 LLI_E_P_JI_O_K C Oct. 14, 2010, 4:07 p.m. OK Delphi TESTS 89 30 819200 1800
1645127 vlfom C April 30, 2012, 4:55 a.m. OK Delphi TESTS 89 30 2048000 1800
1359811 your_conscience C March 15, 2012, 8:11 p.m. OK Delphi TESTS 89 30 2560000 1800
2700147 Misha100896 C Dec. 6, 2012, 12:07 p.m. OK Delphi TESTS 89 31 819200 1800
2963010 Mosyagin C Jan. 20, 2013, 12:20 p.m. OK Delphi TESTS 89 31 3276800 1800
3226568 AleksanderBalobanov C March 1, 2013, 5:27 p.m. OK Delphi TESTS 89 31 6041600 1800
141949 tourist C Oct. 7, 2010, 3:14 p.m. OK Delphi TESTS 89 50 1638400 1800
143117 sankear C Oct. 7, 2010, 3:47 p.m. OK Delphi TESTS 89 50 2457600 1800
143517 PanZverski C Oct. 7, 2010, 4 p.m. OK Delphi TESTS 89 50 3174400 1800
146937 Spoorock C Oct. 11, 2010, 9:34 a.m. OK Delphi TESTS 89 50 3788800 1800
4394383 acac97 C Sept. 1, 2013, 6:02 p.m. OK FPC TESTS 89 30 819200 1800
5490195 llaugusty C Dec. 22, 2013, 4:28 a.m. OK FPC TESTS 89 30 1331200 1800
5437574 Whiteknight4796 C Dec. 14, 2013, 7:34 a.m. OK FPC TESTS 89 30 1740800 1800
143410 white_cobra1 C Oct. 7, 2010, 3:56 p.m. OK FPC TESTS 89 30 2048000 1800
2829760 skrydg C Dec. 26, 2012, 4:11 p.m. OK FPC TESTS 89 31 1228800 1800
2878974 Programmer007 C Jan. 6, 2013, 5:44 p.m. OK FPC TESTS 89 46 0 1800
2358872 kaolavinh1417 C Oct. 14, 2012, 3:02 p.m. OK FPC TESTS 89 46 1228800 1800
147570 sevenkplus C Dec. 9, 2010, 11:06 a.m. OK FPC TESTS 89 50 819200 1800
1918306 metalopocalipsis C July 20, 2012, 8:35 p.m. OK FPC TESTS 89 50 1228800 1800
146401 vilcheuski C Oct. 8, 2010, 6:42 p.m. OK FPC TESTS 89 50 1228800 1800
2880012 sarveshmahajan C Jan. 7, 2013, 8:17 a.m. OK GNU C TESTS 89 31 409600 1800
2878151 UdyanK C Jan. 6, 2013, 11:51 a.m. OK GNU C TESTS 89 31 409600 1800
2878110 yogicxl C Jan. 6, 2013, 11:42 a.m. OK GNU C TESTS 89 31 409600 1800
2877537 himangi774 C Jan. 6, 2013, 9:53 a.m. OK GNU C TESTS 89 31 409600 1800
2877467 cs_shadow C Jan. 6, 2013, 9:44 a.m. OK GNU C TESTS 89 31 409600 1800
2877444 karanaggarwal C Jan. 6, 2013, 9:41 a.m. OK GNU C TESTS 89 31 409600 1800
2928693 enezx C Jan. 16, 2013, 6:37 a.m. OK GNU C TESTS 89 46 409600 1800
2878650 shubham_depp1 C Jan. 6, 2013, 3:02 p.m. OK GNU C TESTS 89 46 409600 1800
2878066 Numero_one C Jan. 6, 2013, 11:26 a.m. OK GNU C TESTS 89 46 409600 1800
671888 kawatea C Sept. 7, 2011, 9:11 a.m. OK GNU C TESTS 89 50 2560000 1800
4211514 vjudge3 C Aug. 1, 2013, 2:10 a.m. OK GNU C++ TESTS 89 30 819200 1800
4209073 vjudge5 C July 31, 2013, 11:55 a.m. OK GNU C++ TESTS 89 30 819200 1800
4209125 vjudge4 C July 31, 2013, 12:06 p.m. OK GNU C++ TESTS 89 30 1638400 1800
4209190 vjudge2 C July 31, 2013, 12:23 p.m. OK GNU C++ TESTS 89 30 2048000 1800
146447 dani93.f C Oct. 8, 2010, 7:53 p.m. OK GNU C++ TESTS 89 30 2662400 1800
4929690 pco C Oct. 29, 2013, 3:19 p.m. OK GNU C++ TESTS 89 31 0 1800
3429841 dive5617 C April 1, 2013, 7:54 a.m. OK GNU C++ TESTS 89 31 0 1800
3425958 vjudge5 C March 31, 2013, 7:17 a.m. OK GNU C++ TESTS 89 31 0 1800
3482105 alex20030190 C April 7, 2013, 1:45 p.m. OK GNU C++ TESTS 89 31 409600 1800
2881601 cheta.gup C Jan. 7, 2013, 10:31 p.m. OK GNU C++ TESTS 89 31 409600 1800
3232664 2011330300713 C March 3, 2013, 5:55 a.m. OK GNU C++0x TESTS 89 31 0 1800
3687758 mia C May 6, 2013, 4:35 p.m. OK GNU C++0x TESTS 89 31 5324800 1800
3295046 Doxer C March 12, 2013, 2:19 p.m. OK GNU C++0x TESTS 89 46 409600 1800
788631 bjgo C Oct. 21, 2011, 1:13 p.m. OK GNU C++0x TESTS 89 50 2150400 1800
9430955 robert_nabil20022002 C Jan. 14, 2015, 5:41 p.m. OK GNU C++0x TESTS 89 60 409600 1800
7072126 xiaohao123 C July 13, 2014, 5:09 a.m. OK GNU C++0x TESTS 89 60 1228800 1800
487194 Archon.JK C June 14, 2011, 4:22 a.m. OK GNU C++0x TESTS 89 60 1331200 1800
838929 siuvit C Nov. 7, 2011, 6:26 a.m. OK GNU C++0x TESTS 89 60 2252800 1800
487190 Archon.JK C June 14, 2011, 4:18 a.m. OK GNU C++0x TESTS 89 60 2560000 1800
9785083 dionysios C Feb. 10, 2015, 2:33 a.m. OK GNU C++0x TESTS 89 62 0 1800
39520615 Azaz_wze C June 22, 2018, 3:29 p.m. OK GNU C11 TESTS 89 62 409600 1800
51024455 vjudge3 C March 8, 2019, 11:23 a.m. OK GNU C11 TESTS 89 62 409600 1800
38688484 tqltqltqltql C May 28, 2018, 8:32 a.m. OK GNU C++11 TESTS 89 60 204800 1800
17914855 RNS_CUS C May 15, 2016, 3:08 a.m. OK GNU C++11 TESTS 89 60 3891200 1800
48678019 PresHerobrine C Jan. 21, 2019, 12:19 p.m. OK GNU C++11 TESTS 89 62 0 1800
45665930 luogu_bot3 C Nov. 13, 2018, 7:30 a.m. OK GNU C++11 TESTS 89 62 0 1800
14677766 froghramar C Dec. 6, 2015, 4:12 p.m. OK GNU C++11 TESTS 89 62 0 1800
57452736 samm_vege C July 21, 2019, 10:21 a.m. OK GNU C++11 TESTS 89 62 0 1800
57289029 Kylin_ C July 18, 2019, 3:49 p.m. OK GNU C++11 TESTS 89 62 0 1800
63929638 luogu_bot2 C Oct. 31, 2019, 1:56 p.m. OK GNU C++11 TESTS 89 62 204800 1800
64686800 MaxArtisian C Nov. 11, 2019, 11:59 a.m. OK GNU C++11 TESTS 89 62 204800 1800
64682714 mmmmmwy C Nov. 11, 2019, 10:41 a.m. OK GNU C++11 TESTS 89 62 409600 1800
24566321 sicon54 C Feb. 10, 2017, 9:10 a.m. OK GNU C++14 TESTS 89 30 1945600 1800
49206308 Dinesh_Kumar10 C Jan. 30, 2019, 2 p.m. OK GNU C++14 TESTS 89 62 204800 1800
29837936 vjudge5 C Aug. 28, 2017, 3:26 a.m. OK GNU C++14 TESTS 89 62 409600 1800
30868954 realcomplex C Sept. 30, 2017, 2:21 p.m. OK GNU C++14 TESTS 89 62 409600 1800
29701560 liu397688551 C Aug. 23, 2017, 8:24 a.m. OK GNU C++14 TESTS 89 62 819200 1800
29705099 vjudge3 C Aug. 23, 2017, 11:04 a.m. OK GNU C++14 TESTS 89 62 819200 1800
31323189 -Morass- C Oct. 14, 2017, 8:20 p.m. OK GNU C++14 TESTS 89 62 1228800 1800
30412828 qwertyuiop5040 C Sept. 17, 2017, 7:58 a.m. OK GNU C++14 TESTS 89 62 1638400 1800
24566916 sicon54 C Feb. 10, 2017, 9:44 a.m. OK GNU C++14 TESTS 89 62 1945600 1800
34925348 yashar_sb_sb C Feb. 4, 2018, 3:35 p.m. OK GNU C++14 TESTS 89 62 2662400 1800
51148719 vjudge4 C March 11, 2019, 6:07 a.m. OK GNU C++17 TESTS 89 92 0 1800
47529756 ...z3r0... C Dec. 26, 2018, 6:08 p.m. OK GNU C++17 TESTS 89 92 0 1800
51107263 vjudge3 C March 10, 2019, 12:26 a.m. OK GNU C++17 TESTS 89 92 409600 1800
69904976 vjudge5 C Jan. 31, 2020, 1:55 p.m. OK GNU C++17 TESTS 89 92 409600 1800
69904949 1W_W1 C Jan. 31, 2020, 1:55 p.m. OK GNU C++17 TESTS 89 92 409600 1800
53904766 wwwHen C May 9, 2019, 12:10 p.m. OK GNU C++17 TESTS 89 92 409600 1800
51107246 CanisKalahari C March 10, 2019, 12:24 a.m. OK GNU C++17 TESTS 89 92 409600 1800
50696607 ivan100sic C March 2, 2019, 6:28 p.m. OK GNU C++17 TESTS 89 92 409600 1800
41510834 vjudge5 C Aug. 12, 2018, 2:05 a.m. OK GNU C++17 TESTS 89 92 409600 1800
48811076 PieroVioleta C Jan. 23, 2019, 2:49 p.m. OK GNU C++17 TESTS 89 92 614400 1800
242472 watashi C Jan. 8, 2011, 7:44 p.m. OK Haskell TESTS 89 140 16281600 1800
19452607 vjudge3 C July 28, 2016, 2:37 a.m. OK Haskell TESTS 89 1090 27545600 1800
19452638 CyberZHG C July 28, 2016, 2:39 a.m. OK Haskell TESTS 89 1092 27545600 1800
147210 KTR C Oct. 16, 2010, 7:28 a.m. OK Haskell TESTS 89 1750 25190400 1800
671282 mkut C Sept. 6, 2011, 5:58 p.m. OK Haskell TESTS 89 1920 23142400 1800
142133 Egor C Oct. 7, 2010, 3:19 p.m. OK Java 6 TESTS 89 80 43315200 1800
142260 niyaznigmatul C Oct. 7, 2010, 3:23 p.m. OK Java 6 TESTS 89 90 43315200 1800
146232 caustique C Oct. 8, 2010, 1:52 p.m. OK Java 6 TESTS 89 110 43315200 1800
146058 pyshnograev C Oct. 8, 2010, 10:43 a.m. OK Java 6 TESTS 89 110 43315200 1800
145489 igorkulev C Oct. 7, 2010, 8:54 p.m. OK Java 6 TESTS 89 110 43315200 1800
144535 Abra C Oct. 7, 2010, 4:41 p.m. OK Java 6 TESTS 89 110 43315200 1800
144202 Nenash C Oct. 7, 2010, 4:27 p.m. OK Java 6 TESTS 89 110 43315200 1800
143767 -messi- C Oct. 7, 2010, 4:08 p.m. OK Java 6 TESTS 89 110 43315200 1800
143598 Aksenov239 C Oct. 7, 2010, 4:02 p.m. OK Java 6 TESTS 89 110 43315200 1800
143551 Rei C Oct. 7, 2010, 4 p.m. OK Java 6 TESTS 89 110 43315200 1800
2390875 LovelyPenguin C Oct. 20, 2012, 3 p.m. OK Java 7 TESTS 89 109 0 1800
5489990 Zyflair C Dec. 22, 2013, 3:16 a.m. OK Java 7 TESTS 89 156 0 1800
6400311 ykcland C April 18, 2014, 8:26 a.m. OK Java 7 TESTS 89 218 0 1800
4321714 santjuan C Aug. 21, 2013, 9:46 p.m. OK Java 7 TESTS 89 218 6246400 1800
14462899 kws4679 C Nov. 25, 2015, 5:10 a.m. OK Java 7 TESTS 89 248 0 1800
2753536 hamzah C Dec. 12, 2012, 7:34 a.m. OK Java 7 TESTS 89 390 102400 1800
6991964 marcose18 C July 1, 2014, 12:57 p.m. OK Java 7 TESTS 89 436 102400 1800
12673421 blueskyliulan C Aug. 23, 2015, 1:02 p.m. OK Java 7 TESTS 89 466 0 1800
5783069 teetora C Jan. 24, 2014, 7:02 a.m. OK Java 7 TESTS 89 466 102400 1800
8295804 LouisCK C Oct. 18, 2014, 4:25 p.m. OK Java 7 TESTS 89 498 0 1800
47317341 sooraj10 C Dec. 21, 2018, 5:14 a.m. OK Java 8 TESTS 89 218 0 1800
69538223 MahmoudJobeel C Jan. 25, 2020, 7:53 p.m. OK Java 8 TESTS 89 248 0 1800
51402592 vaibhavpulastya C March 17, 2019, 8:11 a.m. OK Java 8 TESTS 89 248 0 1800
27530296 Ajudiya_13 C June 2, 2017, 7 p.m. OK Java 8 TESTS 89 248 0 1800
46909545 KulikAlex C Dec. 11, 2018, 4:07 p.m. OK Java 8 TESTS 89 248 2150400 1800
33473600 parth_15 C Dec. 21, 2017, 8:09 a.m. OK Java 8 TESTS 89 248 20684800 1800
26503912 pitfall C April 19, 2017, 8:30 p.m. OK Java 8 TESTS 89 248 20684800 1800
16908798 Sumeet.Varma C March 24, 2016, 3:28 p.m. OK Java 8 TESTS 89 248 20684800 1800
26129496 Don_1234 C April 4, 2017, 5:56 p.m. OK Java 8 TESTS 89 248 28876800 1800
44891668 ravi_dtu C Oct. 26, 2018, 3:39 a.m. OK Java 8 TESTS 89 278 0 1800
45257455 nordiccat C Nov. 3, 2018, 8:58 p.m. OK Kotlin TESTS 89 498 0 1800
146465 m.zandy C Oct. 8, 2010, 9:14 p.m. OK Mono C# TESTS 89 160 13209600 1800
146715 superkinhluan C Oct. 9, 2010, 5:25 p.m. OK Mono C# TESTS 89 160 13312000 1800
143339 Hadi_Asiaie C Oct. 7, 2010, 3:54 p.m. OK Mono C# TESTS 89 170 13209600 1800
144249 tanzaku C Oct. 7, 2010, 4:29 p.m. OK Mono C# TESTS 89 170 16281600 1800
144401 x3mka C Oct. 7, 2010, 4:35 p.m. OK Mono C# TESTS 89 230 14336000 1800
27924770 Mem C June 20, 2017, 12:19 p.m. OK MS C# TESTS 89 154 13824000 1800
146215 Vasya.V C Oct. 8, 2010, 1:21 p.m. OK MS C++ TESTS 89 30 2969600 1800
1029480 jiangzhijie C Jan. 11, 2012, 1:08 p.m. OK MS C++ TESTS 89 30 3584000 1800
2800313 YX201314 C Dec. 21, 2012, 5:46 a.m. OK MS C++ TESTS 89 31 3993600 1800
3663120 tomas.svab C May 3, 2013, 11:50 a.m. OK MS C++ TESTS 89 46 6041600 1800
142477 vlad89 C Oct. 7, 2010, 3:29 p.m. OK MS C++ TESTS 89 50 2355200 1800
547963 knock-knock C July 15, 2011, 8:13 p.m. OK MS C++ TESTS 89 50 2560000 1800
141700 Coder C Oct. 7, 2010, 3:08 p.m. OK MS C++ TESTS 89 50 2560000 1800
143220 MBabin C Oct. 7, 2010, 3:50 p.m. OK MS C++ TESTS 89 50 2560000 1800
145748 yudaer C Oct. 8, 2010, 4:20 a.m. OK MS C++ TESTS 89 50 2560000 1800
145817 shou C Oct. 8, 2010, 5:45 a.m. OK MS C++ TESTS 89 50 2560000 1800
49209881 dharaniv1999 C Jan. 30, 2019, 3:11 p.m. OK MS C++ 2017 TESTS 89 92 0 1800
69458951 vjudge3 C Jan. 24, 2020, 9:51 a.m. OK MS C++ 2017 TESTS 89 186 307200 1800
68323310 CygneNoir C Jan. 6, 2020, 3:50 p.m. OK MS C++ 2017 TESTS 89 186 5120000 1800
68322939 CygneNoir C Jan. 6, 2020, 3:41 p.m. OK MS C++ 2017 TESTS 89 186 8704000 1800
145433 apostol.vlz C Oct. 7, 2010, 7:52 p.m. OK PHP TESTS 89 590 62054400 1800
64489635 SoSooding C Nov. 7, 2019, 7:18 p.m. OK PyPy 2 TESTS 89 372 6758400 1800
51264401 vjudge1 C March 13, 2019, 2:50 p.m. OK PyPy 3 TESTS 89 374 10956800 1800
66607089 lowoncode C Dec. 10, 2019, 7:04 p.m. OK PyPy 3 TESTS 89 404 11264000 1800
3072418 m1_k3 C Feb. 4, 2013, 8:10 p.m. OK Python 2 TESTS 89 171 5529600 1800
275091 Aleksey C Feb. 4, 2011, 3:48 p.m. OK Python 2 TESTS 89 200 7987200 1800
935361 nab C Dec. 8, 2011, 9:38 a.m. OK Python 2 TESTS 89 220 8294400 1800
577237 compales2 C Aug. 3, 2011, 7:55 a.m. OK Python 2 TESTS 89 220 8601600 1800
145438 zibada C Oct. 7, 2010, 7:57 p.m. OK Python 2 TESTS 89 230 8294400 1800
2634576 tantrik101 C Nov. 23, 2012, 8:02 p.m. OK Python 2 TESTS 89 250 7168000 1800
5287129 Unlenin C Nov. 28, 2013, 2:21 p.m. OK Python 2 TESTS 89 280 5529600 1800
3072394 m1_k3 C Feb. 4, 2013, 7:59 p.m. OK Python 2 TESTS 89 280 6041600 1800
2531683 laurion C Nov. 10, 2012, 11:46 p.m. OK Python 2 TESTS 89 281 5427200 1800
2634586 tantrik101 C Nov. 23, 2012, 8:05 p.m. OK Python 2 TESTS 89 281 7168000 1800
29603420 Qumeric C Aug. 19, 2017, 4:24 p.m. OK Python 3 TESTS 89 248 7577600 1800
11910905 shubham.zeez C July 3, 2015, 12:44 p.m. OK Python 3 TESTS 89 280 7168000 1800
14919821 Eeyore C Dec. 22, 2015, 1:20 a.m. OK Python 3 TESTS 89 280 7372800 1800
53850166 ParsaBahrami C May 7, 2019, 1:04 p.m. OK Python 3 TESTS 89 374 7475200 1800
42134035 Mk_Python_v1 C Aug. 26, 2018, 9:20 p.m. OK Python 3 TESTS 89 404 7372800 1800
5455967 yugle7 C Dec. 17, 2013, 2:58 p.m. OK Python 3 TESTS 89 530 7577600 1800
14919715 Eeyore C Dec. 22, 2015, 1 a.m. OK Python 3 TESTS 89 560 7372800 1800
146500 mfkhr C Oct. 9, 2010, 1:27 a.m. OK Ruby TESTS 89 610 10854400 1800
4926865 atubo C Oct. 29, 2013, 7:08 a.m. OK Scala TESTS 89 358 3993600 1800

remove filters

Back to search problems