Codeforces Round 666 (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
1397 Codeforces Round 666 (Div. 2) FINISHED False 7200 133025099 Aug. 30, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 28730 ) A Juggling Letters PROGRAMMING greedy strings

B'You are given n strings s_1, s_2, ldots, s_n consisting of lowercase Latin letters. In one operation you can remove a character from a string s_i and insert it to an arbitrary position in a string s_j ( j may be equal to i ). You may perform this operation any number of times. Is it possible to make all n strings equal? The first line contains t ( 1 <= t <= 10 ): the number of test cases. The first line of each test case contains a single integer n ( 1 <= n <= 1000 ): the number of strings. n lines follow, the i -th line contains s_i ( 1 <= lvert s_i rvert <= 1000 ). The sum of lengths of all strings in all test cases does not exceed 1000 . If it is possible to make the strings equal, print "YES" (without quotes). Otherwise, print "NO" (without quotes). You can output each character in either lowercase or uppercase. In the first test case, you can do the following: In the second test case, it is impossible to make all n strings equal. '...

Tutorials

Codeforces Round #666 — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
91508593 imrankane2005 A Aug. 31, 2020, 4:17 p.m. OK Clang++17 Diagnostics TESTS 61 46 3174400
91683624 HarshitSP A Sept. 3, 2020, 3:10 a.m. OK Clang++17 Diagnostics TESTS 61 46 16793600
91485416 Gassa A Aug. 31, 2020, 11:23 a.m. OK D TESTS 61 31 4710400
91502200 Quangz A Aug. 31, 2020, 2:59 p.m. OK FPC TESTS 61 31 204800
91551891 dino_Chen A Sept. 1, 2020, 9:17 a.m. OK GNU C11 TESTS 61 31 0
91525945 JoseTomas01 A Aug. 31, 2020, 10:08 p.m. OK GNU C11 TESTS 61 31 0
91671532 vjudge5 A Sept. 2, 2020, 7:46 p.m. OK GNU C11 TESTS 61 31 0
91681172 DevDog A Sept. 3, 2020, 1:43 a.m. OK GNU C11 TESTS 61 31 0
91688380 varghese-babu A Sept. 3, 2020, 5:13 a.m. OK GNU C11 TESTS 61 31 0
91708623 f2lk6wf90d A Sept. 3, 2020, 10:36 a.m. OK GNU C11 TESTS 61 31 0
91577700 Rizwan21 A Sept. 1, 2020, 3:08 p.m. OK GNU C11 TESTS 61 31 0
91593898 MdMeraz71 A Sept. 1, 2020, 6:49 p.m. OK GNU C11 TESTS 61 31 0
91595598 Sagar_63 A Sept. 1, 2020, 7:22 p.m. OK GNU C11 TESTS 61 31 0
91644567 simonsici A Sept. 2, 2020, 1:29 p.m. OK GNU C11 TESTS 61 31 0
91478740 saurabh1496 A Aug. 31, 2020, 9:49 a.m. OK GNU C++11 TESTS 61 15 3891200
91639350 cxr_o__o_cxr A Sept. 2, 2020, 12:18 p.m. OK GNU C++11 TESTS 61 30 0
91617209 machops A Sept. 2, 2020, 6:32 a.m. OK GNU C++11 TESTS 61 30 0
91541527 ZYehia A Sept. 1, 2020, 6:38 a.m. OK GNU C++11 TESTS 61 30 0
91535114 tuwuna A Sept. 1, 2020, 4:23 a.m. OK GNU C++11 TESTS 61 30 0
91530086 wwl995 A Sept. 1, 2020, 1:30 a.m. OK GNU C++11 TESTS 61 30 0
91656777 oruas A Sept. 2, 2020, 3:57 p.m. OK GNU C++11 TESTS 61 30 0
91654375 fengxunling A Sept. 2, 2020, 3:28 p.m. OK GNU C++11 TESTS 61 30 0
91648361 luogu_bot1 A Sept. 2, 2020, 2:16 p.m. OK GNU C++11 TESTS 61 30 0
91641618 Chter A Sept. 2, 2020, 12:49 p.m. OK GNU C++11 TESTS 61 30 0
91703090 pathade02 A Sept. 3, 2020, 9:11 a.m. OK GNU C++14 TESTS 61 31 0
91707656 kartikeyU A Sept. 3, 2020, 10:21 a.m. OK GNU C++14 TESTS 61 31 0
91707809 ritikbansal_ A Sept. 3, 2020, 10:23 a.m. OK GNU C++14 TESTS 61 31 0
91709357 trancis A Sept. 3, 2020, 10:48 a.m. OK GNU C++14 TESTS 61 31 0
91710066 ACMman A Sept. 3, 2020, 10:58 a.m. OK GNU C++14 TESTS 61 31 0
91711269 Waryserpant122 A Sept. 3, 2020, 11:16 a.m. OK GNU C++14 TESTS 61 31 0
91702887 Alche_mist A Sept. 3, 2020, 9:08 a.m. OK GNU C++14 TESTS 61 31 0
91702221 rohanag0103 A Sept. 3, 2020, 8:57 a.m. OK GNU C++14 TESTS 61 31 0
91700186 fsubhani A Sept. 3, 2020, 8:25 a.m. OK GNU C++14 TESTS 61 31 0
91699261 songshichen A Sept. 3, 2020, 8:11 a.m. OK GNU C++14 TESTS 61 31 0
91708123 prowess A Sept. 3, 2020, 10:28 a.m. OK GNU C++17 TESTS 61 31 0
91710506 cheatery A Sept. 3, 2020, 11:05 a.m. OK GNU C++17 TESTS 61 31 0
91710296 cxxfj A Sept. 3, 2020, 11:02 a.m. OK GNU C++17 TESTS 61 31 0
91709851 vamshi_ A Sept. 3, 2020, 10:55 a.m. OK GNU C++17 TESTS 61 31 0
91708766 someshfengde A Sept. 3, 2020, 10:38 a.m. OK GNU C++17 TESTS 61 31 0
91708085 EZiganshin A Sept. 3, 2020, 10:27 a.m. OK GNU C++17 TESTS 61 31 0
91706457 andhaacoder A Sept. 3, 2020, 10:03 a.m. OK GNU C++17 TESTS 61 31 0
91705548 aditi. A Sept. 3, 2020, 9:49 a.m. OK GNU C++17 TESTS 61 31 0
91704627 yizhibaiwuya A Sept. 3, 2020, 9:35 a.m. OK GNU C++17 TESTS 61 31 0
91704149 quick_fuse A Sept. 3, 2020, 9:27 a.m. OK GNU C++17 TESTS 61 31 0
91514647 agarwal.kunal2305 A Aug. 31, 2020, 5:42 p.m. OK GNU C++17 (64) TESTS 61 30 0
91666541 Vladithur A Sept. 2, 2020, 6:14 p.m. OK GNU C++17 (64) TESTS 61 31 0
91670105 summerbrander A Sept. 2, 2020, 7:16 p.m. OK GNU C++17 (64) TESTS 61 31 0
91675661 Hyobot A Sept. 2, 2020, 9:38 p.m. OK GNU C++17 (64) TESTS 61 31 0
91691118 kyon2326 A Sept. 3, 2020, 6:03 a.m. OK GNU C++17 (64) TESTS 61 31 0
91691831 tannatsri A Sept. 3, 2020, 6:15 a.m. OK GNU C++17 (64) TESTS 61 31 0
91691868 Misbaul A Sept. 3, 2020, 6:16 a.m. OK GNU C++17 (64) TESTS 61 31 0
91697124 KrollikRoddzer A Sept. 3, 2020, 7:40 a.m. OK GNU C++17 (64) TESTS 61 31 0
91701008 Aman_j1 A Sept. 3, 2020, 8:38 a.m. OK GNU C++17 (64) TESTS 61 31 0
91665268 Dsuk3 A Sept. 2, 2020, 5:54 p.m. OK GNU C++17 (64) TESTS 61 31 0
91549401 qinpeng A Sept. 1, 2020, 8:38 a.m. OK Go TESTS 61 31 512000
91628399 phong_shaded A Sept. 2, 2020, 9:36 a.m. OK Go TESTS 61 46 307200
91563037 insane_28 A Sept. 1, 2020, 12:04 p.m. OK Java 11 TESTS 61 171 0
91594534 01naveenv A Sept. 1, 2020, 7:01 p.m. OK Java 11 TESTS 61 171 0
91587306 Akash_kunwar A Sept. 1, 2020, 5:07 p.m. OK Java 11 TESTS 61 171 0
91584775 karthikps1293 A Sept. 1, 2020, 4:35 p.m. OK Java 11 TESTS 61 171 0
91584258 shrinidhi99 A Sept. 1, 2020, 4:29 p.m. OK Java 11 TESTS 61 171 0
91526342 Ste A Aug. 31, 2020, 10:26 p.m. OK Java 11 TESTS 61 171 0
91513947 jayesh_patil A Aug. 31, 2020, 5:31 p.m. OK Java 11 TESTS 61 171 0
91493599 harshvijayvargiya8 A Aug. 31, 2020, 1:14 p.m. OK Java 11 TESTS 61 171 0
91555310 toxic4u A Sept. 1, 2020, 10:11 a.m. OK Java 11 TESTS 61 186 0
91636877 kiberKotleta2009 A Sept. 2, 2020, 11:44 a.m. OK Java 11 TESTS 61 186 0
91635656 __palash__ A Sept. 2, 2020, 11:28 a.m. OK Java 8 TESTS 61 109 0
91615846 shane_cm20 A Sept. 2, 2020, 6:10 a.m. OK Java 8 TESTS 61 109 0
91706336 ramez A Sept. 3, 2020, 10:01 a.m. OK Java 8 TESTS 61 109 0
91636072 thedagger A Sept. 2, 2020, 11:33 a.m. OK Java 8 TESTS 61 109 0
91579168 wwwwwwwwwwww A Sept. 1, 2020, 3:25 p.m. OK Java 8 TESTS 61 109 0
91544571 LuckBuster A Sept. 1, 2020, 7:26 a.m. OK Java 8 TESTS 61 109 0
91542429 chinmaysomani7 A Sept. 1, 2020, 6:53 a.m. OK Java 8 TESTS 61 109 0
91539134 swapnilganguly1234 A Sept. 1, 2020, 5:54 a.m. OK Java 8 TESTS 61 109 0
91513677 AnandOza A Aug. 31, 2020, 5:27 p.m. OK Java 8 TESTS 61 109 0
91494591 shubho96 A Aug. 31, 2020, 1:26 p.m. OK Java 8 TESTS 61 109 0
91533152 Spheniscine A Sept. 1, 2020, 3:25 a.m. OK Kotlin TESTS 61 109 0
91604565 surfer007 A Sept. 2, 2020, 1:03 a.m. OK Kotlin TESTS 61 109 0
91572844 koboshi A Sept. 1, 2020, 2:14 p.m. OK Kotlin TESTS 61 109 0
91615433 Ghasem A Sept. 2, 2020, 6:03 a.m. OK Kotlin TESTS 61 124 0
91690504 cybercoder.naj A Sept. 3, 2020, 5:52 a.m. OK Kotlin TESTS 61 124 0
91635592 sikr_ A Sept. 2, 2020, 11:27 a.m. OK Kotlin TESTS 61 139 0
91639368 Alexander_Karpovich A Sept. 2, 2020, 12:18 p.m. OK Kotlin TESTS 61 156 0
91580447 amit1509kumar A Sept. 1, 2020, 3:41 p.m. OK Mono C# TESTS 61 62 0
91648611 Mohabeckmmadham A Sept. 2, 2020, 2:19 p.m. OK Mono C# TESTS 61 62 0
91498242 azukun A Aug. 31, 2020, 2:10 p.m. OK Mono C# TESTS 61 77 3788800
91583463 Inmart A Sept. 1, 2020, 4:19 p.m. OK MS C++ 2017 TESTS 61 31 0
91711395 hwangganzi A Sept. 3, 2020, 11:18 a.m. OK MS C++ 2017 TESTS 61 31 0
91631172 AssAsDollar A Sept. 2, 2020, 10:20 a.m. OK MS C++ 2017 TESTS 61 31 0
91598423 f_cktorial A Sept. 1, 2020, 8:30 p.m. OK MS C++ 2017 TESTS 61 31 0
91514210 Gnihton3 A Aug. 31, 2020, 5:35 p.m. OK MS C++ 2017 TESTS 61 31 0
91499317 Rosette A Aug. 31, 2020, 2:23 p.m. OK MS C++ 2017 TESTS 61 31 0
91492131 ayarayarovich A Aug. 31, 2020, 12:56 p.m. OK MS C++ 2017 TESTS 61 31 0
91656615 tincan A Sept. 2, 2020, 3:55 p.m. OK MS C++ 2017 TESTS 61 31 307200
91670194 omerb.zeybek A Sept. 2, 2020, 7:17 p.m. OK MS C++ 2017 TESTS 61 31 307200
91672084 kartikdhanik A Sept. 2, 2020, 7:59 p.m. OK MS C++ 2017 TESTS 61 31 307200
91525840 ragrag A Aug. 31, 2020, 10:03 p.m. OK Node.js TESTS 61 77 0
91511271 mo-hit A Aug. 31, 2020, 4:52 p.m. OK PyPy 2 TESTS 61 280 9420800
91597289 m.ni A Sept. 1, 2020, 8:03 p.m. OK PyPy 3 TESTS 61 140 0
91491379 cgfs10000 A Aug. 31, 2020, 12:46 p.m. OK PyPy 3 TESTS 61 140 0
91669140 Yogesh_13 A Sept. 2, 2020, 6:58 p.m. OK PyPy 3 TESTS 61 140 1331200
91657117 vvedant99 A Sept. 2, 2020, 4:01 p.m. OK PyPy 3 TESTS 61 140 1331200
91531051 rmhasan A Sept. 1, 2020, 2:13 a.m. OK PyPy 3 TESTS 61 140 1331200
91638622 st.shivamtyagi.01 A Sept. 2, 2020, 12:08 p.m. OK PyPy 3 TESTS 61 140 1433600
91578904 OneBit74 A Sept. 1, 2020, 3:22 p.m. OK PyPy 3 TESTS 61 140 1433600
91479460 coderdivyansh A Aug. 31, 2020, 9:59 a.m. OK PyPy 3 TESTS 61 140 21606400
91691610 rajbit A Sept. 3, 2020, 6:12 a.m. OK PyPy 3 TESTS 61 155 0
91491528 cgfs10000 A Aug. 31, 2020, 12:49 p.m. OK PyPy 3 TESTS 61 155 0
91528689 Bluefish2 A Sept. 1, 2020, 12:24 a.m. OK Python 2 TESTS 61 186 102400
91497606 _kkhd A Aug. 31, 2020, 2:02 p.m. OK Python 3 TESTS 61 93 0
91635668 MSN07 A Sept. 2, 2020, 11:28 a.m. OK Python 3 TESTS 61 93 0
91535090 Raufur_7770 A Sept. 1, 2020, 4:23 a.m. OK Python 3 TESTS 61 93 0
91606500 Vishal-k A Sept. 2, 2020, 2:31 a.m. OK Python 3 TESTS 61 93 307200
91537266 Godfrey06 A Sept. 1, 2020, 5:17 a.m. OK Python 3 TESTS 61 108 0
91568435 ismeet A Sept. 1, 2020, 1:18 p.m. OK Python 3 TESTS 61 108 0
91669301 Vaani A Sept. 2, 2020, 7:01 p.m. OK Python 3 TESTS 61 108 0
91651192 Rakmom A Sept. 2, 2020, 2:49 p.m. OK Python 3 TESTS 61 108 0
91584020 petushny A Sept. 1, 2020, 4:26 p.m. OK Python 3 TESTS 61 108 0
91711077 rap_coder A Sept. 3, 2020, 11:13 a.m. OK Python 3 TESTS 61 108 307200
91498280 mkmax472 A Aug. 31, 2020, 2:11 p.m. OK Rust TESTS 61 31 0
91698648 akks800 A Sept. 3, 2020, 8:03 a.m. OK Rust TESTS 61 46 0
91574211 Strorkis A Sept. 1, 2020, 2:30 p.m. OK Rust TESTS 61 46 0
91476366 midavgigo A Aug. 31, 2020, 9:15 a.m. OK Rust TESTS 61 46 3788800

remove filters

Back to search problems