Codeforces Round 460 (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
919 Codeforces Round 460 (Div. 2) FINISHED False 7200 214419299 Jan. 31, 2018, 1:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 8995 ) C Seat Arrangements PROGRAMMING brute force implementation 1300

B"Suppose that you are in a campus and have to go for classes day by day. As you may see, when you hurry to a classroom, you surprisingly find that many seats there are already occupied. Today you and your friends went for class, and found out that some of the seats were occupied. The classroom contains n rows of seats and there are m seats in each row. Then the classroom can be represented as an n x m matrix. The character '.' represents an empty seat, while '*' means that the seat is occupied. You need to find k consecutive empty seats in the same row or column and arrange those seats for you and your friends. Your task is to find the number of ways to arrange the seats. Two ways are considered different if sets of places that students occupy differs. The first line contains three positive integers n,m,k ( 1 <= q n, m, k <= q 2 ,000 ), where n,m represent the sizes of the classroom and k is the number of consecutive seats you need to find. Each of the next n lines contains m characters '.' or '*'. They form a matrix representing the classroom, '.' denotes an empty seat, and '*' denotes an occupied seat. A single number, denoting the number of ways to find k empty seats in the same row or column. In the first sample, there are three ways to arrange those seats. You can take the following seats for your arrangement. "...

Tutorials

Codeforces Round #460 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
62563291 alex.velea C Oct. 14, 2019, 12:36 p.m. OK Clang++17 Diagnostics TESTS 51 545 4300800 1300
34891943 antoshkin C Feb. 3, 2018, 10:39 a.m. OK Delphi TESTS 51 93 6553600 1300
35468647 TuM0xA C Feb. 19, 2018, 11:21 a.m. OK FPC TESTS 51 77 1945600 1300
34832192 PiMat C Feb. 2, 2018, 8:59 a.m. OK FPC TESTS 51 77 5939200 1300
34827497 Slonik C Feb. 2, 2018, 5:37 a.m. OK FPC TESTS 51 140 50790400 1300
49483924 PhuongPeu C Feb. 5, 2019, 3:12 a.m. OK FPC TESTS 51 155 33280000 1300
47515612 chaorenhaha C Dec. 26, 2018, 9:39 a.m. OK FPC TESTS 51 280 3993600 1300
63771657 zubik6 C Oct. 30, 2019, 8:12 a.m. OK FPC TESTS 51 295 4300800 1300
35002274 dambosin C Feb. 7, 2018, 2:47 p.m. OK FPC TESTS 51 296 5632000 1300
63662627 Zabiyaka C Oct. 28, 2019, 2:18 p.m. OK FPC TESTS 51 311 3993600 1300
40508577 chaorenhaha C July 18, 2018, 9:46 a.m. OK FPC TESTS 51 311 3993600 1300
35265782 yourbeach C Feb. 14, 2018, 3:14 p.m. OK FPC TESTS 51 311 5632000 1300
35162708 ashu007 C Feb. 11, 2018, 7:58 p.m. OK GNU C TESTS 51 62 5836800 1300
35132588 anirudhbansal C Feb. 10, 2018, 5:22 p.m. OK GNU C TESTS 51 62 5836800 1300
34822571 Kavyareddy_98 C Feb. 2, 2018, 12:25 a.m. OK GNU C TESTS 51 62 5836800 1300
34800854 vivekchandela2 C Feb. 1, 2018, 11:46 a.m. OK GNU C TESTS 51 62 5836800 1300
35076400 rexsong C Feb. 9, 2018, 2:48 a.m. OK GNU C TESTS 51 62 5939200 1300
35564646 diponsaha007 C Feb. 22, 2018, 4:36 a.m. OK GNU C TESTS 51 62 6041600 1300
38799486 MYNAMEISSHARIFUL C May 31, 2018, 11:21 a.m. OK GNU C TESTS 51 62 7372800 1300
37798034 NoSoul C May 1, 2018, 12:16 p.m. OK GNU C TESTS 51 62 7372800 1300
34789162 mhdx C Feb. 1, 2018, 4:48 a.m. OK GNU C TESTS 51 62 8089600 1300
34787650 liuyongliu C Feb. 1, 2018, 3:39 a.m. OK GNU C TESTS 51 77 5836800 1300
35041959 liarchcf C Feb. 8, 2018, 3:01 a.m. OK GNU C++ TESTS 51 31 1843200 1300
40098515 hoangthuc701 C July 9, 2018, 2:25 a.m. OK GNU C++ TESTS 51 46 0 1300
36263379 nhho C March 14, 2018, 1:48 a.m. OK GNU C++ TESTS 51 46 2048000 1300
35442655 senwil C Feb. 18, 2018, 10:14 a.m. OK GNU C++ TESTS 51 46 2048000 1300
34825138 jerrywcy C Feb. 2, 2018, 3:22 a.m. OK GNU C++ TESTS 51 46 2048000 1300
40692097 vjudge2 C July 24, 2018, 6:24 a.m. OK GNU C++ TESTS 51 46 3993600 1300
41685364 ShijieQ C Aug. 17, 2018, 1:44 p.m. OK GNU C++ TESTS 51 46 4096000 1300
34786620 j4357j C Feb. 1, 2018, 2:43 a.m. OK GNU C++ TESTS 51 46 5939200 1300
34851277 rl2100 C Feb. 2, 2018, 3:11 p.m. OK GNU C++ TESTS 51 46 6246400 1300
34786755 hung06061995 C Feb. 1, 2018, 2:50 a.m. OK GNU C++ TESTS 51 46 38195200 1300
60150796 XAMRMAX C Sept. 6, 2019, 3:52 a.m. OK GNU C11 TESTS 51 46 0 1300
34823274 rprtr258 C Feb. 2, 2018, 1:23 a.m. OK GNU C11 TESTS 51 46 1843200 1300
53302520 Sarica C April 25, 2019, 10:14 p.m. OK GNU C11 TESTS 51 46 4096000 1300
35148617 wizardvun C Feb. 11, 2018, 10:09 a.m. OK GNU C11 TESTS 51 62 5939200 1300
34829573 M_yuxuan2004 C Feb. 2, 2018, 7:05 a.m. OK GNU C11 TESTS 51 62 37990400 1300
66892593 Razvan2000f C Dec. 14, 2019, 9:40 p.m. OK GNU C11 TESTS 51 77 3993600 1300
41915659 Tilos C Aug. 20, 2018, 9:12 p.m. OK GNU C11 TESTS 51 77 4198400 1300
36224485 827843896 C March 12, 2018, 12:57 p.m. OK GNU C11 TESTS 51 77 6041600 1300
35197264 Solus C Feb. 13, 2018, 11:10 a.m. OK GNU C11 TESTS 51 77 6144000 1300
34834638 MTReload C Feb. 2, 2018, 10:45 a.m. OK GNU C11 TESTS 51 78 5836800 1300
34822822 rprtr258 C Feb. 2, 2018, 12:47 a.m. OK GNU C++11 TESTS 51 31 2048000 1300
34802711 zhugezy C Feb. 1, 2018, 12:45 p.m. OK GNU C++11 TESTS 51 31 2048000 1300
35089959 New-ErA C Feb. 9, 2018, 12:46 p.m. OK GNU C++11 TESTS 51 31 6246400 1300
64155823 vjudge3 C Nov. 3, 2019, 12:47 p.m. OK GNU C++11 TESTS 51 46 0 1300
40978482 ReaLNero1 C July 30, 2018, 4:39 p.m. OK GNU C++11 TESTS 51 46 0 1300
34823183 rprtr258 C Feb. 2, 2018, 1:17 a.m. OK GNU C++11 TESTS 51 46 2048000 1300
35005568 defunator21 C Feb. 7, 2018, 4:48 p.m. OK GNU C++11 TESTS 51 46 2048000 1300
34955838 harry1911 C Feb. 5, 2018, 9:27 p.m. OK GNU C++11 TESTS 51 46 2048000 1300
34823247 rprtr258 C Feb. 2, 2018, 1:21 a.m. OK GNU C++11 TESTS 51 46 2048000 1300
34823240 rprtr258 C Feb. 2, 2018, 1:21 a.m. OK GNU C++11 TESTS 51 46 2048000 1300
41328604 MetaBro C Aug. 8, 2018, 7:20 a.m. OK GNU C++14 TESTS 51 46 4403200 1300
34786461 dzc221 C Feb. 1, 2018, 2:34 a.m. OK GNU C++14 TESTS 51 46 5939200 1300
34785615 s1ij1n C Feb. 1, 2018, 1:53 a.m. OK GNU C++14 TESTS 51 46 5939200 1300
34825882 I_Love_Sleep C Feb. 2, 2018, 4:15 a.m. OK GNU C++14 TESTS 51 46 6348800 1300
34787142 MIC10086 C Feb. 1, 2018, 3:12 a.m. OK GNU C++14 TESTS 51 61 1945600 1300
46798787 sea_26 C Dec. 9, 2018, 10:01 a.m. OK GNU C++14 TESTS 51 61 3993600 1300
53219950 vjudge1 C April 24, 2019, 11:19 a.m. OK GNU C++14 TESTS 51 61 3993600 1300
34804907 cmehedi C Feb. 1, 2018, 1:55 p.m. OK GNU C++14 TESTS 51 61 5939200 1300
35611974 Zaher C Feb. 24, 2018, 12:02 a.m. OK GNU C++14 TESTS 51 61 5939200 1300
34798651 sirjan13 C Feb. 1, 2018, 10:32 a.m. OK GNU C++14 TESTS 51 61 5939200 1300
54025089 vjudge1 C May 12, 2019, 12:06 p.m. OK GNU C++17 TESTS 51 46 3993600 1300
35899824 vjudge5 C March 3, 2018, 6:56 p.m. OK GNU C++17 TESTS 51 46 5939200 1300
53471722 vjudge5 C April 28, 2019, 1:10 p.m. OK GNU C++17 TESTS 51 61 3993600 1300
68741931 HyscereXD C Jan. 14, 2020, 1:51 a.m. OK GNU C++17 TESTS 51 61 4096000 1300
45590694 FTJ C Nov. 12, 2018, 12:15 p.m. OK GNU C++17 TESTS 51 61 4300800 1300
49758412 vjudge5 C Feb. 11, 2019, 7:40 a.m. OK GNU C++17 TESTS 51 61 4300800 1300
44484974 vjudge3 C Oct. 18, 2018, 12:03 p.m. OK GNU C++17 TESTS 51 61 5939200 1300
62648090 iulianrotaru C Oct. 15, 2019, 8:19 p.m. OK GNU C++17 TESTS 51 62 3993600 1300
68692817 vjudge5 C Jan. 13, 2020, 6:52 a.m. OK GNU C++17 TESTS 51 62 3993600 1300
69667446 cjj490168650 C Jan. 28, 2020, 11:52 a.m. OK GNU C++17 TESTS 51 62 3993600 1300
35280170 danielfleischman C Feb. 15, 2018, 2:22 a.m. OK Haskell TESTS 51 733 165785600 1300
35280263 danielfleischman C Feb. 15, 2018, 2:29 a.m. OK Haskell TESTS 51 889 162611200 1300
34803107 cojna C Feb. 1, 2018, 12:58 p.m. OK Haskell TESTS 51 951 161587200 1300
67560359 AliTavassoly C Dec. 24, 2019, 5:24 p.m. OK Java 11 TESTS 51 405 0 1300
49346099 Harbin C Feb. 2, 2019, 5:37 a.m. OK Java 8 TESTS 51 155 0 1300
54462234 maheshwari29 C May 21, 2019, 7:34 p.m. OK Java 8 TESTS 51 155 4812800 1300
44176074 kunal725725 C Oct. 12, 2018, 8:56 a.m. OK Java 8 TESTS 51 171 4812800 1300
54051156 still_the_big_bang C May 12, 2019, 8:24 p.m. OK Java 8 TESTS 51 171 7475200 1300
44367953 o.radwan C Oct. 15, 2018, 5:35 p.m. OK Java 8 TESTS 51 171 7577600 1300
66587163 bluesky111 C Dec. 10, 2019, 11:38 a.m. OK Java 8 TESTS 51 186 3686400 1300
54566400 Ikari_stream C May 24, 2019, 4:41 p.m. OK Java 8 TESTS 51 186 7475200 1300
37432895 MohammadAmjad C April 18, 2018, 10:59 a.m. OK Java 8 TESTS 51 186 20787200 1300
68382463 lzhang C Jan. 8, 2020, 2:51 a.m. OK Java 8 TESTS 51 187 4198400 1300
53613777 lebaur C May 1, 2019, 2:31 p.m. OK Java 8 TESTS 51 187 4505600 1300
34801657 mayakin C Feb. 1, 2018, 12:12 p.m. OK JavaScript TESTS 51 124 16691200 1300
34801008 mayakin C Feb. 1, 2018, 11:52 a.m. OK JavaScript TESTS 51 124 16691200 1300
34800970 mayakin C Feb. 1, 2018, 11:50 a.m. OK JavaScript TESTS 51 124 16691200 1300
34798942 mayakin C Feb. 1, 2018, 10:42 a.m. OK JavaScript TESTS 51 124 16793600 1300
36356849 lunar.light C March 17, 2018, 2:33 p.m. OK JavaScript TESTS 51 139 16691200 1300
34801054 mayakin C Feb. 1, 2018, 11:53 a.m. OK JavaScript TESTS 51 139 16691200 1300
34800821 mayakin C Feb. 1, 2018, 11:45 a.m. OK JavaScript TESTS 51 997 16691200 1300
34801685 mayakin C Feb. 1, 2018, 12:13 p.m. OK JavaScript TESTS 51 998 16691200 1300
59588433 david_varela C Aug. 27, 2019, 7:05 p.m. OK Kotlin TESTS 51 451 6451200 1300
54545381 xiaowuc1 C May 24, 2019, 5:50 a.m. OK Kotlin TESTS 51 452 6348800 1300
37692389 og.kostya C April 28, 2018, 5:37 p.m. OK Mono C# TESTS 51 139 23961600 1300
44493231 nemars C Oct. 18, 2018, 3:30 p.m. OK Mono C# TESTS 51 155 13824000 1300
35194216 Xtreemist C Feb. 13, 2018, 8:47 a.m. OK Mono C# TESTS 51 155 38195200 1300
41140295 vjudge3 C Aug. 3, 2018, 2:17 a.m. OK Mono C# TESTS 51 249 45670400 1300
34792213 vvevgeny C Feb. 1, 2018, 6:43 a.m. OK MS C# TESTS 51 124 16486400 1300
34812288 magneet C Feb. 1, 2018, 5:22 p.m. OK MS C# TESTS 51 140 24576000 1300
34899873 treasuryonly C Feb. 3, 2018, 4:53 p.m. OK MS C# TESTS 51 155 23040000 1300
34960333 kryspinow C Feb. 6, 2018, 3:49 a.m. OK MS C# TESTS 51 171 25497600 1300
54026825 vjudge3 C May 12, 2019, 1:09 p.m. OK MS C++ TESTS 51 46 4096000 1300
49761057 vjudge3 C Feb. 11, 2019, 8:59 a.m. OK MS C++ TESTS 51 61 3993600 1300
54053638 vjudge3 C May 13, 2019, 6:33 a.m. OK MS C++ TESTS 51 61 4096000 1300
34787397 jsu008 C Feb. 1, 2018, 3:26 a.m. OK MS C++ TESTS 51 62 2048000 1300
34791662 SAUforWF C Feb. 1, 2018, 6:23 a.m. OK MS C++ TESTS 51 62 6041600 1300
34786099 Weihao C Feb. 1, 2018, 2:15 a.m. OK MS C++ TESTS 51 62 6041600 1300
34803274 LeCoz C Feb. 1, 2018, 1:04 p.m. OK MS C++ TESTS 51 62 6041600 1300
36060710 scorpiowf C March 8, 2018, 4:29 a.m. OK MS C++ TESTS 51 62 22528000 1300
34848763 Risa_Magpie C Feb. 2, 2018, 3:02 p.m. OK MS C++ TESTS 51 77 2252800 1300
34887557 stud_osu_1 C Feb. 3, 2018, 8:25 a.m. OK MS C++ TESTS 51 78 2048000 1300
50033717 iamgodiva C Feb. 16, 2019, 7:14 p.m. OK MS C++ 2017 TESTS 51 77 0 1300
68695830 vjudge3 C Jan. 13, 2020, 7:53 a.m. OK MS C++ 2017 TESTS 51 93 3993600 1300
59827487 Phlame C Aug. 31, 2019, 8:17 p.m. OK MS C++ 2017 TESTS 51 93 4505600 1300
63296694 Mad112233 C Oct. 24, 2019, 1:09 p.m. OK MS C++ 2017 TESTS 51 93 5939200 1300
68748890 vjudge3 C Jan. 14, 2020, 5:56 a.m. OK MS C++ 2017 TESTS 51 93 20480000 1300
68748964 vjudge2 C Jan. 14, 2020, 5:57 a.m. OK MS C++ 2017 TESTS 51 93 20684800 1300
65531352 altunyanv C Nov. 22, 2019, 12:34 p.m. OK MS C++ 2017 TESTS 51 109 46387200 1300
69686376 shio C Jan. 28, 2020, 5:08 p.m. OK MS C++ 2017 TESTS 51 124 39833600 1300
60382789 ASDXR C Sept. 11, 2019, 10:04 a.m. OK MS C++ 2017 TESTS 51 545 5120000 1300
56998438 116c C July 14, 2019, 1:33 a.m. OK MS C++ 2017 TESTS 51 623 64512000 1300
45791915 rinatisk C Nov. 16, 2018, 7:45 a.m. OK PascalABC.NET TESTS 51 280 3891200 1300
45795702 TemaKorrec C Nov. 16, 2018, 10:34 a.m. OK PascalABC.NET TESTS 51 296 16179200 1300
36525248 Garfild63 C March 23, 2018, 8:48 a.m. OK PascalABC.NET TESTS 51 296 21606400 1300
38940726 Kemal.A C June 4, 2018, 9:57 a.m. OK PascalABC.NET TESTS 51 373 21401600 1300
36418001 __Morty C March 19, 2018, 6:08 p.m. OK PHP TESTS 51 826 11776000 1300
34789329 Ashlin C Feb. 1, 2018, 4:54 a.m. OK PyPy 2 TESTS 51 187 27545600 1300
53784066 ashok123 C May 5, 2019, 9:39 a.m. OK PyPy 2 TESTS 51 218 2867200 1300
34828487 brodo C Feb. 2, 2018, 6:18 a.m. OK PyPy 2 TESTS 51 233 27852800 1300
42783442 Onesh0t C Sept. 12, 2018, 12:54 a.m. OK PyPy 2 TESTS 51 249 2867200 1300
42783431 Onesh0t C Sept. 12, 2018, 12:53 a.m. OK PyPy 2 TESTS 51 280 3481600 1300
34797654 testerAB123 C Feb. 1, 2018, 9:49 a.m. OK PyPy 2 TESTS 51 311 40652800 1300
34805580 Aditya_Ramesh C Feb. 1, 2018, 2:17 p.m. OK PyPy 2 TESTS 51 311 40652800 1300
65572997 vjudge1 C Nov. 23, 2019, 8:28 a.m. OK PyPy 2 TESTS 51 374 18944000 1300
35751071 apoorv1999 C Feb. 27, 2018, 4:21 a.m. OK PyPy 2 TESTS 51 546 106393600 1300
37354137 fromexptolog C April 15, 2018, 1:20 p.m. OK PyPy 2 TESTS 51 592 107827200 1300
49450635 vjudge5 C Feb. 4, 2019, 6:57 a.m. OK PyPy 3 TESTS 51 390 8806400 1300
49453871 vjudge1 C Feb. 4, 2019, 9:03 a.m. OK PyPy 3 TESTS 51 404 8908800 1300
49174885 Pratik_2106 C Jan. 29, 2019, 7:53 p.m. OK PyPy 3 TESTS 51 436 13107200 1300
35371506 Cyfroni C Feb. 16, 2018, 5:44 p.m. OK PyPy 3 TESTS 51 436 29081600 1300
49819443 rai7091 C Feb. 12, 2019, 8:01 a.m. OK PyPy 3 TESTS 51 452 13004800 1300
35865038 PedroBortolli C March 2, 2018, 11:58 p.m. OK PyPy 3 TESTS 51 499 32972800 1300
39703197 shubply C June 27, 2018, 1:47 p.m. OK PyPy 3 TESTS 51 514 13004800 1300
34991023 hsuppr C Feb. 7, 2018, 7:10 a.m. OK PyPy 3 TESTS 51 514 33075200 1300
34832198 fayzut C Feb. 2, 2018, 8:59 a.m. OK PyPy 3 TESTS 51 514 33075200 1300
34831944 fayzut C Feb. 2, 2018, 8:49 a.m. OK PyPy 3 TESTS 51 529 33075200 1300
34921844 franckmy C Feb. 4, 2018, 11:50 a.m. OK Python 2 TESTS 51 312 26316800 1300
34805602 nwi C Feb. 1, 2018, 2:18 p.m. OK Python 2 TESTS 51 327 26316800 1300
34994063 rondou C Feb. 7, 2018, 9:35 a.m. OK Python 2 TESTS 51 405 26214400 1300
38981656 Ali_Pi C June 6, 2018, 2:01 a.m. OK Python 2 TESTS 51 436 25702400 1300
35167450 laoliumang C Feb. 12, 2018, 3:14 a.m. OK Python 2 TESTS 51 670 30310400 1300
35542574 ydx_12 C Feb. 21, 2018, 9:13 a.m. OK Python 3 TESTS 51 405 15257600 1300
34899607 iri4i C Feb. 3, 2018, 4:46 p.m. OK Python 3 TESTS 51 405 15257600 1300
34808223 s_p C Feb. 1, 2018, 3:40 p.m. OK Python 3 TESTS 51 405 15257600 1300
35381036 Cyfroni C Feb. 17, 2018, 3:34 a.m. OK Python 3 TESTS 51 405 15462400 1300
34920566 CodeMaster C Feb. 4, 2018, 10:53 a.m. OK Python 3 TESTS 51 451 15257600 1300
34917965 CodeMaster C Feb. 4, 2018, 8:33 a.m. OK Python 3 TESTS 51 451 15257600 1300
42142266 Mk_Python_v1 C Aug. 27, 2018, 6:24 a.m. OK Python 3 TESTS 51 483 9625600 1300
40651516 orailly C July 22, 2018, 10:42 p.m. OK Python 3 TESTS 51 561 11980800 1300
55324148 Mohamed_Ayman C June 9, 2019, 6:55 a.m. OK Python 3 TESTS 51 904 12083200 1300
55378007 LintuStorm C June 9, 2019, 6:33 p.m. OK Python 3 TESTS 51 935 12083200 1300
34997417 amirrr C Feb. 7, 2018, 12:08 p.m. OK Scala TESTS 51 951 66048000 1300
34995782 amirrr C Feb. 7, 2018, 11:01 a.m. OK Scala TESTS 51 998 68096000 1300

remove filters

Back to search problems