Codeforces Round 599 (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
1243 Codeforces Round 599 (Div. 2) FINISHED False 7200 164386487 Nov. 6, 2019, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14988 ) B1 Character Swap (Easy Version) PROGRAMMING strings 1100

B'This problem is different from the hard version. In this version Ujan makes exactly one exchange. You can hack this problem only if you solve both problems. After struggling and failing many times, Ujan decided to try to clean up his house again. He decided to get his strings in order first. Ujan has two distinct strings s and t of length n consisting of only of lowercase English characters. He wants to make them equal. Since Ujan is lazy, he will perform the following operation exactly once: he takes two positions i and j ( 1 <= i,j <= n , the values i and j can be equal or different), and swaps the characters s_i and t_j . Can he succeed? Note that he has to perform this operation exactly once. He has to perform this operation. The first line contains a single integer k ( 1 <= q k <= q 10 ), the number of test cases. For each of the test cases, the first line contains a single integer n ( 2 <= q n <= q 10^4 ), the length of the strings s and t . Each of the next two lines contains the strings s and t , each having length exactly n . The strings consist only of lowercase English letters. It is guaranteed that strings are different. For each test case, output "Yes" if Ujan can make the two strings equal and "No" otherwise. You can print each letter in any case (upper or lower). In the first test case, Ujan can swap characters s_1 and t_4 , obtaining the word "house". In the second test case, it is not possible to make the strings equal using exactly one swap of s_i and t_j . '...

Tutorials

Codeforces Round #599 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
69598716 vjudge3 B1 Jan. 27, 2020, 6:24 a.m. OK Clang++17 Diagnostics TESTS 14 46 0 1100
67446668 ACtrain B1 Dec. 22, 2019, 10:53 p.m. OK Clang++17 Diagnostics TESTS 14 124 9523200 1100
64420848 PAG B1 Nov. 6, 2019, 5:50 p.m. OK FPC TESTS 14 31 921600 1100
64413297 duydec1 B1 Nov. 6, 2019, 4:51 p.m. OK FPC TESTS 14 46 1433600 1100
65534514 _Tom_ B1 Nov. 22, 2019, 1:41 p.m. OK GNU C11 TESTS 14 15 0 1100
66561186 mumtahinrafi98 B1 Dec. 9, 2019, 6:58 p.m. OK GNU C11 TESTS 14 15 0 1100
64745462 Samina_Saya B1 Nov. 12, 2019, 1:23 p.m. OK GNU C11 TESTS 14 15 204800 1100
66561361 vjudge4 B1 Dec. 9, 2019, 7:03 p.m. OK GNU C11 TESTS 14 30 0 1100
65421991 sadik.o B1 Nov. 20, 2019, 9:16 a.m. OK GNU C11 TESTS 14 30 0 1100
65341672 raresmihai01 B1 Nov. 19, 2019, 11:10 a.m. OK GNU C11 TESTS 14 30 0 1100
64486200 Dream.to B1 Nov. 7, 2019, 5:53 p.m. OK GNU C11 TESTS 14 30 0 1100
66017611 von-Neumann B1 Nov. 30, 2019, 6:07 a.m. OK GNU C11 TESTS 14 31 0 1100
66435779 yigezhe B1 Dec. 7, 2019, 6:06 a.m. OK GNU C11 TESTS 14 31 0 1100
67496314 akshatdalton B1 Dec. 23, 2019, 11:13 p.m. OK GNU C11 TESTS 14 31 0 1100
64441490 langtian B1 Nov. 7, 2019, 4:35 a.m. OK GNU C++11 TESTS 14 15 0 1100
69036066 Lanly B1 Jan. 18, 2020, 9:03 a.m. OK GNU C++11 TESTS 14 15 0 1100
67020073 Trinadh724 B1 Dec. 16, 2019, 12:41 p.m. OK GNU C++11 TESTS 14 15 0 1100
64655209 Sai_0511 B1 Nov. 10, 2019, 7:02 p.m. OK GNU C++11 TESTS 14 15 0 1100
64572984 Noraxu B1 Nov. 9, 2019, 9:50 a.m. OK GNU C++11 TESTS 14 15 0 1100
64519879 luogu_bot1 B1 Nov. 8, 2019, 11:58 a.m. OK GNU C++11 TESTS 14 15 0 1100
65235854 TranKha B1 Nov. 17, 2019, 7:11 a.m. OK GNU C++11 TESTS 14 15 102400 1100
68486374 Andrey_R B1 Jan. 10, 2020, 9:54 a.m. OK GNU C++11 TESTS 14 15 102400 1100
68082795 MinumCoklatPanas B1 Jan. 2, 2020, 3:01 p.m. OK GNU C++11 TESTS 14 15 102400 1100
64703050 hugox14 B1 Nov. 11, 2019, 3:29 p.m. OK GNU C++11 TESTS 14 15 102400 1100
67282348 07_2018 B1 Dec. 20, 2019, 1:24 p.m. OK GNU C++14 TESTS 14 15 0 1100
66183317 pica4500 B1 Dec. 2, 2019, 1:35 p.m. OK GNU C++14 TESTS 14 15 0 1100
65736449 Yiwai B1 Nov. 26, 2019, 8:03 a.m. OK GNU C++14 TESTS 14 15 0 1100
65612783 PapasFritas B1 Nov. 24, 2019, 12:56 a.m. OK GNU C++14 TESTS 14 15 0 1100
64751777 nashir B1 Nov. 12, 2019, 3:29 p.m. OK GNU C++14 TESTS 14 15 0 1100
64612469 NDKhoa B1 Nov. 10, 2019, 2:38 a.m. OK GNU C++14 TESTS 14 15 0 1100
64723761 MelodySz B1 Nov. 12, 2019, 5:33 a.m. OK GNU C++14 TESTS 14 15 0 1100
64582439 yyyg B1 Nov. 9, 2019, 12:28 p.m. OK GNU C++14 TESTS 14 15 0 1100
64550928 nippletwister B1 Nov. 8, 2019, 11:12 p.m. OK GNU C++14 TESTS 14 15 0 1100
64525016 MyDaath B1 Nov. 8, 2019, 1:31 p.m. OK GNU C++14 TESTS 14 15 0 1100
65036886 kiimak B1 Nov. 15, 2019, 11:59 a.m. OK GNU C++17 TESTS 14 15 0 1100
69692245 Prem1802065p B1 Jan. 28, 2020, 7:01 p.m. OK GNU C++17 TESTS 14 15 0 1100
66299904 VioletSaber B1 Dec. 5, 2019, 6:39 a.m. OK GNU C++17 TESTS 14 15 0 1100
65692453 1670366200 B1 Nov. 25, 2019, 5:54 a.m. OK GNU C++17 TESTS 14 15 0 1100
65614619 201824115141 B1 Nov. 24, 2019, 2:33 a.m. OK GNU C++17 TESTS 14 15 0 1100
64877523 yyhaos B1 Nov. 14, 2019, 10:26 a.m. OK GNU C++17 TESTS 14 15 0 1100
64793610 scaler_ B1 Nov. 13, 2019, 12:06 p.m. OK GNU C++17 TESTS 14 15 0 1100
64686695 xunzf B1 Nov. 11, 2019, 11:57 a.m. OK GNU C++17 TESTS 14 15 0 1100
64479345 guagua123 B1 Nov. 7, 2019, 3:24 p.m. OK GNU C++17 TESTS 14 15 0 1100
64473738 Jayshao B1 Nov. 7, 2019, 1:47 p.m. OK GNU C++17 TESTS 14 15 0 1100
69008149 amarjeetanand B1 Jan. 18, 2020, 1:45 a.m. OK Go TESTS 14 31 0 1100
64432674 hasit.p.bhatt B1 Nov. 6, 2019, 10:25 p.m. OK Go TESTS 14 31 0 1100
64413445 altay13 B1 Nov. 6, 2019, 4:51 p.m. OK Go TESTS 14 31 0 1100
64682269 khochapak B1 Nov. 11, 2019, 10:31 a.m. OK Go TESTS 14 46 0 1100
66564504 XOR-star B1 Dec. 9, 2019, 8:52 p.m. OK Haskell TESTS 14 31 102400 1100
64517596 sultan17 B1 Nov. 8, 2019, 11:17 a.m. OK Haskell TESTS 14 46 102400 1100
64507521 sultan17 B1 Nov. 8, 2019, 7:31 a.m. OK Haskell TESTS 14 46 102400 1100
64507388 sultan17 B1 Nov. 8, 2019, 7:28 a.m. OK Haskell TESTS 14 46 102400 1100
66368832 machhra B1 Dec. 5, 2019, 8:47 p.m. OK Java 11 TESTS 14 155 0 1100
65704225 pmurias B1 Nov. 25, 2019, noon OK Java 11 TESTS 14 171 0 1100
65165213 Kharouba B1 Nov. 16, 2019, 1:01 p.m. OK Java 11 TESTS 14 171 0 1100
64842547 ankyy_0103 B1 Nov. 13, 2019, 4:44 p.m. OK Java 11 TESTS 14 171 0 1100
64422598 TheSawan B1 Nov. 6, 2019, 6:12 p.m. OK Java 11 TESTS 14 171 0 1100
67209697 satya_p54 B1 Dec. 19, 2019, 1:36 p.m. OK Java 11 TESTS 14 186 0 1100
64723610 TheDarkKnight03 B1 Nov. 12, 2019, 5:29 a.m. OK Java 11 TESTS 14 187 0 1100
64561863 serafimkoo B1 Nov. 9, 2019, 6:19 a.m. OK Java 11 TESTS 14 187 0 1100
64416697 TheSawan B1 Nov. 6, 2019, 5:01 p.m. OK Java 11 TESTS 14 187 0 1100
68875801 Vikrams7 B1 Jan. 15, 2020, 4:52 p.m. OK Java 11 TESTS 14 202 0 1100
64462855 In_The_Name_Of_Love B1 Nov. 7, 2019, 10:56 a.m. OK Java 8 TESTS 14 93 0 1100
68220431 vjudge1 B1 Jan. 5, 2020, 4:17 a.m. OK Java 8 TESTS 14 108 0 1100
67177643 O_E B1 Dec. 18, 2019, 8:09 p.m. OK Java 8 TESTS 14 108 0 1100
64634925 MaxHeap B1 Nov. 10, 2019, 11:19 a.m. OK Java 8 TESTS 14 108 0 1100
64630882 nandarustam B1 Nov. 10, 2019, 10:07 a.m. OK Java 8 TESTS 14 108 0 1100
64601920 LightYagami674 B1 Nov. 9, 2019, 7:13 p.m. OK Java 8 TESTS 14 108 0 1100
64567024 morr B1 Nov. 9, 2019, 8 a.m. OK Java 8 TESTS 14 108 0 1100
64459755 MubtasimShahriar B1 Nov. 7, 2019, 9:55 a.m. OK Java 8 TESTS 14 108 0 1100
64456747 di_halt B1 Nov. 7, 2019, 8:57 a.m. OK Java 8 TESTS 14 108 0 1100
69837231 maheshwari_madhav B1 Jan. 30, 2020, 12:10 p.m. OK Java 8 TESTS 14 109 0 1100
64479282 walborn B1 Nov. 7, 2019, 3:23 p.m. OK JavaScript TESTS 14 30 614400 1100
64437653 Spheniscine B1 Nov. 7, 2019, 2:23 a.m. OK Kotlin TESTS 14 140 0 1100
64463168 AsuraPro B1 Nov. 7, 2019, 11:01 a.m. OK Kotlin TESTS 14 155 0 1100
64446986 mirennn B1 Nov. 7, 2019, 6:16 a.m. OK Kotlin TESTS 14 155 0 1100
64444550 Black_Fregat B1 Nov. 7, 2019, 6 a.m. OK Kotlin TESTS 14 155 0 1100
64408304 Differum B1 Nov. 6, 2019, 4:34 p.m. OK Kotlin TESTS 14 155 0 1100
64441842 Ahmadjon B1 Nov. 7, 2019, 4:45 a.m. OK Kotlin TESTS 14 171 0 1100
64413166 Metwally92 B1 Nov. 6, 2019, 4:50 p.m. OK Mono C# TESTS 14 46 921600 1100
65040663 hloya B1 Nov. 15, 2019, 1:20 p.m. OK Mono C# TESTS 14 46 921600 1100
64588164 SpinDOS B1 Nov. 9, 2019, 1:55 p.m. OK Mono C# TESTS 14 61 921600 1100
64484792 nastya1199 B1 Nov. 7, 2019, 5:19 p.m. OK Mono C# TESTS 14 62 921600 1100
64454996 dev8546 B1 Nov. 7, 2019, 8:26 a.m. OK Mono C# TESTS 14 62 921600 1100
64561891 nastya1199 B1 Nov. 9, 2019, 6:20 a.m. OK Mono C# TESTS 14 62 921600 1100
65608938 znznznzmzn B1 Nov. 23, 2019, 11:10 p.m. OK Mono C# TESTS 14 62 921600 1100
65480622 ololonso B1 Nov. 21, 2019, 11:34 a.m. OK Mono C# TESTS 14 62 1331200 1100
64423442 ilia.kot B1 Nov. 6, 2019, 6:26 p.m. OK Mono C# TESTS 14 62 1740800 1100
64705191 hyzhangzhy B1 Nov. 11, 2019, 4:13 p.m. OK Mono C# TESTS 14 62 4608000 1100
65330807 vjudge5 B1 Nov. 19, 2019, 5:56 a.m. OK MS C++ TESTS 14 15 0 1100
64620311 vjudge3 B1 Nov. 10, 2019, 6:37 a.m. OK MS C++ TESTS 14 15 0 1100
65433831 vjudge5 B1 Nov. 20, 2019, 12:49 p.m. OK MS C++ TESTS 14 15 102400 1100
65283294 vjudge4 B1 Nov. 18, 2019, 7:05 a.m. OK MS C++ TESTS 14 15 409600 1100
64573013 vjudge5 B1 Nov. 9, 2019, 9:50 a.m. OK MS C++ TESTS 14 30 0 1100
66679198 vjudge2 B1 Dec. 12, 2019, 12:29 p.m. OK MS C++ TESTS 14 30 0 1100
65295463 vjudge3 B1 Nov. 18, 2019, 11:18 a.m. OK MS C++ TESTS 14 30 0 1100
64458919 seh631638554 B1 Nov. 7, 2019, 9:38 a.m. OK MS C++ TESTS 14 30 0 1100
64420993 vladvladvladvladvlad B1 Nov. 6, 2019, 5:52 p.m. OK MS C++ TESTS 14 30 102400 1100
64677012 yzhyzh B1 Nov. 11, 2019, 8:27 a.m. OK MS C++ TESTS 14 30 102400 1100
64437293 P___ B1 Nov. 7, 2019, 2:11 a.m. OK MS C++ 2017 TESTS 14 15 102400 1100
64469590 G_MIHAI B1 Nov. 7, 2019, 12:43 p.m. OK MS C++ 2017 TESTS 14 30 0 1100
69926750 HishamDroubi B1 Jan. 31, 2020, 8:48 p.m. OK MS C++ 2017 TESTS 14 30 0 1100
65283416 vjudge1 B1 Nov. 18, 2019, 7:08 a.m. OK MS C++ 2017 TESTS 14 30 0 1100
64738967 vjudge1 B1 Nov. 12, 2019, 11:20 a.m. OK MS C++ 2017 TESTS 14 30 0 1100
64686289 creativa B1 Nov. 11, 2019, 11:51 a.m. OK MS C++ 2017 TESTS 14 30 0 1100
64651119 YusupB B1 Nov. 10, 2019, 5:13 p.m. OK MS C++ 2017 TESTS 14 30 0 1100
64427386 fadel_assideh B1 Nov. 6, 2019, 7:42 p.m. OK MS C++ 2017 TESTS 14 30 0 1100
64563663 NoiseLess B1 Nov. 9, 2019, 6:56 a.m. OK MS C++ 2017 TESTS 14 30 102400 1100
66440746 shio B1 Dec. 7, 2019, 7:51 a.m. OK MS C++ 2017 TESTS 14 30 102400 1100
64408962 HNTT B1 Nov. 6, 2019, 4:36 p.m. OK Node.js TESTS 14 217 4300800 1100
64430372 evgeny.poloznov B1 Nov. 6, 2019, 9 p.m. OK PHP TESTS 14 31 409600 1100
67062219 parasii_alex B1 Dec. 17, 2019, 9:36 a.m. OK PHP TESTS 14 31 3788800 1100
67062205 parasii_alex B1 Dec. 17, 2019, 9:35 a.m. OK PHP TESTS 14 31 3788800 1100
64519793 mayakin B1 Nov. 8, 2019, 11:57 a.m. OK PHP TESTS 14 46 409600 1100
64455177 MAKARonin B1 Nov. 7, 2019, 8:30 a.m. OK PHP TESTS 14 46 3788800 1100
67062196 parasii_alex B1 Dec. 17, 2019, 9:35 a.m. OK PHP TESTS 14 46 4198400 1100
64451564 Madhur1906 B1 Nov. 7, 2019, 7:16 a.m. OK PyPy 2 TESTS 14 124 512000 1100
64513191 SoSooding B1 Nov. 8, 2019, 9:37 a.m. OK PyPy 2 TESTS 14 124 4608000 1100
66773844 yumtam B1 Dec. 13, 2019, 9:06 a.m. OK PyPy 2 TESTS 14 248 6758400 1100
64632109 ss7890 B1 Nov. 10, 2019, 10:29 a.m. OK PyPy 3 TESTS 14 140 2969600 1100
64423514 KrishRawat B1 Nov. 6, 2019, 6:27 p.m. OK PyPy 3 TESTS 14 140 2969600 1100
64422371 roboanna B1 Nov. 6, 2019, 6:08 p.m. OK PyPy 3 TESTS 14 155 2252800 1100
65599169 astarchik B1 Nov. 23, 2019, 5:12 p.m. OK PyPy 3 TESTS 14 155 2355200 1100
65278886 Timofey778 B1 Nov. 18, 2019, 4:04 a.m. OK PyPy 3 TESTS 14 155 2355200 1100
65285830 JorgeIba B1 Nov. 18, 2019, 8:02 a.m. OK PyPy 3 TESTS 14 155 2457600 1100
64415733 jkuomcf B1 Nov. 6, 2019, 4:58 p.m. OK PyPy 3 TESTS 14 155 2457600 1100
64464168 pranaymalhan1 B1 Nov. 7, 2019, 11:17 a.m. OK PyPy 3 TESTS 14 155 2560000 1100
64651670 edwinwijaya94 B1 Nov. 10, 2019, 5:28 p.m. OK PyPy 3 TESTS 14 155 2662400 1100
64464199 rajatgedam B1 Nov. 7, 2019, 11:17 a.m. OK PyPy 3 TESTS 14 155 2764800 1100
65591197 blueApple12 B1 Nov. 23, 2019, 2:11 p.m. OK Python 2 TESTS 14 186 307200 1100
64439029 aaa_bbb_ccc B1 Nov. 7, 2019, 3:10 a.m. OK Python 2 TESTS 14 202 307200 1100
64423595 elistark B1 Nov. 6, 2019, 6:28 p.m. OK Python 2 TESTS 14 202 614400 1100
64415560 Prestige B1 Nov. 6, 2019, 4:58 p.m. OK Python 2 TESTS 14 233 819200 1100
69523367 secretlearner.68 B1 Jan. 25, 2020, 2:06 p.m. OK Python 3 TESTS 14 109 614400 1100
68063806 nealzane B1 Jan. 2, 2020, 6:23 a.m. OK Python 3 TESTS 14 109 614400 1100
64601469 Motilda B1 Nov. 9, 2019, 7:01 p.m. OK Python 3 TESTS 14 109 614400 1100
64530060 sifat_shikdhar B1 Nov. 8, 2019, 3:07 p.m. OK Python 3 TESTS 14 109 614400 1100
64437805 KanhuKeNanu B1 Nov. 7, 2019, 2:28 a.m. OK Python 3 TESTS 14 109 614400 1100
64429391 PaNika B1 Nov. 6, 2019, 8:32 p.m. OK Python 3 TESTS 14 109 614400 1100
64419809 razerx100 B1 Nov. 6, 2019, 5:43 p.m. OK Python 3 TESTS 14 109 614400 1100
65300227 _caleb B1 Nov. 18, 2019, 12:59 p.m. OK Python 3 TESTS 14 109 716800 1100
64816752 otsosite B1 Nov. 13, 2019, 3:04 p.m. OK Python 3 TESTS 14 109 716800 1100
64699186 msmlkm B1 Nov. 11, 2019, 2:17 p.m. OK Python 3 TESTS 14 109 716800 1100
64419370 super_hook_girl_lover B1 Nov. 6, 2019, 5:41 p.m. OK Ruby TESTS 14 93 921600 1100
66224631 yuya178 B1 Dec. 3, 2019, 12:07 p.m. OK Rust TESTS 14 31 512000 1100
65400904 JakeHack B1 Nov. 19, 2019, 10:06 p.m. OK Scala TESTS 14 390 0 1100
64498011 AlexProk B1 Nov. 8, 2019, 1:53 a.m. OK Scala TESTS 14 421 0 1100
64607751 hot.potato B1 Nov. 9, 2019, 9:56 p.m. OK Scala TESTS 14 467 0 1100

remove filters

Back to search problems