Codeforces Beta Round 94 (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
128 Codeforces Beta Round 94 (Div. 1 Only) FINISHED False 7200 410485799 Nov. 15, 2011, 6:10 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2968 ) C Games with Rectangle PROGRAMMING combinatorics dp 2100

B"In this task Anna and Maria play the following game. Initially they have a checkered piece of paper with a painted n xe2 x80 x89 xc3 x97 xe2 x80 x89m rectangle (only the border, no filling). Anna and Maria move in turns and Anna starts. During each move one should paint inside the last-painted rectangle a new lesser rectangle (along the grid lines). The new rectangle should have no common points with the previous one. Note that when we paint a rectangle, we always paint only the border, the rectangles aren't filled. Nobody wins the game -- Anna and Maria simply play until they have done k moves in total. Count the number of different ways to play this game. The first and only line contains three integers: n, xe2 x80 x89m, xe2 x80 x89k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m, xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000). Print the single number -- the number of the ways to play the game. As this number can be very big, print the value modulo 1000000007 (109 xe2 x80 x89+ xe2 x80 x897). Two ways to play the game are considered different if the final pictures are different. In other words, if one way contains a rectangle that is not contained in the other way. In the first sample Anna, who performs her first and only move, has only one possible action plan -- insert a 1 xe2 x80 x89 xc3 x97 xe2 x80 x891 square inside the given 3 xe2 x80 x89 xc3 x97 xe2 x80 x893 square. In the second sample Anna has as much as 9 variants: 4 ways to paint a 1 xe2 x80 x89 xc3 x97 xe2 x80 x891 square, 2 ways to insert a 1 xe2 x80 x89 xc3 x97 xe2 x80 x892 rectangle vertically, 2 more ways to insert it horizontally and one more way is to insert a 2 xe2 x80 x89 xc3 x97 xe2 x80 x892 square."...

Tutorials

3219

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
865977 tourist C Nov. 15, 2011, 6:32 a.m. OK Delphi TESTS 50 50 1024000 2100
886545 Depool C Nov. 22, 2011, 9:59 p.m. OK Delphi TESTS 50 50 16998400 2100
1235889 bidzilya C Feb. 26, 2012, 6:48 a.m. OK Delphi TESTS 50 50 16998400 2100
875882 Toshik C Nov. 17, 2011, 1:14 p.m. OK Delphi TESTS 50 50 16998400 2100
873847 ruban C Nov. 16, 2011, 1:05 p.m. OK Delphi TESTS 50 60 32972800 2100
30821720 KagamiharaNadeshiko C Sept. 29, 2017, 6:41 a.m. OK FPC TESTS 50 15 16179200 2100
1469777 Alex_2oo8 C April 3, 2012, 1:34 p.m. OK FPC TESTS 50 30 9113600 2100
911298 memphis0603 C Nov. 30, 2011, 9:28 a.m. OK FPC TESTS 50 30 37273600 2100
1115102 _Vadim_ C Jan. 24, 2012, 4:20 p.m. OK FPC TESTS 50 30 65126400 2100
30821970 longtuong C Sept. 29, 2017, 6:56 a.m. OK FPC TESTS 50 31 8089600 2100
3361201 hiepsieunhan C March 20, 2013, 2:41 p.m. OK FPC TESTS 50 46 12185600 2100
873269 giongto35 C Nov. 16, 2011, 7:29 a.m. OK FPC TESTS 50 50 1024000 2100
1360793 Furko C March 16, 2012, 10:29 a.m. OK FPC TESTS 50 50 5120000 2100
867184 coolinging C Nov. 15, 2011, 6:58 a.m. OK FPC TESTS 50 50 9011200 2100
878447 giongto35 C Nov. 19, 2011, 4:19 a.m. OK FPC TESTS 50 50 9113600 2100
20428639 domslee C Sept. 7, 2016, 4:21 a.m. OK GNU C TESTS 50 31 8192000 2100
16441517 TsReaper C March 1, 2016, 1:08 p.m. OK GNU C TESTS 50 31 16384000 2100
1121167 viv001 C Jan. 27, 2012, 5:19 p.m. OK GNU C TESTS 50 50 5427200 2100
913914 ksdeol C Dec. 2, 2011, 8:15 a.m. OK GNU C TESTS 50 50 9420800 2100
866751 LayCurse C Nov. 15, 2011, 6:48 a.m. OK GNU C TESTS 50 90 36761600 2100
870262 kawatea C Nov. 15, 2011, 8:48 a.m. OK GNU C TESTS 50 1170 5427200 2100
15141701 HappyNewYearMike C Dec. 31, 2015, 9:46 p.m. OK GNU C++ TESTS 50 15 0 2100
18732874 dheeraj_1997 C June 26, 2016, 10:18 a.m. OK GNU C++ TESTS 50 15 0 2100
18728166 adkroxx C June 26, 2016, 1:50 a.m. OK GNU C++ TESTS 50 15 0 2100
10551653 Quang C April 2, 2015, 2:08 p.m. OK GNU C++ TESTS 50 15 0 2100
7412507 keyvankhademi C Aug. 10, 2014, 9:31 a.m. OK GNU C++ TESTS 50 15 0 2100
7349528 hinhva C Aug. 5, 2014, 5:43 a.m. OK GNU C++ TESTS 50 15 0 2100
7016779 alex20030190 C July 5, 2014, 3:21 p.m. OK GNU C++ TESTS 50 15 0 2100
4070208 LoveZx C July 14, 2013, 2:47 p.m. OK GNU C++ TESTS 50 15 0 2100
3880186 vjudge1 C June 13, 2013, 3:58 p.m. OK GNU C++ TESTS 50 15 0 2100
3136156 dnk C Feb. 16, 2013, 10:41 a.m. OK GNU C++ TESTS 50 15 0 2100
7287148 aurinegro C July 29, 2014, 6:02 p.m. OK GNU C++0x TESTS 50 15 204800 2100
7437154 aurinegro C Aug. 12, 2014, 7:45 p.m. OK GNU C++0x TESTS 50 30 0 2100
5475457 ponyma C Dec. 19, 2013, 1:40 p.m. OK GNU C++0x TESTS 50 30 0 2100
4237948 littlepanda C Aug. 6, 2013, 7:23 p.m. OK GNU C++0x TESTS 50 30 0 2100
873387 MinakoKojima C Nov. 16, 2011, 8:22 a.m. OK GNU C++0x TESTS 50 30 1433600 2100
867890 Archon.JK C Nov. 15, 2011, 7:15 a.m. OK GNU C++0x TESTS 50 30 5529600 2100
985499 Archon.JK C Dec. 25, 2011, 1:13 p.m. OK GNU C++0x TESTS 50 30 9420800 2100
7105934 wx2486 C July 15, 2014, 5:23 a.m. OK GNU C++0x TESTS 50 30 16076800 2100
10241894 aleksandar.ljamzin C March 11, 2015, 9:36 p.m. OK GNU C++0x TESTS 50 31 0 2100
6792902 fixme C June 4, 2014, 1:45 a.m. OK GNU C++0x TESTS 50 31 0 2100
30852481 GuluTheFish C Sept. 30, 2017, 12:49 a.m. OK GNU C++11 TESTS 50 15 0 2100
29837368 hmmmm_1 C Aug. 28, 2017, 2:18 a.m. OK GNU C++11 TESTS 50 15 0 2100
27738804 Silence95 C June 12, 2017, 1:38 p.m. OK GNU C++11 TESTS 50 15 0 2100
27703619 repeating C June 10, 2017, 9:41 a.m. OK GNU C++11 TESTS 50 15 0 2100
22226015 Amiri C Nov. 15, 2016, 4:22 p.m. OK GNU C++11 TESTS 50 15 0 2100
20475084 vsingh0075 C Sept. 9, 2016, 9:08 a.m. OK GNU C++11 TESTS 50 15 0 2100
19180814 bill_kondo C July 16, 2016, 11:05 p.m. OK GNU C++11 TESTS 50 15 0 2100
16068557 Reimu_ C Feb. 17, 2016, 9:43 a.m. OK GNU C++11 TESTS 50 15 0 2100
15898028 namai C Feb. 8, 2016, 3:26 p.m. OK GNU C++11 TESTS 50 15 0 2100
15585631 _Luna C Jan. 26, 2016, 3:47 a.m. OK GNU C++11 TESTS 50 15 0 2100
41236033 Eden_CY C Aug. 5, 2018, 7:18 a.m. OK GNU C++14 TESTS 50 15 0 2100
39011753 shisui24 C June 7, 2018, 7:37 a.m. OK GNU C++14 TESTS 50 15 0 2100
30953544 okaems C Oct. 2, 2017, 9:12 p.m. OK GNU C++14 TESTS 50 15 0 2100
30808526 WhatWhyHow C Sept. 28, 2017, 2:59 p.m. OK GNU C++14 TESTS 50 15 0 2100
30779484 keshav C Sept. 27, 2017, 2:18 p.m. OK GNU C++14 TESTS 50 15 0 2100
29974118 danya.smelskiy C Sept. 1, 2017, 12:48 p.m. OK GNU C++14 TESTS 50 15 0 2100
29855501 Ahmed_Abdellah C Aug. 28, 2017, 11:10 p.m. OK GNU C++14 TESTS 50 15 0 2100
27787972 already_last C June 15, 2017, 6:59 a.m. OK GNU C++14 TESTS 50 15 0 2100
27548908 Momentaiii C June 3, 2017, 4:39 p.m. OK GNU C++14 TESTS 50 15 0 2100
26885538 Livace C May 5, 2017, 4:55 p.m. OK GNU C++14 TESTS 50 15 0 2100
47541070 roll_no_1 C Dec. 27, 2018, 7:03 a.m. OK GNU C++17 TESTS 50 30 0 2100
64145407 rainbowbunny C Nov. 3, 2019, 9:42 a.m. OK GNU C++17 TESTS 50 30 0 2100
54857407 lmiskiew C May 30, 2019, 8:40 p.m. OK GNU C++17 TESTS 50 30 0 2100
47537806 proofbycontradiction C Dec. 27, 2018, 4:09 a.m. OK GNU C++17 TESTS 50 30 0 2100
54472473 doped.silicon C May 22, 2019, 6:23 a.m. OK GNU C++17 TESTS 50 30 204800 2100
63909990 Boaba C Oct. 31, 2019, 7:55 a.m. OK GNU C++17 TESTS 50 30 204800 2100
45222524 Bassel C Nov. 2, 2018, 10:53 p.m. OK GNU C++17 TESTS 50 30 307200 2100
37290832 LiChenKoh C April 13, 2018, 4:12 p.m. OK GNU C++17 TESTS 50 30 7372800 2100
59267202 vjudge5 C Aug. 22, 2019, 11:17 a.m. OK GNU C++17 TESTS 50 30 32358400 2100
66029958 som C Nov. 30, 2019, 9:50 a.m. OK GNU C++17 TESTS 50 31 0 2100
38655160 vjudge5 C May 27, 2018, 12:23 p.m. OK GNU C++17 Diagnostics TESTS 50 1263 11878400 2100
866787 bjin C Nov. 15, 2011, 6:49 a.m. OK Haskell TESTS 50 140 11571200 2100
3696747 pavel.rosputko C May 9, 2013, 3:58 p.m. OK Haskell TESTS 50 390 30617600 2100
65895955 its_aks_ulure C Nov. 28, 2019, 6:10 a.m. OK Java 11 TESTS 50 249 40038400 2100
871683 Omar.Darwish C Nov. 15, 2011, 1:15 p.m. OK Java 6 TESTS 50 110 43110400 2100
867059 tomek C Nov. 15, 2011, 6:55 a.m. OK Java 6 TESTS 50 110 43110400 2100
2032798 uwi C Aug. 18, 2012, 6:26 p.m. OK Java 6 TESTS 50 110 43212800 2100
1159633 mostafa_fahim C Feb. 9, 2012, 1 p.m. OK Java 6 TESTS 50 110 57753600 2100
2858778 Mostafa.Ali C Dec. 30, 2012, 5:07 p.m. OK Java 6 TESTS 50 124 0 2100
3497379 santjuan C April 9, 2013, 5:02 p.m. OK Java 6 TESTS 50 125 102400 2100
876000 mmaxio C Nov. 17, 2011, 2:40 p.m. OK Java 6 TESTS 50 130 35225600 2100
873210 AlexanderBolshakov C Nov. 16, 2011, 6:49 a.m. OK Java 6 TESTS 50 130 35225600 2100
1016169 Di735 C Jan. 7, 2012, 12:34 p.m. OK Java 6 TESTS 50 130 43008000 2100
1686824 Galkowsky C May 13, 2012, 6:37 p.m. OK Java 6 TESTS 50 130 43212800 2100
12030943 131121 C July 13, 2015, 3:30 p.m. OK Java 7 TESTS 50 78 0 2100
7348568 maged918 C Aug. 5, 2014, 1:40 a.m. OK Java 7 TESTS 50 93 14233600 2100
2272991 trunghieu11 C Oct. 1, 2012, 12:18 p.m. OK Java 7 TESTS 50 109 0 2100
7496020 SurenNihalani C Aug. 17, 2014, 10:06 p.m. OK Java 7 TESTS 50 109 14233600 2100
7287633 miguelmaurizio C July 29, 2014, 7:26 p.m. OK Java 7 TESTS 50 124 14028800 2100
4326769 DoublePointer C Aug. 22, 2013, 10:05 p.m. OK Java 7 TESTS 50 218 13721600 2100
48320463 spar5h C Jan. 13, 2019, 8:59 a.m. OK Java 8 TESTS 50 109 0 2100
39044545 Hoda_Hisham C June 8, 2018, 11:36 a.m. OK Java 8 TESTS 50 124 0 2100
61176762 ISSAM_LAKOUAM C Sept. 23, 2019, 6:36 p.m. OK Java 8 TESTS 50 124 0 2100
46571036 ankurdua15 C Dec. 4, 2018, 5:46 a.m. OK Java 8 TESTS 50 124 0 2100
39280297 amnesiac_dusk C June 16, 2018, 6:19 a.m. OK Java 8 TESTS 50 124 0 2100
31833371 admiral_1995 C Oct. 28, 2017, 11:08 a.m. OK Java 8 TESTS 50 124 4608000 2100
31920816 Imaginary C Oct. 31, 2017, 12:25 p.m. OK Java 8 TESTS 50 124 17100800 2100
38975026 mariem_kandil C June 5, 2018, 5:14 p.m. OK Java 8 TESTS 50 124 20377600 2100
26637058 Kammola C April 24, 2017, 9:42 a.m. OK Java 8 TESTS 50 124 20582400 2100
9284311 AStepanov C Dec. 27, 2014, 1:09 p.m. OK Java 8 TESTS 50 140 0 2100
1257098 NickSerg C March 2, 2012, 1:28 p.m. OK Mono C# TESTS 50 130 22118400 2100
38630218 coyorkdow C May 26, 2018, 9:45 a.m. OK MS C++ TESTS 50 15 0 2100
19905222 IPRIT C Aug. 16, 2016, 10:47 a.m. OK MS C++ TESTS 50 15 2048000 2100
19907574 IPRIT C Aug. 16, 2016, 12:56 p.m. OK MS C++ TESTS 50 15 2355200 2100
33006418 AynaS C Dec. 7, 2017, 4:56 p.m. OK MS C++ TESTS 50 15 6144000 2100
15154885 filthycasual C Jan. 2, 2016, 4:03 a.m. OK MS C++ TESTS 50 15 8089600 2100
38630231 vjudge1 C May 26, 2018, 9:46 a.m. OK MS C++ TESTS 50 30 0 2100
883691 xsc C Nov. 15, 2011, 6:55 a.m. OK MS C++ TESTS 50 30 1433600 2100
995564 Sigmar C Jan. 3, 2012, 8:56 a.m. OK MS C++ TESTS 50 30 1433600 2100
872583 permin C Nov. 15, 2011, 9:30 p.m. OK MS C++ TESTS 50 30 1433600 2100
872265 Aliaksei C Nov. 15, 2011, 6:23 p.m. OK MS C++ TESTS 50 30 1433600 2100
34454388 Macdu C Jan. 22, 2018, 4:24 p.m. OK Ocaml TESTS 50 15 3891200 2100
971347 Hadi_Asiaie C Dec. 22, 2011, 7:37 a.m. OK Python 2 TESTS 50 60 2867200 2100
2387864 nealzane C Oct. 19, 2012, 3:17 p.m. OK Python 2 TESTS 50 62 0 2100
9823538 vjudge4 C Feb. 14, 2015, 6:49 a.m. OK Python 2 TESTS 50 62 102400 2100
3880260 vjudge1 C June 13, 2013, 4:22 p.m. OK Python 2 TESTS 50 62 102400 2100
3852218 apoorvj C June 9, 2013, 10:52 p.m. OK Python 2 TESTS 50 62 204800 2100
35838192 ______n______ C March 2, 2018, 1:28 p.m. OK Python 2 TESTS 50 62 4710400 2100
35838187 ______u______ C March 2, 2018, 1:28 p.m. OK Python 2 TESTS 50 62 4710400 2100
35838117 _____i_____ C March 2, 2018, 1:27 p.m. OK Python 2 TESTS 50 62 4710400 2100
35838097 _____k_____ C March 2, 2018, 1:27 p.m. OK Python 2 TESTS 50 62 4710400 2100
35831634 ______h______ C March 2, 2018, 9:52 a.m. OK Python 2 TESTS 50 62 4710400 2100
32157201 yugle7 C Nov. 9, 2017, 12:13 p.m. OK Python 3 TESTS 50 77 0 2100
40594278 sggutier C July 21, 2018, 3:47 a.m. OK Python 3 TESTS 50 1309 21401600 2100
42134459 Mk_Python_v1 C Aug. 26, 2018, 9:50 p.m. OK Python 3 TESTS 50 1404 21401600 2100

remove filters

Back to search problems