Codeforces Round 243 (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
425 Codeforces Round 243 (Div. 1) FINISHED False 7200 333210599 April 27, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 904 ) C Sereja and Two Sequences PROGRAMMING data structures dp 2400

B"Sereja has two sequences a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an and b1, xe2 x80 x89b2, xe2 x80 x89..., xe2 x80 x89bm, consisting of integers. One day Sereja got bored and he decided two play with them. The rules of the game was very simple. Sereja makes several moves, in one move he can perform one of the following actions: The first action is worth e energy units and adds one dollar to Sereja's electronic account. The second action is worth the number of energy units equal to the number of elements Sereja removed from the sequences before performing this action. After Sereja performed the second action, he gets all the money that he earned on his electronic account during the game. Initially Sereja has s energy units and no money on his account. What maximum number of money can Sereja get? Note, the amount of Seraja's energy mustn't be negative at any time moment. The first line contains integers n, m, s, e (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105; 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89s xe2 x80 x89 xe2 x89 xa4 xe2 x80 x893 xc2 xb7105; 103 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89e xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89104). The second line contains n integers a1, a2, ..., an (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). The third line contains m integers b1, b2, ..., bm (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89bi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). Print a single integer -- maximum number of money in dollars that Sereja can get."...

Tutorials

Codeforces Round #243 tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
7361984 hos.lyric C Aug. 6, 2014, 3:34 p.m. OK D TESTS 53 3337 17510400 2400
11244940 louisja1 C May 24, 2015, 1:59 a.m. OK FPC TESTS 53 1232 131481600 2400
11244931 vjudge5 C May 24, 2015, 1:58 a.m. OK FPC TESTS 53 1262 131481600 2400
6492127 SanSiroWaltz C April 27, 2014, 4:53 p.m. OK FPC TESTS 53 3587 122675200 2400
6494144 PattS C April 27, 2014, 5:28 p.m. OK GNU C++ TESTS 53 62 4198400 2400
6610856 BSBandme C May 13, 2014, 3:50 p.m. OK GNU C++ TESTS 53 124 4198400 2400
40988723 ReaLNero1 C July 30, 2018, 10:17 p.m. OK GNU C++ TESTS 53 140 3993600 2400
7611112 xforceco C Aug. 28, 2014, 6:36 a.m. OK GNU C++ TESTS 53 155 3788800 2400
7611086 xforceco C Aug. 28, 2014, 6:32 a.m. OK GNU C++ TESTS 53 171 3788800 2400
6547448 vacuumer C May 5, 2014, 4:15 a.m. OK GNU C++ TESTS 53 186 125644800 2400
6499503 pkwv C April 28, 2014, 11:33 a.m. OK GNU C++ TESTS 53 202 124416000 2400
6498550 suiyuan2009 C April 28, 2014, 8:28 a.m. OK GNU C++ TESTS 53 202 125644800 2400
6650726 Al.Cash C May 18, 2014, 1:04 p.m. OK GNU C++ TESTS 53 218 3788800 2400
6565488 kws4679 C May 7, 2014, 6:49 a.m. OK GNU C++ TESTS 53 249 126054400 2400
6579619 Isomorphism C May 9, 2014, 8:12 p.m. OK GNU C++0x TESTS 53 156 2457600 2400
6498853 yermak0v C April 28, 2014, 9:27 a.m. OK GNU C++0x TESTS 53 171 123084800 2400
6508623 danielfleischman C April 30, 2014, 4:02 a.m. OK GNU C++0x TESTS 53 202 6860800 2400
6508048 danielfleischman C April 30, 2014, 12:04 a.m. OK GNU C++0x TESTS 53 218 6860800 2400
6495301 ijkijkijkikjikjkij C April 27, 2014, 6:34 p.m. OK GNU C++0x TESTS 53 265 2457600 2400
6493483 niquefa_diego C April 27, 2014, 5:17 p.m. OK GNU C++0x TESTS 53 296 4198400 2400
6492058 yosupo C April 27, 2014, 4:52 p.m. OK GNU C++0x TESTS 53 327 1638400 2400
6490395 ikatanic C April 27, 2014, 4:23 p.m. OK GNU C++0x TESTS 53 327 246681600 2400
6492505 Shik C April 27, 2014, 5 p.m. OK GNU C++0x TESTS 53 421 3788800 2400
6490722 dasko1 C April 27, 2014, 4:28 p.m. OK GNU C++0x TESTS 53 467 125235200 2400
61383446 rainboy C Sept. 27, 2019, 6:13 p.m. OK GNU C11 TESTS 53 187 2048000 2400
61375387 rainboy C Sept. 27, 2019, 4:07 p.m. OK GNU C11 TESTS 53 1387 3788800 2400
15140969 vjudge2 C Dec. 31, 2015, 8:13 p.m. OK GNU C++11 TESTS 53 233 127078400 2400
69177506 cor001 C Jan. 20, 2020, 8:40 a.m. OK GNU C++11 TESTS 53 358 3993600 2400
19006104 MaGaroo C July 10, 2016, 10:53 a.m. OK GNU C++11 TESTS 53 405 124211200 2400
57890512 lopare C July 28, 2019, 11:40 a.m. OK GNU C++11 TESTS 53 545 3584000 2400
57819585 py_ultron C July 26, 2019, 9:59 p.m. OK GNU C++11 TESTS 53 561 3584000 2400
34620316 jklepec C Jan. 28, 2018, 12:47 a.m. OK GNU C++11 TESTS 53 592 129024000 2400
11120172 Kaban-5 C May 16, 2015, 7:13 p.m. OK GNU C++11 TESTS 53 608 124006400 2400
69179505 cor001 C Jan. 20, 2020, 9:29 a.m. OK GNU C++11 TESTS 53 623 3584000 2400
32087066 pr3pony C Nov. 6, 2017, 4:01 a.m. OK GNU C++11 TESTS 53 623 3993600 2400
13499823 glassices C Oct. 8, 2015, 7:19 p.m. OK GNU C++11 TESTS 53 639 2048000 2400
52498551 nibabin C April 8, 2019, 2:53 p.m. OK GNU C++14 TESTS 53 217 2252800 2400
31685640 boook C Oct. 24, 2017, 2:44 p.m. OK GNU C++14 TESTS 53 280 131072000 2400
24902141 wrinx C Feb. 22, 2017, 8:54 p.m. OK GNU C++14 TESTS 53 312 132710400 2400
22812150 Farhod_Farmon C Dec. 8, 2016, 2:12 p.m. OK GNU C++14 TESTS 53 373 138035200 2400
27360505 LiChenKoh C May 26, 2017, 4:58 p.m. OK GNU C++14 TESTS 53 639 4198400 2400
23468043 Ali.Pi C Dec. 31, 2016, 11:11 a.m. OK GNU C++14 TESTS 53 654 126771200 2400
23994126 Noureldin C Jan. 20, 2017, 4:57 p.m. OK GNU C++14 TESTS 53 670 166195200 2400
26904344 rick_c137 C May 6, 2017, 3:12 p.m. OK GNU C++14 TESTS 53 717 250265600 2400
31625467 Hoang_Cong C Oct. 23, 2017, 10:37 a.m. OK GNU C++14 TESTS 53 717 434380800 2400
22270367 namai C Nov. 16, 2016, 2:44 p.m. OK GNU C++14 TESTS 53 733 3788800 2400
53682222 Atreus C May 2, 2019, 8:09 p.m. OK GNU C++17 TESTS 53 187 2048000 2400
57753209 89264270823 C July 25, 2019, 3:25 p.m. OK GNU C++17 TESTS 53 639 407756800 2400
40301676 err0r C July 14, 2018, 2:36 a.m. OK GNU C++17 TESTS 53 733 128000000 2400
59646324 shaoliming C Aug. 29, 2019, 5:59 a.m. OK GNU C++17 TESTS 53 794 128000000 2400
40007010 err0r C July 5, 2018, 7:19 p.m. OK GNU C++17 TESTS 53 810 128000000 2400
55494919 hongzhiyin C June 12, 2019, 12:03 p.m. OK GNU C++17 TESTS 53 811 4198400 2400
67315868 BessieTheCow C Dec. 21, 2019, 5:58 a.m. OK GNU C++17 TESTS 53 826 5324800 2400
58072054 Luo_Tianyi C July 31, 2019, 11:03 a.m. OK GNU C++17 TESTS 53 841 3788800 2400
59390410 RaFiN_ C Aug. 24, 2019, 8:16 a.m. OK GNU C++17 TESTS 53 842 145203200 2400
61897664 Umi C Oct. 5, 2019, 7:42 a.m. OK GNU C++17 TESTS 53 873 3788800 2400
6492525 Petr C April 27, 2014, 5 p.m. OK Java 7 TESTS 53 1014 251699200 2400
6496725 ftiasch C April 28, 2014, 1:11 a.m. OK Java 7 TESTS 53 1092 102400 2400
6493427 mmaxio C April 27, 2014, 5:16 p.m. OK Java 7 TESTS 53 1310 307200 2400
10373565 vjudge3 C March 21, 2015, 4:13 a.m. OK Java 7 TESTS 53 1341 0 2400
6492836 VArtem C April 27, 2014, 5:05 p.m. OK Java 7 TESTS 53 1497 0 2400
6489580 tanzaku C April 27, 2014, 4:10 p.m. OK Java 7 TESTS 53 1637 0 2400
6493263 Egor C April 27, 2014, 5:14 p.m. OK Java 7 TESTS 53 1668 0 2400
6498170 net12k44 C April 28, 2014, 7:12 a.m. OK Java 7 TESTS 53 1809 285491200 2400
6502659 av_life C April 28, 2014, 10:08 p.m. OK Java 7 TESTS 53 1840 14540800 2400
6488486 uwi C April 27, 2014, 3:57 p.m. OK Java 7 TESTS 53 1949 138956800 2400
61383293 Dukkha C Sept. 27, 2019, 6:11 p.m. OK Java 8 TESTS 53 405 0 2400
24101686 overnite.runner C Jan. 24, 2017, 11:34 p.m. OK Java 8 TESTS 53 1887 35123200 2400
45474999 Jeel_Vaishnav C Nov. 9, 2018, 12:01 p.m. OK Java 8 TESTS 53 2059 234700800 2400
59603477 xiaolin2 C Aug. 28, 2019, 7:35 a.m. OK Java 8 TESTS 53 2308 236748800 2400
14218865 Sumeet.Varma C Nov. 12, 2015, 7:35 p.m. OK Java 8 TESTS 53 2308 295116800 2400
14218850 Sumeet.Varma C Nov. 12, 2015, 7:33 p.m. OK Java 8 TESTS 53 2340 295116800 2400
24101605 overnite.runner C Jan. 24, 2017, 11:23 p.m. OK Java 8 TESTS 53 2417 257331200 2400
6533743 IgorKoval C May 2, 2014, 8:48 p.m. OK Java 8 TESTS 53 2527 2764800 2400
7602050 AlexFetisov C Aug. 27, 2014, 5:52 a.m. OK Java 8 TESTS 53 3728 220569600 2400
6505638 HamsterWool C April 29, 2014, 1 p.m. OK Mono C# TESTS 53 639 24268800 2400
6505700 HamsterWool C April 29, 2014, 1:08 p.m. OK Mono C# TESTS 53 3151 24371200 2400
6505626 HamsterWool C April 29, 2014, 12:58 p.m. OK MS C# TESTS 53 639 24268800 2400
6491433 RAVEman C April 27, 2014, 4:41 p.m. OK MS C++ TESTS 53 249 257843200 2400
6492590 Milanin C April 27, 2014, 5:01 p.m. OK MS C++ TESTS 53 265 128000000 2400
6492787 witua C April 27, 2014, 5:05 p.m. OK MS C++ TESTS 53 280 127078400 2400
6493641 AleX C April 27, 2014, 5:20 p.m. OK MS C++ TESTS 53 358 134041600 2400
6493293 LayCurse C April 27, 2014, 5:14 p.m. OK MS C++ TESTS 53 841 5120000 2400
11270535 pacu C May 25, 2015, 9:06 p.m. OK MS C++ TESTS 53 873 121446400 2400
11271407 Amr_Hassan C May 25, 2015, 10:46 p.m. OK MS C++ TESTS 53 889 128512000 2400
6654332 ballon C May 19, 2014, 5:29 a.m. OK MS C++ TESTS 53 904 5734400 2400
6506292 beginner1010 C April 29, 2014, 2:23 p.m. OK MS C++ TESTS 53 920 4915200 2400
6516985 Frivolous C May 1, 2014, 2:28 p.m. OK MS C++ TESTS 53 920 9113600 2400
59608316 laonaodan_dlut C Aug. 28, 2019, 9:48 a.m. OK MS C++ 2017 TESTS 53 982 125952000 2400
59607705 laonaodan_dlut C Aug. 28, 2019, 9:35 a.m. OK MS C++ 2017 TESTS 53 1013 126566400 2400

remove filters

Back to search problems