Codeforces Beta Round 72 (Div. 1 Only)

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
83 Codeforces Beta Round 72 (Div. 1 Only) FINISHED False 7200 426523799 May 13, 2011, 3:10 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 480 ) E Two Subsequences PROGRAMMING bitmasks dp 2800

B"On an IT lesson Valera studied data compression. The teacher told about a new method, which we shall now describe to you. Let {a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an} be the given sequence of lines needed to be compressed. Here and below we shall assume that all lines are of the same length and consist only of the digits 0 and 1. Let's define the compression function: Valera faces a real challenge: he should divide the given sequence {a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an} into two subsequences {b1, xe2 x80 x89b2, xe2 x80 x89..., xe2 x80 x89bk} and {c1, xe2 x80 x89c2, xe2 x80 x89..., xe2 x80 x89cm}, m xe2 x80 x89+ xe2 x80 x89k xe2 x80 x89= xe2 x80 x89n, so that the value of S xe2 x80 x89= xe2 x80 x89|f(b1, xe2 x80 x89b2, xe2 x80 x89..., xe2 x80 x89bk)| xe2 x80 x89+ xe2 x80 x89|f(c1, xe2 x80 x89c2, xe2 x80 x89..., xe2 x80 x89cm)| took the minimum possible value. Here |p| denotes the length of the string p. Note that it is not allowed to change the relative order of lines in the subsequences. It is allowed to make one of the subsequences empty. Each string from the initial sequence should belong to exactly one subsequence. Elements of subsequences b and c don't have to be consecutive in the original sequence a, i. e. elements of b and c can alternate in a (see samples 2 and 3). Help Valera to find the minimum possible value of S. The first line of input data contains an integer n -- the number of strings (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7105). Then on n lines follow elements of the sequence -- strings whose lengths are from 1 to 20 characters, consisting only of digits 0 and 1. The i xe2 x80 x89+ xe2 x80 x891-th input line contains the i-th element of the sequence. Elements of the sequence are separated only by a newline. It is guaranteed that all lines have the same length. Print a single number -- the minimum possible value of S. Detailed answers to the tests:"...

Tutorials

разбор E

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
455572 sankear E May 14, 2011, 9:51 p.m. OK Delphi TESTS 55 480 144793600 2800
457399 maxim_polt E May 17, 2011, 12:31 a.m. OK Delphi TESTS 55 1560 113152000 2800
450578 tourist E May 13, 2011, 4:28 p.m. OK Delphi TESTS 55 1560 113152000 2800
1445089 sillycross E March 31, 2012, 2:50 a.m. OK FPC TESTS 55 220 98508800 2800
1869003 blackapple E July 6, 2012, 10:46 a.m. OK FPC TESTS 55 230 11264000 2800
1868999 blackapple E July 6, 2012, 10:41 a.m. OK FPC TESTS 55 250 11264000 2800
1161275 zanoes E Feb. 10, 2012, 1:49 p.m. OK FPC TESTS 55 280 132505600 2800
10155198 403369233 E March 5, 2015, 1:06 a.m. OK FPC TESTS 55 310 9216000 2800
2796467 luogan E Dec. 20, 2012, 2:02 a.m. OK FPC TESTS 55 312 93388800 2800
1175298 coolinging E Feb. 13, 2012, 9:15 a.m. OK FPC TESTS 55 330 89292800 2800
1175297 coolinging E Feb. 13, 2012, 9:14 a.m. OK FPC TESTS 55 330 89292800 2800
545597 vlad107 E July 14, 2011, 8:12 p.m. OK FPC TESTS 55 560 193740800 2800
459220 Sereja E May 19, 2011, 7:01 a.m. OK FPC TESTS 55 1080 181862400 2800
2511158 ACMonster E Nov. 5, 2012, 1:33 p.m. OK GNU C++ TESTS 55 140 89088000 2800
20494734 Wuvin E Sept. 10, 2016, 10:10 a.m. OK GNU C++ TESTS 55 156 10444800 2800
15816537 JOHNKRAM E Feb. 5, 2016, 1:32 a.m. OK GNU C++ TESTS 55 156 90112000 2800
609905 kelvin E Aug. 13, 2011, 9:52 p.m. OK GNU C++ TESTS 55 170 10547200 2800
470675 tmt514 E May 26, 2011, 7:18 p.m. OK GNU C++ TESTS 55 170 10547200 2800
2851053 master_miu E Dec. 29, 2012, 3:27 a.m. OK GNU C++ TESTS 55 171 11571200 2800
40992710 ReaLNero1 E July 31, 2018, 1:31 a.m. OK GNU C++ TESTS 55 186 90112000 2800
8069906 brandnewnode E Oct. 3, 2014, 3:16 p.m. OK GNU C++ TESTS 55 186 95641600 2800
2521587 roosephu E Nov. 8, 2012, 6:45 a.m. OK GNU C++ TESTS 55 187 19456000 2800
2552433 CMHJT E Nov. 13, 2012, 11:30 a.m. OK GNU C++ TESTS 55 187 22630400 2800
2822074 llj_bash E Dec. 24, 2012, 11:20 a.m. OK GNU C++0x TESTS 55 218 89088000 2800
3559427 Robert E April 18, 2013, 8:24 a.m. OK GNU C++0x TESTS 55 234 10854400 2800
2763581 apia E Dec. 14, 2012, noon OK GNU C++0x TESTS 55 250 97792000 2800
7725292 Gones E Sept. 9, 2014, 3:30 a.m. OK GNU C++0x TESTS 55 280 97792000 2800
9662907 hzwer E Feb. 1, 2015, 8:08 a.m. OK GNU C++0x TESTS 55 310 130969600 2800
3500879 lyoz E April 10, 2013, 7:41 p.m. OK GNU C++0x TESTS 55 312 101785600 2800
3500726 lyoz E April 10, 2013, 6:53 p.m. OK GNU C++0x TESTS 55 968 113971200 2800
9217437 sdya E Dec. 21, 2014, 5:08 p.m. OK GNU C++0x TESTS 55 1870 122265600 2800
64095396 birchtree E Nov. 2, 2019, 1:45 p.m. OK GNU C++11 TESTS 55 184 105881600 2800
52217083 HeHere E April 2, 2019, 3:06 a.m. OK GNU C++11 TESTS 55 186 10854400 2800
63931784 Steven_Meng E Oct. 31, 2019, 2:30 p.m. OK GNU C++11 TESTS 55 186 92262400 2800
15336766 ErdemKirez E Jan. 13, 2016, 8:11 p.m. OK GNU C++11 TESTS 55 218 10854400 2800
18694042 Dirak E June 24, 2016, 5:10 a.m. OK GNU C++11 TESTS 55 218 17408000 2800
18863070 Manchery E July 3, 2016, 5:15 a.m. OK GNU C++11 TESTS 55 218 88985600 2800
55719321 Big_black_jujube E June 18, 2019, 2:25 p.m. OK GNU C++11 TESTS 55 218 90624000 2800
18693949 Dirak E June 24, 2016, 5 a.m. OK GNU C++11 TESTS 55 248 17408000 2800
32713779 Mikaeel E Nov. 27, 2017, 11:57 a.m. OK GNU C++11 TESTS 55 248 22118400 2800
18721345 Y_UME E June 25, 2016, 2:45 p.m. OK GNU C++11 TESTS 55 248 89088000 2800
23671558 Ali.Pi E Jan. 9, 2017, 9:52 p.m. OK GNU C++14 TESTS 55 248 19558400 2800
52157729 ugly2333 E April 1, 2019, 2 p.m. OK GNU C++14 TESTS 55 278 17715200 2800
36458723 RayPatterson E March 21, 2018, 3:59 p.m. OK GNU C++14 TESTS 55 278 126361600 2800
47604895 zhou888 E Dec. 28, 2018, 3:49 a.m. OK GNU C++14 TESTS 55 310 126156800 2800
52237663 vjudge4 E April 2, 2019, 2:24 p.m. OK GNU C++14 TESTS 55 310 134553600 2800
32561449 ckodser E Nov. 22, 2017, 8:44 p.m. OK GNU C++14 TESTS 55 310 193331200 2800
34266773 Cyanic E Jan. 18, 2018, 5 a.m. OK GNU C++14 TESTS 55 312 98508800 2800
34884641 nanicode E Feb. 3, 2018, 6:35 a.m. OK GNU C++14 TESTS 55 342 126259200 2800
52236823 tender_green E April 2, 2019, 2:05 p.m. OK GNU C++14 TESTS 55 342 156876800 2800
68691988 vjudge2 E Jan. 13, 2020, 6:32 a.m. OK GNU C++14 TESTS 55 372 248422400 2800
68692297 vjudge3 E Jan. 13, 2020, 6:40 a.m. OK GNU C++17 TESTS 55 218 19251200 2800
68692237 vjudge5 E Jan. 13, 2020, 6:39 a.m. OK GNU C++17 TESTS 55 248 42496000 2800
54717281 BackOnTrack E May 27, 2019, 2:07 p.m. OK GNU C++17 TESTS 55 310 86732800 2800
46786636 ShichengXiao E Dec. 9, 2018, 6:52 a.m. OK GNU C++17 TESTS 55 310 89088000 2800
44353385 NiceBaseballCoder E Oct. 15, 2018, 11:18 a.m. OK GNU C++17 TESTS 55 342 177561600 2800
39589403 ruo E June 24, 2018, 4:38 a.m. OK GNU C++17 TESTS 55 372 89907200 2800
68697284 vjudge1 E Jan. 13, 2020, 8:20 a.m. OK GNU C++17 TESTS 55 374 178073600 2800
56744271 Shayan.P E July 9, 2019, 8:58 a.m. OK GNU C++17 TESTS 55 404 177356800 2800
68697323 ArshiaDadras E Jan. 13, 2020, 8:20 a.m. OK GNU C++17 TESTS 55 404 178073600 2800
61790349 -is-this-fft- E Oct. 3, 2019, 3:41 p.m. OK GNU C++17 TESTS 55 404 192819200 2800
513361 Akatsuki E June 28, 2011, 6:34 p.m. OK Java 6 TESTS 55 440 203673600 2800
450795 Egor E May 13, 2011, 4:33 p.m. OK Java 6 TESTS 55 520 43315200 2800
468815 TomConerly E May 24, 2011, 12:53 a.m. OK Java 6 TESTS 55 1030 52633600 2800
710977 FattyPenguin E Sept. 21, 2011, 4:26 p.m. OK Java 6 TESTS 55 1450 204083200 2800
23868758 Chapecoense E Jan. 15, 2017, 9:02 p.m. OK Java 8 TESTS 55 654 27238400 2800
2255565 XilinX E Sept. 27, 2012, 10:58 a.m. OK MS C++ TESTS 55 500 1638400 2800
451947 SergeyRogulenko E May 13, 2011, 4:57 p.m. OK MS C++ TESTS 55 1910 20582400 2800

remove filters

Back to search problems