Codeforces Round 662 (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
1393 Codeforces Round 662 (Div. 2) FINISHED False 7200 140369063 Aug. 7, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4035 ) D Rarity and New Dress PROGRAMMING data structures dp graphs implementation

B"Carousel Boutique is busy again! Rarity has decided to visit the pony ball and she surely needs a new dress, because going out in the same dress several times is a sign of bad manners. First of all, she needs a dress pattern, which she is going to cut out from the rectangular piece of the multicolored fabric. The piece of the multicolored fabric consists of n x m separate square scraps. Since Rarity likes dresses in style, a dress pattern must only include scraps sharing the same color. A dress pattern must be the square, and since Rarity is fond of rhombuses, the sides of a pattern must form a 45^{ circ} angle with sides of a piece of fabric (that way it will be resembling the traditional picture of a rhombus). Examples of proper dress patterns: Examples of improper dress patterns: The first one consists of multi-colored scraps, the second one goes beyond the bounds of the piece of fabric, the third one is not a square with sides forming a 45^{ circ} angle with sides of the piece of fabric. Rarity wonders how many ways to cut out a dress pattern that satisfies all the conditions that do exist. Please help her and satisfy her curiosity so she can continue working on her new masterpiece! The first line contains two integers n and m ( 1 <= n, m <= 2000 ). Each of the next n lines contains m characters: lowercase English letters, the j -th of which corresponds to scrap in the current line and in the j -th column. Scraps having the same letter share the same color, scraps having different letters have different colors. Print a single integer: the number of ways to cut out a dress pattern to satisfy all of Rarity's conditions. In the first example, all the dress patterns of size 1 and one of size 2 are satisfactory. In the second example, only the dress patterns of size 1 are satisfactory. "...

Tutorials

Codeforces Round #662 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
90247232 XVs32 D Aug. 17, 2020, 4:17 p.m. OK GNU C11 TESTS 100 62 12390400
90247104 XVs32 D Aug. 17, 2020, 4:15 p.m. OK GNU C11 TESTS 100 62 20377600
89847064 MisakaTao D Aug. 14, 2020, 6:34 a.m. OK GNU C++11 TESTS 100 62 20377600
89371635 Biadocy D Aug. 9, 2020, 3:46 a.m. OK GNU C++11 TESTS 100 62 24268800
89371617 Biadocy D Aug. 9, 2020, 3:46 a.m. OK GNU C++11 TESTS 100 62 24268800
89371084 HHHEN D Aug. 9, 2020, 3:29 a.m. OK GNU C++11 TESTS 100 62 24371200
89615425 Minun. D Aug. 12, 2020, 1:56 a.m. OK GNU C++11 TESTS 100 62 24371200
89646832 0qo_oq0 D Aug. 12, 2020, 11:37 a.m. OK GNU C++11 TESTS 100 62 24371200
89382548 zzidun D Aug. 9, 2020, 7:46 a.m. OK GNU C++11 TESTS 100 62 26214400
91099269 luogu_bot1 D Aug. 27, 2020, 3:05 a.m. OK GNU C++11 TESTS 100 62 48332800
90402441 LiuZihan D Aug. 19, 2020, 3:33 p.m. OK GNU C++11 TESTS 100 77 20070400
90421046 AwesomeHunter D Aug. 19, 2020, 9:22 p.m. OK GNU C++11 TESTS 100 77 20172800
89381104 nyan101 D Aug. 9, 2020, 7:24 a.m. OK GNU C++14 TESTS 100 77 23859200
91024738 Willem D Aug. 26, 2020, 6:42 a.m. OK GNU C++14 TESTS 100 78 20275200
90353552 972297886 D Aug. 19, 2020, 3:03 a.m. OK GNU C++14 TESTS 100 78 20275200
89373097 luogu_bot3 D Aug. 9, 2020, 4:32 a.m. OK GNU C++14 TESTS 100 78 23859200
89368024 vjudge2 D Aug. 9, 2020, 1:15 a.m. OK GNU C++14 TESTS 100 78 23961600
89558492 acccccccc D Aug. 11, 2020, 7:46 a.m. OK GNU C++14 TESTS 100 78 23961600
91118032 nitlala D Aug. 27, 2020, 8:54 a.m. OK GNU C++14 TESTS 100 78 26521600
89873578 xdsj D Aug. 14, 2020, 1:19 p.m. OK GNU C++14 TESTS 100 92 21094400
89848404 nofuck D Aug. 14, 2020, 6:55 a.m. OK GNU C++14 TESTS 100 93 20275200
90422478 preyam D Aug. 19, 2020, 10:21 p.m. OK GNU C++14 TESTS 100 93 23244800
89756045 scheng52123 D Aug. 13, 2020, 3:24 a.m. OK GNU C++17 TESTS 100 77 20275200
90042149 abbss01 D Aug. 15, 2020, 7:03 p.m. OK GNU C++17 TESTS 100 78 20275200
89461658 PSDEV D Aug. 9, 2020, 6:46 p.m. OK GNU C++17 TESTS 100 78 23859200
89372509 Momosama D Aug. 9, 2020, 4:15 a.m. OK GNU C++17 TESTS 100 78 23859200
89558740 acccccccc D Aug. 11, 2020, 7:50 a.m. OK GNU C++17 TESTS 100 78 23961600
89556747 acccccccc D Aug. 11, 2020, 7:18 a.m. OK GNU C++17 TESTS 100 78 23961600
89652997 wudixixi D Aug. 12, 2020, 1:07 p.m. OK GNU C++17 TESTS 100 78 23961600
89385231 AfLZK D Aug. 9, 2020, 8:32 a.m. OK GNU C++17 TESTS 100 78 24166400
89562523 seasalt D Aug. 11, 2020, 8:45 a.m. OK GNU C++17 TESTS 100 78 25804800
91117936 eyesofgod123 D Aug. 27, 2020, 8:52 a.m. OK GNU C++17 TESTS 100 78 26726400
90084582 syawl-1017 D Aug. 16, 2020, 1:21 p.m. OK GNU C++17 (64) TESTS 100 77 20172800
91705872 87ouo D Sept. 3, 2020, 9:54 a.m. OK GNU C++17 (64) TESTS 100 77 20172800
89387367 Response777 D Aug. 9, 2020, 9:06 a.m. OK GNU C++17 (64) TESTS 100 77 28672000
91679865 bmu D Sept. 3, 2020, 12:44 a.m. OK GNU C++17 (64) TESTS 100 78 24371200
89468067 the_hyp0cr1t3 D Aug. 9, 2020, 9:48 p.m. OK GNU C++17 (64) TESTS 100 78 28774400
89478503 Sakhiya07 D Aug. 10, 2020, 4:17 a.m. OK GNU C++17 (64) TESTS 100 92 27852800
89542922 zxcv_1 D Aug. 11, 2020, 2:20 a.m. OK GNU C++17 (64) TESTS 100 93 45875200
89354238 spike1236 D Aug. 8, 2020, 5:38 p.m. OK GNU C++17 (64) TESTS 100 108 27545600
89395543 Gremio D Aug. 9, 2020, 11:27 a.m. OK GNU C++17 (64) TESTS 100 108 46899200
89443098 Clu3l3ss D Aug. 9, 2020, 3:49 p.m. OK GNU C++17 (64) TESTS 100 109 24473600
89541343 jc881203 D Aug. 11, 2020, 1:16 a.m. OK Go TESTS 100 202 70348800
89367653 ccppjsrb D Aug. 9, 2020, 12:52 a.m. OK Go TESTS 100 826 223948800
89453903 idk321 D Aug. 9, 2020, 4:49 p.m. OK Java 11 TESTS 100 311 44851200
89482736 CCS_Covenant D Aug. 10, 2020, 5:42 a.m. OK Java 11 TESTS 100 312 65228800
89367460 Relief D Aug. 9, 2020, 12:39 a.m. OK Java 11 TESTS 100 343 60928000
91687920 dubai03nsr D Sept. 3, 2020, 5:04 a.m. OK Java 11 TESTS 100 358 19865600
89381130 ddhroov10 D Aug. 9, 2020, 7:25 a.m. OK Java 11 TESTS 100 405 109260800
89379010 adityachirania97 D Aug. 9, 2020, 6:51 a.m. OK Java 11 TESTS 100 420 106188800
89545820 nagu-pm D Aug. 11, 2020, 3:47 a.m. OK Java 11 TESTS 100 420 106188800
89359264 ddhroov10 D Aug. 8, 2020, 7:16 p.m. OK Java 11 TESTS 100 421 68198400
90412559 skittles1412 D Aug. 19, 2020, 6:02 p.m. OK Java 11 TESTS 100 436 95948800
89518623 shashiranjan96 D Aug. 10, 2020, 2:37 p.m. OK Java 11 TESTS 100 436 106188800
89365896 ss1237 D Aug. 8, 2020, 11:02 p.m. OK Java 8 TESTS 100 202 60416000
89366120 jxin31415 D Aug. 8, 2020, 11:16 p.m. OK Java 8 TESTS 100 218 58572800
89806735 yaoct D Aug. 13, 2020, 3:15 p.m. OK Java 8 TESTS 100 233 36147200
90538626 gagan_6730 D Aug. 21, 2020, 2:08 p.m. OK Java 8 TESTS 100 233 59392000
89977468 bluesky111 D Aug. 14, 2020, 11:51 p.m. OK Java 8 TESTS 100 234 35635200
90033008 kirito_ D Aug. 15, 2020, 4:08 p.m. OK Java 8 TESTS 100 296 42598400
89388717 kumarpritam863 D Aug. 9, 2020, 9:29 a.m. OK Java 8 TESTS 100 311 40960000
89470110 NatInTheHat D Aug. 9, 2020, 11:37 p.m. OK Java 8 TESTS 100 311 96256000
89405235 CalmDev D Aug. 9, 2020, 2:09 p.m. OK Java 8 TESTS 100 327 144179200
91327265 rpn2142 D Aug. 30, 2020, 7:38 a.m. OK Java 8 TESTS 100 327 144281600
89361006 Tlatoani D Aug. 8, 2020, 8 p.m. OK Kotlin TESTS 100 234 60313600
89388908 Spheniscine D Aug. 9, 2020, 9:33 a.m. OK Kotlin TESTS 100 343 57036800
89386941 Spheniscine D Aug. 9, 2020, 8:59 a.m. OK Kotlin TESTS 100 389 57036800
89386495 Spheniscine D Aug. 9, 2020, 8:52 a.m. OK Kotlin TESTS 100 404 57036800
89401231 sid9406 D Aug. 9, 2020, 1:03 p.m. OK Kotlin TESTS 100 530 251084800
89739676 koper D Aug. 12, 2020, 7:23 p.m. OK Kotlin TESTS 100 545 129228800
90020103 LeoPro D Aug. 15, 2020, 1:01 p.m. OK Kotlin TESTS 100 935 73113600
89807295 azukun D Aug. 13, 2020, 3:22 p.m. OK Mono C# TESTS 100 592 74956800
89563570 zjut201906150333zyf D Aug. 11, 2020, 9:02 a.m. OK MS C++ 2017 TESTS 100 93 40448000
89384987 AlexandrBusse D Aug. 9, 2020, 8:28 a.m. OK MS C++ 2017 TESTS 100 124 41472000
89476952 Ksenia_C D Aug. 10, 2020, 3:39 a.m. OK MS C++ 2017 TESTS 100 249 77516800
89370993 casillas123 D Aug. 9, 2020, 3:26 a.m. OK MS C++ 2017 TESTS 100 452 24166400
89405149 Ivan11 D Aug. 9, 2020, 2:08 p.m. OK MS C++ 2017 TESTS 100 639 72396800
90540759 GeKa D Aug. 21, 2020, 2:34 p.m. OK MS C++ 2017 TESTS 100 654 56320000
90998978 SyberiaEmperor D Aug. 25, 2020, 7:26 p.m. OK MS C++ 2017 TESTS 100 982 55500800
89363078 AnShostatskyi D Aug. 8, 2020, 9:01 p.m. OK Node.js TESTS 100 295 52838400
89391185 Mahipalkeizer D Aug. 9, 2020, 10:13 a.m. OK PyPy 3 TESTS 100 499 50380800
89519387 x3mka D Aug. 10, 2020, 2:47 p.m. OK PyPy 3 TESTS 100 608 45260800
89425657 YMSeah D Aug. 9, 2020, 2:54 p.m. OK PyPy 3 TESTS 100 623 45670400
89379308 tycyd D Aug. 9, 2020, 6:55 a.m. OK PyPy 3 TESTS 100 654 45465600
90842213 grandb369 D Aug. 24, 2020, 4 p.m. OK PyPy 3 TESTS 100 670 25907200
89455868 cgu_doc D Aug. 9, 2020, 5:20 p.m. OK PyPy 3 TESTS 100 670 46182400
89362521 AnShostatskyi D Aug. 8, 2020, 8:42 p.m. OK PyPy 3 TESTS 100 670 47001600
90040313 Moody_in_a_hoodie D Aug. 15, 2020, 6:22 p.m. OK PyPy 3 TESTS 100 686 25907200
90430668 amarjeet_singh D Aug. 20, 2020, 3:56 a.m. OK PyPy 3 TESTS 100 717 25907200
90842171 grandb369 D Aug. 24, 2020, 4 p.m. OK PyPy 3 TESTS 100 748 25600000
89791515 Strorkis D Aug. 13, 2020, 12:07 p.m. OK Rust TESTS 100 218 85401600

remove filters

Back to search problems