Codeforces Round 272 (Div. 1)

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
477 Codeforces Round 272 (Div. 1) FINISHED False 7200 318700799 Oct. 12, 2014, 2 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 526 ) D Dreamoon and Binary PROGRAMMING dp strings 2600

B"Dreamoon saw a large integer x written on the ground and wants to print its binary form out. Dreamoon has accomplished the part of turning x into its binary format. Now he is going to print it in the following manner. He has an integer n xe2 x80 x89= xe2 x80 x890 and can only perform the following two operations in any order for unlimited times each: Let's define an ideal sequence as a sequence of operations that can successfully print binary representation of x without leading zeros and ends with a print operation (i.e. operation 1). Dreamoon wants to know how many different ideal sequences are there and the length (in operations) of the shortest ideal sequence. The answers might be large so please print them modulo 1000000007 (109 xe2 x80 x89+ xe2 x80 x897). Let's define the string representation of an ideal sequence as a string of '1' and '2' where the i-th character in the string matches the i-th operation performed. Two ideal sequences are called different if their string representations are different. The single line of the input contains a binary integer representing x (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x xe2 x80 x89< xe2 x80 x8925000) without leading zeros. The first line of the output should contain an integer representing the number of different ideal sequences modulo 1000000007 (109 xe2 x80 x89+ xe2 x80 x897). The second line of the output contains an integer representing the minimal length of an ideal sequence modulo 1000000007 (109 xe2 x80 x89+ xe2 x80 x897). For the first sample, the shortest and the only ideal sequence is xc2 xab222221 xc2 xbb of length 6. For the second sample, there are three ideal sequences xc2 xab21211 xc2 xbb, xc2 xab212222222221 xc2 xbb, xc2 xab222222222222222222222222221 xc2 xbb. Among them the shortest one has length 5."...

Tutorials

Разбор (англ.)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
10663606 yubaby D April 12, 2015, 7:21 a.m. OK FPC TESTS 53 920 501657600 2600
8208525 Alex_2oo8 D Oct. 12, 2014, 4:34 p.m. OK FPC TESTS 53 1700 501555200 2600
28015251 AAWisong D June 25, 2017, 3:49 a.m. OK GNU C++ TESTS 53 249 104857600 2600
40987801 ReaLNero1 D July 30, 2018, 9:29 p.m. OK GNU C++ TESTS 53 264 102809600 2600
8212485 Furko D Oct. 12, 2014, 9:52 p.m. OK GNU C++ TESTS 53 280 200806400 2600
8218896 Hwhitetooth D Oct. 13, 2014, 1:49 p.m. OK GNU C++ TESTS 53 295 301875200 2600
8351046 Tim_LinYd D Oct. 22, 2014, 11:31 a.m. OK GNU C++ TESTS 53 296 201216000 2600
41330852 bojverdict2 D Aug. 8, 2018, 8:38 a.m. OK GNU C++ TESTS 53 296 301772800 2600
8213514 sotrqz D Oct. 13, 2014, 2:27 a.m. OK GNU C++ TESTS 53 296 303616000 2600
8351007 Tim_LinYd D Oct. 22, 2014, 11:26 a.m. OK GNU C++ TESTS 53 311 201216000 2600
8220245 cq_phqg D Oct. 13, 2014, 4:01 p.m. OK GNU C++ TESTS 53 311 301772800 2600
8377074 Pudge123 D Oct. 24, 2014, 11:59 a.m. OK GNU C++ TESTS 53 311 307200000 2600
9234544 RealEyes D Dec. 23, 2014, 4:31 p.m. OK GNU C++0x TESTS 53 296 200806400 2600
8205051 ikatanic D Oct. 12, 2014, 3:39 p.m. OK GNU C++0x TESTS 53 326 229990400 2600
8208476 hogloid D Oct. 12, 2014, 4:33 p.m. OK GNU C++0x TESTS 53 343 301158400 2600
8197414 ifsmirnov D Oct. 12, 2014, 2:54 p.m. OK GNU C++0x TESTS 53 343 301977600 2600
8224823 terribleimposter D Oct. 14, 2014, 7:02 a.m. OK GNU C++0x TESTS 53 389 511078400 2600
8209734 ecnerwala D Oct. 12, 2014, 5:20 p.m. OK GNU C++0x TESTS 53 421 432844800 2600
8213569 yutaka1999 D Oct. 13, 2014, 2:35 a.m. OK GNU C++0x TESTS 53 467 200908800 2600
8227408 pavel.savchenkov D Oct. 14, 2014, 12:23 p.m. OK GNU C++0x TESTS 53 468 200806400 2600
8217897 Bobgy D Oct. 13, 2014, 12:20 p.m. OK GNU C++0x TESTS 53 483 315596800 2600
8220273 teleport D Oct. 13, 2014, 4:04 p.m. OK GNU C++0x TESTS 53 514 401305600 2600
11439923 a00012025 D June 5, 2015, 3:49 a.m. OK GNU C++11 TESTS 53 218 201625600 2600
13531546 k0st1a D Oct. 10, 2015, 3:09 p.m. OK GNU C++11 TESTS 53 311 332185600 2600
42851126 vjudge5 D Sept. 14, 2018, 5:45 a.m. OK GNU C++11 TESTS 53 312 301056000 2600
51294781 little_waxberry D March 14, 2019, 12:02 p.m. OK GNU C++11 TESTS 53 327 301260800 2600
57888216 lopare D July 28, 2019, 10:49 a.m. OK GNU C++11 TESTS 53 327 502988800 2600
57818818 py_ultron D July 26, 2019, 9:26 p.m. OK GNU C++11 TESTS 53 327 502988800 2600
42863565 AristocratMarser D Sept. 14, 2018, 2:14 p.m. OK GNU C++11 TESTS 53 343 301260800 2600
42850917 vjudge2 D Sept. 14, 2018, 5:33 a.m. OK GNU C++11 TESTS 53 358 301056000 2600
43023779 vjudge5 D Sept. 18, 2018, 7:17 a.m. OK GNU C++11 TESTS 53 358 301465600 2600
20552536 vjudge4 D Sept. 12, 2016, 4:21 p.m. OK GNU C++11 TESTS 53 373 300748800 2600
56773787 Scut82 D July 10, 2019, 1:06 a.m. OK GNU C++14 TESTS 53 202 313548800 2600
39437072 FallDream D June 20, 2018, 1:25 p.m. OK GNU C++14 TESTS 53 249 201216000 2600
42862765 vjudge2 D Sept. 14, 2018, 1:48 p.m. OK GNU C++14 TESTS 53 311 301772800 2600
65684811 davidberard D Nov. 24, 2019, 10 p.m. OK GNU C++14 TESTS 53 358 205107200 2600
36029038 KhaledKEE D March 6, 2018, 10:23 p.m. OK GNU C++14 TESTS 53 373 404787200 2600
36180913 KhaledKEE D March 10, 2018, 10:51 p.m. OK GNU C++14 TESTS 53 374 404787200 2600
42863556 vjudge4 D Sept. 14, 2018, 2:14 p.m. OK GNU C++14 TESTS 53 389 301158400 2600
58357454 860579 D Aug. 5, 2019, 8:32 p.m. OK GNU C++14 TESTS 53 389 503603200 2600
58353162 vjudge1 D Aug. 5, 2019, 6:04 p.m. OK GNU C++14 TESTS 53 405 503603200 2600
54712266 NotNight D May 27, 2019, 11:07 a.m. OK GNU C++14 TESTS 53 452 251187200 2600
60326716 saketh D Sept. 10, 2019, 2:15 a.m. OK GNU C++17 TESTS 53 202 512000 2600
50101110 ivan100sic D Feb. 18, 2019, 2:57 p.m. OK GNU C++17 TESTS 53 311 301670400 2600
60828761 ruo D Sept. 19, 2019, 5:49 a.m. OK GNU C++17 TESTS 53 311 313548800 2600
54474304 .__. D May 22, 2019, 7:30 a.m. OK GNU C++17 TESTS 53 468 408883200 2600
48646106 mohammadrobot D Jan. 20, 2019, 5:36 p.m. OK GNU C++17 TESTS 53 498 302080000 2600
38779450 majk D May 30, 2018, 4:18 p.m. OK GNU C++17 TESTS 53 514 104345600 2600
57457185 yuhaw D July 21, 2019, 12:06 p.m. OK GNU C++17 TESTS 53 607 501760000 2600
48512950 how_to_become_purple D Jan. 18, 2019, 12:26 a.m. OK GNU C++17 TESTS 53 655 301465600 2600
62477978 hjk1030 D Oct. 13, 2019, 9:43 a.m. OK GNU C++17 TESTS 53 763 301772800 2600
8208891 uwi D Oct. 12, 2014, 4:46 p.m. OK Java 7 TESTS 53 935 342528000 2600
8209503 pashka D Oct. 12, 2014, 5:10 p.m. OK Java 7 TESTS 53 998 335052800 2600
9103071 edorundo D Dec. 13, 2014, 2:58 p.m. OK Java 7 TESTS 53 998 521420800 2600
8203130 andrewzta D Oct. 12, 2014, 3:29 p.m. OK Java 7 TESTS 53 1294 521830400 2600
10533687 KuchumovIlya Merkurev D March 31, 2015, 1:46 p.m. OK Java 7 TESTS 53 1310 342425600 2600
8395755 andrewzta D Oct. 24, 2014, 9:32 p.m. OK Java 7 TESTS 53 1341 521830400 2600
8203773 HAPKOMAH D Oct. 12, 2014, 3:35 p.m. OK Java 7 TESTS 53 1372 392601600 2600
8208920 dnk D Oct. 12, 2014, 4:47 p.m. OK Java 7 TESTS 53 1699 341401600 2600
8208341 VArtem D Oct. 12, 2014, 4:30 p.m. OK Java 8 TESTS 53 639 3072000 2600
8205490 qwerty787788 D Oct. 12, 2014, 3:43 p.m. OK Java 8 TESTS 53 732 212684800 2600
8208393 mmaxio D Oct. 12, 2014, 4:31 p.m. OK Java 8 TESTS 53 873 213504000 2600
14220433 sunnywkn D Nov. 12, 2015, 11:32 p.m. OK Java 8 TESTS 53 935 321433600 2600
8197346 Petr D Oct. 12, 2014, 2:54 p.m. OK Java 8 TESTS 53 1107 471654400 2600
8395743 andrewzta D Oct. 24, 2014, 9:31 p.m. OK Java 8 TESTS 53 1278 471859200 2600
11887622 old_arysson D July 1, 2015, 8:37 p.m. OK Java 8 TESTS 53 1326 520294400 2600
11887615 Pimpom D July 1, 2015, 8:36 p.m. OK Java 8 TESTS 53 1326 520294400 2600
8395797 andrewzta D Oct. 24, 2014, 9:38 p.m. OK Java 8 TESTS 53 1341 471961600 2600
9451353 m.radwan D Jan. 17, 2015, 4:14 p.m. OK Java 8 TESTS 53 1388 308224000 2600
8206768 RomaWhite D Oct. 12, 2014, 3:54 p.m. OK MS C++ TESTS 53 436 301260800 2600
8228908 Manul D Oct. 14, 2014, 2:53 p.m. OK MS C++ TESTS 53 530 363827200 2600
22914187 sdya D Dec. 12, 2016, 9:08 p.m. OK MS C++ TESTS 53 561 243097600 2600
11382560 pacu D June 1, 2015, 6:56 p.m. OK MS C++ TESTS 53 655 501043200 2600
12288410 std11 D July 31, 2015, 7:56 a.m. OK MS C++ TESTS 53 794 390963200 2600
8236558 danilka.pro D Oct. 15, 2014, 11:51 a.m. OK MS C++ TESTS 53 795 251289600 2600
8590071 AleksanderBalobanov D Nov. 6, 2014, 12:46 p.m. OK MS C++ TESTS 53 857 403046400 2600
18442760 zhangJvv D June 14, 2016, 4:28 a.m. OK MS C++ TESTS 53 1403 530432000 2600
8752558 Toshik D Nov. 19, 2014, 6:10 a.m. OK MS C++ TESTS 53 1466 402022400 2600
8213701 yokozuna57 D Oct. 13, 2014, 2:59 a.m. OK MS C++ TESTS 53 1980 401203200 2600

remove filters

Back to search problems