Codeforces Round 530 (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
1099 Codeforces Round 530 (Div. 2) FINISHED False 9000 190473863 Jan. 5, 2019, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9753 ) C Postcard PROGRAMMING constructive algorithms implementation 1300

B'Andrey received a postcard from Irina. It contained only the words "Hello, Andrey!", and a strange string consisting of lowercase Latin letters, snowflakes and candy canes. Andrey thought that this string is an encrypted message, and decided to decrypt it. Andrey noticed that snowflakes and candy canes always stand after the letters, so he supposed that the message was encrypted as follows. Candy cane means that the letter before it can be removed, or can be left. A snowflake means that the letter before it can be removed, left, or repeated several times. For example, consider the following string: This string can encode the message xc2 xabhappynewyear xc2 xbb. For this, candy canes and snowflakes should be used as follows: Please note that the same string can encode different messages. For example, the string above can encode xc2 xabhayewyar xc2 xbb, xc2 xabhapppppynewwwwwyear xc2 xbb, and other messages. Andrey knows that messages from Irina usually have a length of k letters. Help him to find out if a given string can encode a message of k letters, and if so, give an example of such a message. The first line contains the string received in the postcard. The string consists only of lowercase Latin letters, as well as the characters xc2 xab* xc2 xbb and xc2 xab? xc2 xbb, meaning snowflake and candy cone, respectively. These characters can only appear immediately after the letter. The length of the string does not exceed 200 . The second line contains an integer number k ( 1 <= q k <= q 200 ), the required message length. Print any message of length k that the given string can encode, or xc2 xabImpossible xc2 xbb if such a message does not exist. '...

Tutorials

E

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
55289673 quheyayaya C June 8, 2019, 7:02 a.m. OK Clang++17 Diagnostics TESTS 79 46 0 1300
63125232 sash0 C Oct. 22, 2019, 12:37 p.m. OK D TESTS 79 31 0 1300
48072255 minhlong9514 C Jan. 8, 2019, 1:44 a.m. OK FPC TESTS 79 31 102400 1300
58862414 luogu_bot1 C Aug. 15, 2019, 12:08 p.m. OK FPC TESTS 79 31 102400 1300
47999278 _Time_Lord_ C Jan. 5, 2019, 5:56 p.m. OK FPC TESTS 79 31 102400 1300
48025526 NewbieMisis C Jan. 6, 2019, 8:50 a.m. OK FPC TESTS 79 31 102400 1300
48183142 yassou C Jan. 10, 2019, 1:37 p.m. OK FPC TESTS 79 31 204800 1300
49306985 PhuongPeu C Feb. 1, 2019, 6:11 a.m. OK FPC TESTS 79 31 204800 1300
58862694 luogu_bot5 C Aug. 15, 2019, 12:14 p.m. OK FPC TESTS 79 31 204800 1300
48920737 Meibisu C Jan. 25, 2019, 7:43 a.m. OK FPC TESTS 79 31 204800 1300
48307229 binarmo C Jan. 12, 2019, 8:46 p.m. OK FPC TESTS 79 31 204800 1300
49206919 DarkAvengerr C Jan. 30, 2019, 2:11 p.m. OK FPC TESTS 79 31 204800 1300
48465272 lcxz8686tl C Jan. 16, 2019, 4:55 p.m. OK GNU C11 TESTS 79 31 0 1300
48486539 fz_szq C Jan. 17, 2019, 8:39 a.m. OK GNU C11 TESTS 79 31 0 1300
49235079 balasiva C Jan. 31, 2019, 7:34 a.m. OK GNU C11 TESTS 79 31 0 1300
51092820 powerkeke C March 9, 2019, 3:01 p.m. OK GNU C11 TESTS 79 31 0 1300
51618148 NoSoul C March 21, 2019, 1:15 p.m. OK GNU C11 TESTS 79 31 0 1300
53219196 MYNAMEISSHARIFUL C April 24, 2019, 10:53 a.m. OK GNU C11 TESTS 79 31 0 1300
56385847 ash123456 C July 1, 2019, 10:30 a.m. OK GNU C11 TESTS 79 31 0 1300
56385863 ash070397 C July 1, 2019, 10:30 a.m. OK GNU C11 TESTS 79 31 0 1300
63403771 ranjit C Oct. 25, 2019, 7:23 p.m. OK GNU C11 TESTS 79 31 0 1300
48451420 rishiraje C Jan. 16, 2019, 10:40 a.m. OK GNU C11 TESTS 79 31 0 1300
54521654 vjudge2 C May 23, 2019, 12:32 p.m. OK GNU C++11 TESTS 79 30 0 1300
65530670 vjudge2 C Nov. 22, 2019, 12:19 p.m. OK GNU C++11 TESTS 79 31 0 1300
66259483 vjudge5 C Dec. 4, 2019, 7:43 a.m. OK GNU C++11 TESTS 79 31 0 1300
66520938 aggarwalsalil C Dec. 8, 2019, 10:26 p.m. OK GNU C++11 TESTS 79 31 0 1300
66823669 sanchit_div2 C Dec. 14, 2019, 8:14 a.m. OK GNU C++11 TESTS 79 31 0 1300
68421417 ajeet C Jan. 8, 2020, 10:34 p.m. OK GNU C++11 TESTS 79 31 0 1300
69448718 DevC C Jan. 24, 2020, 4:58 a.m. OK GNU C++11 TESTS 79 31 0 1300
69834011 Ravan_2070 C Jan. 30, 2020, 11:19 a.m. OK GNU C++11 TESTS 79 31 0 1300
69903218 you_dont_know_me C Jan. 31, 2020, 1:32 p.m. OK GNU C++11 TESTS 79 31 0 1300
65399730 we_can_2 C Nov. 19, 2019, 9:05 p.m. OK GNU C++11 TESTS 79 31 0 1300
60055184 TheStrange C Sept. 5, 2019, 3:35 a.m. OK GNU C++14 TESTS 79 15 0 1300
55604311 aruroxx31 C June 15, 2019, 8:54 p.m. OK GNU C++14 TESTS 79 30 0 1300
67325104 capeta160 C Dec. 21, 2019, 9:29 a.m. OK GNU C++14 TESTS 79 30 0 1300
58958593 im_possible7588 C Aug. 17, 2019, 2:08 p.m. OK GNU C++14 TESTS 79 30 0 1300
58824063 Amireza C Aug. 14, 2019, 3:06 p.m. OK GNU C++14 TESTS 79 30 0 1300
58533282 shaz7 C Aug. 10, 2019, 10:38 a.m. OK GNU C++14 TESTS 79 30 0 1300
56046679 prada C June 25, 2019, 4:56 p.m. OK GNU C++14 TESTS 79 30 0 1300
52939150 moidda C April 18, 2019, 8:16 a.m. OK GNU C++14 TESTS 79 30 0 1300
51449826 DeGea1 C March 18, 2019, 2:11 p.m. OK GNU C++14 TESTS 79 30 0 1300
50750666 devShah8796 C March 3, 2019, 4:27 p.m. OK GNU C++14 TESTS 79 30 0 1300
54252819 cjc C May 16, 2019, 6:12 p.m. OK GNU C++17 TESTS 79 15 0 1300
56847073 tddong2323 C July 11, 2019, 2:02 p.m. OK GNU C++17 TESTS 79 15 0 1300
48043797 DomiKo C Jan. 6, 2019, 10:49 p.m. OK GNU C++17 TESTS 79 15 204800 1300
52478919 2qbingxuan C April 8, 2019, 3:08 a.m. OK GNU C++17 TESTS 79 30 0 1300
57638349 MohamedKhaled C July 24, 2019, 11:42 a.m. OK GNU C++17 TESTS 79 30 0 1300
62372020 niagrawa C Oct. 11, 2019, 4:02 p.m. OK GNU C++17 TESTS 79 30 0 1300
68409768 YouKnowWho_IAm C Jan. 8, 2020, 4:32 p.m. OK GNU C++17 TESTS 79 30 0 1300
53821346 Xiuchen C May 6, 2019, 1:20 p.m. OK GNU C++17 TESTS 79 30 0 1300
53857315 vietnakid C May 7, 2019, 5:07 p.m. OK GNU C++17 TESTS 79 30 0 1300
57321950 Denko C July 19, 2019, 10:26 a.m. OK GNU C++17 TESTS 79 30 0 1300
48072383 2008061626 C Jan. 8, 2019, 1:59 a.m. OK Go TESTS 79 31 0 1300
47994666 GoGoBoy C Jan. 5, 2019, 5:35 p.m. OK Go TESTS 79 46 0 1300
68056742 marwlod C Jan. 1, 2020, 11:39 p.m. OK Java 11 TESTS 79 218 0 1300
48930014 tsumit023 C Jan. 25, 2019, 12:10 p.m. OK Java 8 TESTS 79 109 0 1300
58832624 TIGER16 C Aug. 14, 2019, 6:42 p.m. OK Java 8 TESTS 79 109 0 1300
58247239 garnacha C Aug. 4, 2019, 6:04 a.m. OK Java 8 TESTS 79 109 0 1300
57868836 Shetewi C July 27, 2019, 11:41 p.m. OK Java 8 TESTS 79 109 0 1300
48604164 chetna_13 C Jan. 20, 2019, 9:54 a.m. OK Java 8 TESTS 79 109 0 1300
48603346 vivekiitian C Jan. 20, 2019, 9:27 a.m. OK Java 8 TESTS 79 109 0 1300
48407410 Z_E_R_0 C Jan. 15, 2019, 5:12 a.m. OK Java 8 TESTS 79 109 0 1300
48265854 sooraj10 C Jan. 11, 2019, 8:07 p.m. OK Java 8 TESTS 79 109 0 1300
48116712 Naman_123 C Jan. 9, 2019, 1:15 p.m. OK Java 8 TESTS 79 109 0 1300
48112152 Mantawy C Jan. 9, 2019, 10:14 a.m. OK Java 8 TESTS 79 109 0 1300
62048023 david_varela C Oct. 7, 2019, 8:34 a.m. OK Kotlin TESTS 79 140 0 1300
48434067 odinsonThorin C Jan. 15, 2019, 7:08 p.m. OK Kotlin TESTS 79 155 0 1300
48016826 List_412 C Jan. 6, 2019, 12:07 a.m. OK Kotlin TESTS 79 155 0 1300
48000205 SergeevM C Jan. 5, 2019, 6 p.m. OK Kotlin TESTS 79 155 0 1300
48014564 spookywooky C Jan. 5, 2019, 9:22 p.m. OK Kotlin TESTS 79 187 1331200 1300
48265001 treasuryonly C Jan. 11, 2019, 7:34 p.m. OK Mono C# TESTS 79 46 0 1300
49318227 TRR C Feb. 1, 2019, 11:01 a.m. OK Mono C# TESTS 79 46 0 1300
48018247 mochiii C Jan. 6, 2019, 2:26 a.m. OK Mono C# TESTS 79 61 0 1300
48008705 apostol.vlz C Jan. 5, 2019, 6:50 p.m. OK Mono C# TESTS 79 62 0 1300
47997168 Jarazorg C Jan. 5, 2019, 5:46 p.m. OK Mono C# TESTS 79 62 0 1300
48013505 kmiloc89 C Jan. 5, 2019, 8:43 p.m. OK Mono C# TESTS 79 62 102400 1300
47997718 T-D-K C Jan. 5, 2019, 5:48 p.m. OK Mono C# TESTS 79 62 102400 1300
48001358 StudyApps C Jan. 5, 2019, 6:06 p.m. OK Mono C# TESTS 79 62 3584000 1300
51160565 nemars C March 11, 2019, 12:13 p.m. OK Mono C# TESTS 79 62 3584000 1300
48008150 Manchi_6701 C Jan. 5, 2019, 6:46 p.m. OK Mono C# TESTS 79 77 3584000 1300
57348967 vjudge3 C July 20, 2019, 2:08 a.m. OK MS C++ TESTS 79 31 0 1300
57349487 vjudge5 C July 20, 2019, 2:29 a.m. OK MS C++ TESTS 79 31 0 1300
56968896 vjudge1 C July 13, 2019, 9:24 a.m. OK MS C++ TESTS 79 31 0 1300
57775173 vjudge5 C July 26, 2019, 3:06 a.m. OK MS C++ TESTS 79 31 0 1300
65341378 vjudge3 C Nov. 19, 2019, 11:04 a.m. OK MS C++ TESTS 79 31 0 1300
65345031 vjudge4 C Nov. 19, 2019, 12:18 p.m. OK MS C++ TESTS 79 31 0 1300
65346375 vjudge2 C Nov. 19, 2019, 12:44 p.m. OK MS C++ TESTS 79 31 0 1300
65346427 vjudge2 C Nov. 19, 2019, 12:45 p.m. OK MS C++ TESTS 79 31 0 1300
65350811 vjudge4 C Nov. 19, 2019, 2:18 p.m. OK MS C++ TESTS 79 31 0 1300
57364132 vjudge4 C July 20, 2019, 8:40 a.m. OK MS C++ TESTS 79 31 0 1300
49542042 Kira_5005 C Feb. 6, 2019, 7:03 p.m. OK MS C++ 2017 TESTS 79 31 0 1300
52023448 cyh1213 C March 30, 2019, 1:46 p.m. OK MS C++ 2017 TESTS 79 31 0 1300
53351434 Foxy663 C April 26, 2019, 3:48 p.m. OK MS C++ 2017 TESTS 79 31 0 1300
57775150 shoulinniao C July 26, 2019, 3:06 a.m. OK MS C++ 2017 TESTS 79 31 0 1300
59947500 Mad112233 C Sept. 3, 2019, 1:27 p.m. OK MS C++ 2017 TESTS 79 46 0 1300
59408980 manav272 C Aug. 24, 2019, 3:01 p.m. OK MS C++ 2017 TESTS 79 46 102400 1300
48007023 aeloud C Jan. 5, 2019, 6:39 p.m. OK Node.js TESTS 79 171 409600 1300
48382985 sk0 C Jan. 14, 2019, 11:28 a.m. OK Ocaml TESTS 79 30 0 1300
48013610 ky4eronline C Jan. 5, 2019, 8:46 p.m. OK PascalABC.NET TESTS 79 296 102400 1300
48012700 katalama C Jan. 5, 2019, 8:24 p.m. OK PHP TESTS 79 46 512000 1300
48007178 mayakin C Jan. 5, 2019, 6:40 p.m. OK PHP TESTS 79 46 512000 1300
48013153 anshuman16423 C Jan. 5, 2019, 8:33 p.m. OK PyPy 2 TESTS 79 124 0 1300
47994600 Onesh0t C Jan. 5, 2019, 5:35 p.m. OK PyPy 2 TESTS 79 124 0 1300
48779226 thenewguy39 C Jan. 23, 2019, 6:03 a.m. OK PyPy 2 TESTS 79 124 102400 1300
48103757 IndianSnakeCharmer C Jan. 9, 2019, 1:25 a.m. OK PyPy 2 TESTS 79 124 102400 1300
48013110 c1729 C Jan. 5, 2019, 8:32 p.m. OK PyPy 2 TESTS 79 124 102400 1300
62209007 raj1307 C Oct. 9, 2019, 1:57 p.m. OK PyPy 2 TESTS 79 139 307200 1300
47997456 ilkerkosaroglu C Jan. 5, 2019, 5:47 p.m. OK PyPy 2 TESTS 79 140 0 1300
47993753 wangkan2001 C Jan. 5, 2019, 5:31 p.m. OK PyPy 2 TESTS 79 140 0 1300
47994043 figdan C Jan. 5, 2019, 5:32 p.m. OK PyPy 2 TESTS 79 155 0 1300
47996351 slitvinov C Jan. 5, 2019, 5:42 p.m. OK PyPy 2 TESTS 79 155 1228800 1300
48023867 lmm333 C Jan. 6, 2019, 7:45 a.m. OK PyPy 3 TESTS 79 124 0 1300
51260903 morriship C March 13, 2019, 1:16 p.m. OK PyPy 3 TESTS 79 124 0 1300
56886410 _nobody_ C July 12, 2019, 12:47 p.m. OK PyPy 3 TESTS 79 139 0 1300
49116700 ToT_CaMblu C Jan. 28, 2019, 5:17 p.m. OK PyPy 3 TESTS 79 139 0 1300
48012952 LordVader C Jan. 5, 2019, 8:28 p.m. OK PyPy 3 TESTS 79 139 0 1300
68215415 nealzane C Jan. 4, 2020, 10:35 p.m. OK PyPy 3 TESTS 79 140 0 1300
64796967 essi C Nov. 13, 2019, 1:14 p.m. OK PyPy 3 TESTS 79 140 0 1300
61208699 CubeCakes C Sept. 24, 2019, 10:44 a.m. OK PyPy 3 TESTS 79 140 0 1300
60695936 deadguy C Sept. 16, 2019, 7:35 p.m. OK PyPy 3 TESTS 79 140 0 1300
60499374 kchau C Sept. 13, 2019, 5:54 p.m. OK PyPy 3 TESTS 79 140 0 1300
50163241 Luxo C Feb. 19, 2019, 1:31 p.m. OK Python 2 TESTS 79 186 0 1300
48023030 SoSooding C Jan. 6, 2019, 7:09 a.m. OK Python 2 TESTS 79 187 0 1300
48022276 SoSooding C Jan. 6, 2019, 6:38 a.m. OK Python 2 TESTS 79 187 0 1300
48009077 noob_coder_v2 C Jan. 5, 2019, 6:52 p.m. OK Python 2 TESTS 79 187 0 1300
48001127 markovDPro C Jan. 5, 2019, 6:05 p.m. OK Python 2 TESTS 79 187 0 1300
47998656 scambret C Jan. 5, 2019, 5:53 p.m. OK Python 2 TESTS 79 187 0 1300
47996261 sainitejeshwar C Jan. 5, 2019, 5:42 p.m. OK Python 2 TESTS 79 187 0 1300
47995387 ssk497 C Jan. 5, 2019, 5:38 p.m. OK Python 2 TESTS 79 187 0 1300
47994553 Aparichit_Vyavasthapak C Jan. 5, 2019, 5:35 p.m. OK Python 2 TESTS 79 187 0 1300
48042020 fortmax120 C Jan. 6, 2019, 8:23 p.m. OK Python 2 TESTS 79 187 102400 1300
48297798 alexxela12345 C Jan. 12, 2019, 3:23 p.m. OK Python 3 TESTS 79 108 0 1300
48576541 usmon C Jan. 19, 2019, 2:21 p.m. OK Python 3 TESTS 79 108 307200 1300
51410906 yltx C March 17, 2019, 12:01 p.m. OK Python 3 TESTS 79 109 0 1300
49599329 pixc C Feb. 7, 2019, 4:39 p.m. OK Python 3 TESTS 79 109 0 1300
49175845 amarjeet_singh C Jan. 29, 2019, 8:28 p.m. OK Python 3 TESTS 79 109 0 1300
49053435 shvetsovamd C Jan. 27, 2019, 12:11 p.m. OK Python 3 TESTS 79 109 0 1300
48952670 sy_chen C Jan. 26, 2019, 1:35 a.m. OK Python 3 TESTS 79 109 0 1300
48595530 Mr.Don C Jan. 20, 2019, 6:01 a.m. OK Python 3 TESTS 79 109 0 1300
48325881 wangzpeng C Jan. 13, 2019, 11:48 a.m. OK Python 3 TESTS 79 109 0 1300
48264155 matyas C Jan. 11, 2019, 7:07 p.m. OK Python 3 TESTS 79 109 0 1300
47999263 Jumnast C Jan. 5, 2019, 5:56 p.m. OK Ruby TESTS 79 62 0 1300
48197777 old_boo C Jan. 11, 2019, 1:21 a.m. OK Rust TESTS 79 31 0 1300
47992390 Dx18 C Jan. 5, 2019, 5:26 p.m. OK Rust TESTS 79 31 0 1300
48006648 wh317706 C Jan. 5, 2019, 6:36 p.m. OK Rust TESTS 79 46 0 1300
48008899 gazaan C Jan. 5, 2019, 6:51 p.m. OK Scala TESTS 79 436 0 1300
47995216 nafeezabrar C Jan. 5, 2019, 5:37 p.m. OK Scala TESTS 79 451 0 1300

remove filters

Back to search problems