Codeforces Beta Round 89 (Div. 2)

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
118 Codeforces Beta Round 89 (Div. 2) FINISHED False 7200 413823599 Oct. 7, 2011, 3 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 17575 ) D Caesar's Legions PROGRAMMING dp 1800

B"Gaius Julius Caesar, a famous general, loved to line up his soldiers. Overall the army had n1 footmen and n2 horsemen. Caesar thought that an arrangement is not beautiful if somewhere in the line there are strictly more that k1 footmen standing successively one after another, or there are strictly more than k2 horsemen standing successively one after another. Find the number of beautiful arrangements of the soldiers. Note that all n1 xe2 x80 x89+ xe2 x80 x89n2 warriors should be present at each arrangement. All footmen are considered indistinguishable among themselves. Similarly, all horsemen are considered indistinguishable among themselves. The only line contains four space-separated integers n1, n2, k1, k2 (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n1, xe2 x80 x89n2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k1, xe2 x80 x89k2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8910) which represent how many footmen and horsemen there are and the largest acceptable number of footmen and horsemen standing in succession, correspondingly. Print the number of beautiful arrangements of the army modulo 100000000 (108). That is, print the number of such ways to line up the soldiers, that no more than k1 footmen stand successively, and no more than k2 horsemen stand successively. Let's mark a footman as 1, and a horseman as 2. In the first sample the only beautiful line-up is: 121 In the second sample 5 beautiful line-ups exist: 12122, 12212, 21212, 21221, 22121"...

Tutorials

Разбор задач. Codeforces beta round #89.

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
59399262 luogu_bot5 D Aug. 24, 2019, 11:30 a.m. OK FPC TESTS 38 62 44851200 1800
59110876 rainboy D Aug. 19, 2019, 8:38 p.m. OK GNU C11 TESTS 38 62 102400 1800
65506810 blackmanxD D Nov. 21, 2019, 11:36 p.m. OK GNU C11 TESTS 38 62 4915200 1800
48302991 vjudge1 D Jan. 12, 2019, 6 p.m. OK GNU C11 TESTS 38 62 10137600 1800
48302509 Opcode D Jan. 12, 2019, 5:44 p.m. OK GNU C11 TESTS 38 62 10137600 1800
66166249 cdza D Dec. 2, 2019, 7:46 a.m. OK GNU C11 TESTS 38 92 9932800 1800
65418271 siva2000 D Nov. 20, 2019, 7:53 a.m. OK GNU C11 TESTS 38 92 9932800 1800
63211761 powerkeke D Oct. 23, 2019, 4:17 a.m. OK GNU C++11 TESTS 38 60 102400 1800
69218029 love_saber D Jan. 21, 2020, 2:35 a.m. OK GNU C++11 TESTS 38 60 102400 1800
49334764 fishy15 D Feb. 1, 2019, 5:54 p.m. OK GNU C++11 TESTS 38 60 204800 1800
53600350 TanPhat D May 1, 2019, 7:18 a.m. OK GNU C++11 TESTS 38 60 2048000 1800
51888984 lisihan D March 27, 2019, 8:06 a.m. OK GNU C++11 TESTS 38 60 3891200 1800
55497244 vjudge4 D June 12, 2019, 1:12 p.m. OK GNU C++11 TESTS 38 60 10649600 1800
59552064 ModestCoder D Aug. 27, 2019, 3:47 a.m. OK GNU C++11 TESTS 38 60 19456000 1800
56541133 vjudge2 D July 5, 2019, 5:17 a.m. OK GNU C++11 TESTS 38 60 20377600 1800
56965071 luogu_bot4 D July 13, 2019, 8:04 a.m. OK GNU C++11 TESTS 38 62 0 1800
56964865 vjudge5 D July 13, 2019, 7:59 a.m. OK GNU C++11 TESTS 38 62 0 1800
57640419 awaracoder D July 24, 2019, 12:25 p.m. OK GNU C++14 TESTS 38 30 102400 1800
52270126 Theofratus D April 3, 2019, 12:52 p.m. OK GNU C++14 TESTS 38 30 102400 1800
58856519 MasterTr D Aug. 15, 2019, 9:32 a.m. OK GNU C++14 TESTS 38 30 102400 1800
65106273 pinkleshake D Nov. 15, 2019, 7:26 p.m. OK GNU C++14 TESTS 38 30 102400 1800
67389947 bovvlet D Dec. 21, 2019, 7:17 p.m. OK GNU C++14 TESTS 38 30 102400 1800
59352444 rishika.19 D Aug. 23, 2019, 12:18 p.m. OK GNU C++14 TESTS 38 30 204800 1800
59397684 plv_singh D Aug. 24, 2019, 10:57 a.m. OK GNU C++14 TESTS 38 30 204800 1800
52473844 sjovanovic D April 7, 2019, 8:35 p.m. OK GNU C++14 TESTS 38 30 204800 1800
49941897 vipghn2003 D Feb. 15, 2019, 10:06 a.m. OK GNU C++14 TESTS 38 30 204800 1800
54437202 Noob_Noob_ D May 21, 2019, 6:31 a.m. OK GNU C++14 TESTS 38 30 204800 1800
57257549 lu0408 D July 18, 2019, 3:07 a.m. OK GNU C++17 TESTS 38 30 102400 1800
57842646 priyesh16 D July 27, 2019, 9:52 a.m. OK GNU C++17 TESTS 38 30 102400 1800
57285081 sundesh D July 18, 2019, 2:17 p.m. OK GNU C++17 TESTS 38 30 102400 1800
52891738 zifeiy D April 17, 2019, 8:13 a.m. OK GNU C++17 TESTS 38 30 102400 1800
64680479 CodenameGHOST D Nov. 11, 2019, 9:45 a.m. OK GNU C++17 TESTS 38 30 204800 1800
55270668 andiso D June 7, 2019, 4:15 p.m. OK GNU C++17 TESTS 38 30 204800 1800
55537463 Ajinkya7 D June 13, 2019, 5:17 p.m. OK GNU C++17 TESTS 38 30 204800 1800
57445268 hp1999 D July 21, 2019, 8:02 a.m. OK GNU C++17 TESTS 38 30 204800 1800
61564688 mrsac7 D Sept. 30, 2019, 4:43 p.m. OK GNU C++17 TESTS 38 30 204800 1800
63267714 vjudge5 D Oct. 24, 2019, 1:37 a.m. OK GNU C++17 TESTS 38 30 307200 1800
68143715 sighduck D Jan. 4, 2020, 2:15 a.m. OK Go TESTS 38 62 0 1800
61319563 synapse D Sept. 26, 2019, 12:09 p.m. OK Go TESTS 38 436 14336000 1800
61319374 synapse D Sept. 26, 2019, 12:06 p.m. OK Go TESTS 38 466 9728000 1800
61319649 synapse D Sept. 26, 2019, 12:10 p.m. OK Go TESTS 38 528 14233600 1800
61318894 synapse D Sept. 26, 2019, 11:58 a.m. OK Go TESTS 38 590 45260800 1800
67431408 kashishsingh8700 D Dec. 22, 2019, 3:21 p.m. OK Java 11 TESTS 38 342 0 1800
65024483 mac D Nov. 15, 2019, 6:58 a.m. OK Java 11 TESTS 38 404 0 1800
68466427 sunnycarlos D Jan. 9, 2020, 8:41 p.m. OK Java 11 TESTS 38 404 5939200 1800
68466387 sunnycarlos D Jan. 9, 2020, 8:40 p.m. OK Java 11 TESTS 38 404 5939200 1800
52956949 kostasanemozalis D April 18, 2019, 2:04 p.m. OK Java 8 TESTS 38 216 0 1800
55538835 vjudge1 D June 13, 2019, 6:14 p.m. OK Java 8 TESTS 38 218 0 1800
66015746 madfrost D Nov. 30, 2019, 5:19 a.m. OK Java 8 TESTS 38 218 0 1800
61558448 armking D Sept. 30, 2019, 2:46 p.m. OK Java 8 TESTS 38 218 0 1800
56504347 Ad-007 D July 4, 2019, 7:47 a.m. OK Java 8 TESTS 38 218 0 1800
54352333 mennafadali D May 18, 2019, 3:35 p.m. OK Java 8 TESTS 38 218 0 1800
51329782 vaibhavpulastya D March 15, 2019, 11:40 a.m. OK Java 8 TESTS 38 218 0 1800
50380570 hongquanntct D Feb. 23, 2019, 11:56 a.m. OK Java 8 TESTS 38 218 0 1800
49138996 Mr.Awesome D Jan. 29, 2019, 9:12 a.m. OK Java 8 TESTS 38 218 0 1800
49115780 Mr.Awesome D Jan. 28, 2019, 4:53 p.m. OK Java 8 TESTS 38 218 0 1800
49101422 nemars D Jan. 28, 2019, 11:31 a.m. OK Mono C# TESTS 38 156 13414400 1800
55648906 vjudge1 D June 16, 2019, 1:34 p.m. OK MS C++ TESTS 38 60 5939200 1800
70000551 vjudge5 D Feb. 2, 2020, 1:16 a.m. OK MS C++ TESTS 38 62 102400 1800
63279861 vjudge5 D Oct. 24, 2019, 8:19 a.m. OK MS C++ TESTS 38 62 102400 1800
63279732 vjudge4 D Oct. 24, 2019, 8:16 a.m. OK MS C++ TESTS 38 62 102400 1800
57643276 vjudge4 D July 24, 2019, 1:20 p.m. OK MS C++ TESTS 38 62 102400 1800
56538595 vjudge2 D July 5, 2019, 3:11 a.m. OK MS C++ TESTS 38 62 102400 1800
56298054 vjudge2 D June 30, 2019, 7:14 a.m. OK MS C++ TESTS 38 62 102400 1800
56139660 vjudge3 D June 27, 2019, 2:21 a.m. OK MS C++ TESTS 38 62 102400 1800
69913629 vjudge1 D Jan. 31, 2020, 4:07 p.m. OK MS C++ TESTS 38 62 102400 1800
56020128 vjudge2 D June 25, 2019, 2:24 a.m. OK MS C++ TESTS 38 62 1024000 1800
68968012 vjudge2 D Jan. 17, 2020, 5:54 a.m. OK MS C++ 2017 TESTS 38 62 102400 1800
60732870 Najmus_Sakib_Rashid D Sept. 17, 2019, 4:21 p.m. OK MS C++ 2017 TESTS 38 62 204800 1800
55235991 codeshaker D June 7, 2019, 8:29 a.m. OK MS C++ 2017 TESTS 38 62 307200 1800
63213117 vjudge4 D Oct. 23, 2019, 4:55 a.m. OK MS C++ 2017 TESTS 38 62 2764800 1800
59945431 CtrlAlt D Sept. 3, 2019, 12:51 p.m. OK MS C++ 2017 TESTS 38 62 4096000 1800
54646259 emmanuelv02 D May 26, 2019, 12:58 a.m. OK MS C++ 2017 TESTS 38 62 7475200 1800
63212400 vjudge5 D Oct. 23, 2019, 4:36 a.m. OK MS C++ 2017 TESTS 38 62 9830400 1800
65391738 michaellin250 D Nov. 19, 2019, 5:45 p.m. OK MS C++ 2017 TESTS 38 62 9932800 1800
68239108 CygneNoir D Jan. 5, 2020, 12:08 p.m. OK MS C++ 2017 TESTS 38 62 13004800 1800
66742513 pikachan14 D Dec. 12, 2019, 9:48 p.m. OK MS C++ 2017 TESTS 38 92 409600 1800
53969325 kbagoli1999 D May 10, 2019, 7:40 p.m. OK PyPy 2 TESTS 38 278 1536000 1800
53967951 kbagoli1999 D May 10, 2019, 6:40 p.m. OK PyPy 2 TESTS 38 498 11366400 1800
62628180 iamprayush D Oct. 15, 2019, 2:39 p.m. OK PyPy 2 TESTS 38 592 15462400 1800
49521894 noob77777 D Feb. 6, 2019, 8:35 a.m. OK PyPy 2 TESTS 38 1870 30515200 1800
55549642 Aidos D June 14, 2019, 6:11 a.m. OK PyPy 3 TESTS 38 310 2560000 1800
51355230 homoeconomicus D March 16, 2019, 3:30 a.m. OK PyPy 3 TESTS 38 340 2560000 1800
67129809 algdgn D Dec. 17, 2019, 10:36 p.m. OK PyPy 3 TESTS 38 374 4608000 1800
67573306 chayapatlbs D Dec. 24, 2019, 10:45 p.m. OK PyPy 3 TESTS 38 404 5939200 1800
57578908 fahad17049 D July 23, 2019, 8:09 a.m. OK PyPy 3 TESTS 38 498 12595200 1800
67563893 chayapatlbs D Dec. 24, 2019, 6:29 p.m. OK PyPy 3 TESTS 38 498 17715200 1800
68557220 shivensinha4 D Jan. 10, 2020, 5:59 p.m. OK PyPy 3 TESTS 38 684 27750400 1800
59321591 sjoshi13 D Aug. 22, 2019, 6:33 p.m. OK PyPy 3 TESTS 38 684 37068800 1800
56017904 sorry_im_smurfing D June 24, 2019, 11:16 p.m. OK PyPy 3 TESTS 38 748 27443200 1800
56071026 anshuman16423 D June 26, 2019, 10:27 a.m. OK Python 2 TESTS 38 466 1228800 1800
58925621 abhirock753 D Aug. 16, 2019, 7:20 p.m. OK Python 2 TESTS 38 934 14028800 1800
59562500 adivannik D Aug. 27, 2019, 9:12 a.m. OK Python 3 TESTS 38 248 1024000 1800
53964657 quochai.kstn D May 10, 2019, 4:10 p.m. OK Python 3 TESTS 38 654 21811200 1800
68557312 shivensinha4 D Jan. 10, 2020, 6 p.m. OK Python 3 TESTS 38 686 14131200 1800
60710342 Firepaw D Sept. 17, 2019, 7:57 a.m. OK Python 3 TESTS 38 686 15872000 1800
61704653 amigunova D Oct. 2, 2019, 9:38 a.m. OK Python 3 TESTS 38 840 15667200 1800
65169334 Iris_A D Nov. 16, 2019, 2:29 p.m. OK Python 3 TESTS 38 840 16896000 1800
64476694 tuna_salad D Nov. 7, 2019, 2:36 p.m. OK Rust TESTS 38 62 1024000 1800
48268178 vladoriginal D Jan. 11, 2019, 10:10 p.m. OK Scala TESTS 38 1372 10137600 1800

remove filters

Back to search problems