Codeforces Round 898 (Div. 4)

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
1873 Codeforces Round 898 (Div. 4) FINISHED False 9000 41873063 Sept. 21, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 57416 ) A Short Sort PROGRAMMING brute force implementation

B'There are three cards with letters texttt{a} , texttt{b} , texttt{c} placed in a row in some order. You can do the following operation at most once: The first line contains a single integer t ( 1 <= q t <= q 6 ) -- the number of test cases. The only line of each test case contains a single string consisting of each of the three characters texttt{a} , texttt{b} , and texttt{c} exactly once, representing the cards. For each test case, output "YES" if you can make the row texttt{abc} with at most one operation, or "NO" otherwise. You can output the answer in any case (for example, the strings "yEs", "yes", "Yes" and "YES" will be recognized as a positive answer). In the first test case, we don 't need to do any operations, since the row is already texttt{abc} . In the second test case, we can swap texttt{c} and texttt{b} : texttt{acb} to texttt{abc} . In the third test case, we can swap texttt{b} and texttt{a} : texttt{bac} to texttt{abc} . In the fourth test case, it is impossible to make texttt{abc} using at most one operation. '...

Tutorials

120634

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
224526194 Ahnenerbe A Sept. 21, 2023, 7:41 p.m. OK C# 10 TESTS 2 46 0
224534335 Morty_Coder A Sept. 21, 2023, 9:34 p.m. OK C# 10 TESTS 2 124 0
224535147 bluemegane A Sept. 21, 2023, 9:51 p.m. OK C# 8 TESTS 2 61 0
224543039 priya_66 A Sept. 22, 2023, 1:06 a.m. OK Clang++17 Diagnostics TESTS 2 30 0
224519974 BraveTeam A Sept. 21, 2023, 6:36 p.m. OK Clang++17 Diagnostics TESTS 2 30 0
224518493 Reaper171 A Sept. 21, 2023, 6:24 p.m. OK Clang++17 Diagnostics TESTS 2 31 0
224545260 qiaochu A Sept. 22, 2023, 1:48 a.m. OK Clang++20 Diagnostics TESTS 2 15 0
224531438 Shebll A Sept. 21, 2023, 8:45 p.m. OK Clang++20 Diagnostics TESTS 2 15 0
224552247 SlowMagic A Sept. 22, 2023, 3:38 a.m. OK Clang++20 Diagnostics TESTS 2 30 0
224543945 brightest66 A Sept. 22, 2023, 1:25 a.m. OK Clang++20 Diagnostics TESTS 2 31 0
224544731 LLZZ A Sept. 22, 2023, 1:38 a.m. OK GNU C11 TESTS 2 0 0
224543280 vjudge3 A Sept. 22, 2023, 1:11 a.m. OK GNU C11 TESTS 2 0 0
224544685 LLZZ A Sept. 22, 2023, 1:37 a.m. OK GNU C11 TESTS 2 0 0
224554949 roy.aavas A Sept. 22, 2023, 4:11 a.m. OK GNU C11 TESTS 2 0 0
224560089 ahmedafeef A Sept. 22, 2023, 5:19 a.m. OK GNU C11 TESTS 2 15 0
224562764 DUGGIRALA_YASHASWI A Sept. 22, 2023, 5:47 a.m. OK GNU C11 TESTS 2 15 0
224562537 Rabeya2802 A Sept. 22, 2023, 5:45 a.m. OK GNU C11 TESTS 2 15 0
224561273 YinJiang A Sept. 22, 2023, 5:32 a.m. OK GNU C11 TESTS 2 15 0
224560849 ironer201 A Sept. 22, 2023, 5:27 a.m. OK GNU C11 TESTS 2 15 0
224557756 ahmedafeef A Sept. 22, 2023, 4:50 a.m. OK GNU C11 TESTS 2 15 0
224561344 Hyouka_12 A Sept. 22, 2023, 5:33 a.m. OK GNU C++14 TESTS 2 0 0
224562443 yashks1234 A Sept. 22, 2023, 5:44 a.m. OK GNU C++14 TESTS 2 0 0
224562913 SwissTea A Sept. 22, 2023, 5:49 a.m. OK GNU C++14 TESTS 2 0 0
224563625 islambadran39 A Sept. 22, 2023, 5:56 a.m. OK GNU C++14 TESTS 2 0 0
224563874 hnust_wunengwu A Sept. 22, 2023, 5:59 a.m. OK GNU C++14 TESTS 2 0 0
224561576 wock A Sept. 22, 2023, 5:35 a.m. OK GNU C++14 TESTS 2 0 0
224561580 Surendra_22 A Sept. 22, 2023, 5:35 a.m. OK GNU C++14 TESTS 2 0 0
224561882 deepak109 A Sept. 22, 2023, 5:38 a.m. OK GNU C++14 TESTS 2 0 0
224562075 shivanandp187 A Sept. 22, 2023, 5:40 a.m. OK GNU C++14 TESTS 2 0 0
224563981 ITIS_Kh.Dang A Sept. 22, 2023, 6 a.m. OK GNU C++14 TESTS 2 0 0
224563775 PriyanshuPM A Sept. 22, 2023, 5:58 a.m. OK GNU C++17 TESTS 2 0 0
224563652 aditya_patil71 A Sept. 22, 2023, 5:56 a.m. OK GNU C++17 TESTS 2 0 0
224563591 vin15 A Sept. 22, 2023, 5:56 a.m. OK GNU C++17 TESTS 2 0 0
224563559 satya_868 A Sept. 22, 2023, 5:55 a.m. OK GNU C++17 TESTS 2 0 0
224563219 koder123 A Sept. 22, 2023, 5:52 a.m. OK GNU C++17 TESTS 2 0 0
224563207 ak_2004 A Sept. 22, 2023, 5:52 a.m. OK GNU C++17 TESTS 2 0 0
224563096 voyager34 A Sept. 22, 2023, 5:51 a.m. OK GNU C++17 TESTS 2 0 0
224563067 Coder420OP A Sept. 22, 2023, 5:50 a.m. OK GNU C++17 TESTS 2 0 0
224562576 sameehana_18 A Sept. 22, 2023, 5:45 a.m. OK GNU C++17 TESTS 2 0 0
224562332 nikhilsihare727 A Sept. 22, 2023, 5:43 a.m. OK GNU C++17 TESTS 2 0 0
224553009 rm1003 A Sept. 22, 2023, 3:49 a.m. OK GNU C++17 (64) TESTS 2 0 0
224561021 vjudge1 A Sept. 22, 2023, 5:29 a.m. OK GNU C++17 (64) TESTS 2 0 0
224562055 Belmaxii A Sept. 22, 2023, 5:40 a.m. OK GNU C++17 (64) TESTS 2 0 0
224558776 zhi_fan A Sept. 22, 2023, 5:02 a.m. OK GNU C++17 (64) TESTS 2 0 0
224557820 CrayonXiaoXin A Sept. 22, 2023, 4:51 a.m. OK GNU C++17 (64) TESTS 2 0 0
224556538 AvDjah A Sept. 22, 2023, 4:34 a.m. OK GNU C++17 (64) TESTS 2 0 0
224556332 Rustambekkk A Sept. 22, 2023, 4:31 a.m. OK GNU C++17 (64) TESTS 2 0 0
224554933 Mosharrof13 A Sept. 22, 2023, 4:10 a.m. OK GNU C++17 (64) TESTS 2 0 0
224554234 malhar_v18 A Sept. 22, 2023, 4 a.m. OK GNU C++17 (64) TESTS 2 0 0
224553750 noobcoder_kala A Sept. 22, 2023, 3:53 a.m. OK GNU C++17 (64) TESTS 2 0 0
224562838 Mina_Eissa A Sept. 22, 2023, 5:48 a.m. OK GNU C++20 (64) TESTS 2 0 0
224563997 Diganta064 A Sept. 22, 2023, 6 a.m. OK GNU C++20 (64) TESTS 2 0 0
224563660 legendaryraj1 A Sept. 22, 2023, 5:57 a.m. OK GNU C++20 (64) TESTS 2 0 0
224563651 sz_zx A Sept. 22, 2023, 5:56 a.m. OK GNU C++20 (64) TESTS 2 0 0
224563541 HelloWin1029 A Sept. 22, 2023, 5:55 a.m. OK GNU C++20 (64) TESTS 2 0 0
224563332 k.sanskruti.2203 A Sept. 22, 2023, 5:53 a.m. OK GNU C++20 (64) TESTS 2 0 0
224563297 mandhan_63 A Sept. 22, 2023, 5:53 a.m. OK GNU C++20 (64) TESTS 2 0 0
224563195 hnust_wuzhanpeng A Sept. 22, 2023, 5:52 a.m. OK GNU C++20 (64) TESTS 2 0 0
224562976 vijay_brat_pandey A Sept. 22, 2023, 5:50 a.m. OK GNU C++20 (64) TESTS 2 0 0
224562852 en_envy A Sept. 22, 2023, 5:48 a.m. OK GNU C++20 (64) TESTS 2 0 0
224519533 shivend7195 A Sept. 21, 2023, 6:32 p.m. OK Go TESTS 2 0 0
224549575 lovefyf A Sept. 22, 2023, 2:58 a.m. OK Go TESTS 2 15 0
224550856 79209748 A Sept. 22, 2023, 3:18 a.m. OK Go TESTS 2 15 0
224551012 ordinaryyyx A Sept. 22, 2023, 3:20 a.m. OK Go TESTS 2 15 0
224546384 katomasao A Sept. 22, 2023, 2:07 a.m. OK Haskell TESTS 2 15 0
224519193 kiranganji A Sept. 21, 2023, 6:30 p.m. OK Java 11 TESTS 2 155 0
224557095 jayvardhan_parkar A Sept. 22, 2023, 4:42 a.m. OK Java 11 TESTS 2 155 0
224550386 coadingcat A Sept. 22, 2023, 3:10 a.m. OK Java 11 TESTS 2 156 0
224518267 richesh27 A Sept. 21, 2023, 6:22 p.m. OK Java 11 TESTS 2 170 0
224558108 Sohit_79 A Sept. 22, 2023, 4:55 a.m. OK Java 11 TESTS 2 171 0
224550123 Jiaye. A Sept. 22, 2023, 3:07 a.m. OK Java 11 TESTS 2 171 0
224535361 MrAnt1vit A Sept. 21, 2023, 9:56 p.m. OK Java 11 TESTS 2 171 0
224533539 amanS A Sept. 21, 2023, 9:20 p.m. OK Java 11 TESTS 2 171 0
224532392 dark_rays A Sept. 21, 2023, 9 p.m. OK Java 11 TESTS 2 171 0
224518828 abdalla_mmdouh A Sept. 21, 2023, 6:27 p.m. OK Java 11 TESTS 2 171 0
224544603 karanboi A Sept. 22, 2023, 1:35 a.m. OK Java 17 TESTS 2 109 1024000
224549243 srinjanadeb A Sept. 22, 2023, 2:53 a.m. OK Java 17 TESTS 2 139 0
224542885 qingxiiiii A Sept. 22, 2023, 1:03 a.m. OK Java 17 TESTS 2 139 307200
224530679 bachka512 A Sept. 21, 2023, 8:34 p.m. OK Java 17 TESTS 2 139 921600
224516077 Harish_49 A Sept. 21, 2023, 6:05 p.m. OK Java 17 TESTS 2 155 0
224549974 GuruCharan955 A Sept. 22, 2023, 3:05 a.m. OK Java 17 TESTS 2 155 102400
224532130 ahmadmasri A Sept. 21, 2023, 8:56 p.m. OK Java 17 TESTS 2 155 204800
224551909 anacharsis A Sept. 22, 2023, 3:34 a.m. OK Java 17 TESTS 2 155 307200
224555604 DessertRommet A Sept. 22, 2023, 4:21 a.m. OK Java 17 TESTS 2 155 409600
224526989 jairgoh A Sept. 21, 2023, 7:49 p.m. OK Java 17 TESTS 2 155 1024000
224561961 goalboy A Sept. 22, 2023, 5:39 a.m. OK Java 21 TESTS 2 187 0
224550660 prakhar_30 A Sept. 22, 2023, 3:15 a.m. OK Java 8 TESTS 2 62 0
224528179 ZakiKurdya A Sept. 21, 2023, 8:02 p.m. OK Java 8 TESTS 2 77 0
224557526 samwantstolearnit A Sept. 22, 2023, 4:47 a.m. OK Java 8 TESTS 2 78 0
224551315 Sri_ram_Prasad_01 A Sept. 22, 2023, 3:25 a.m. OK Java 8 TESTS 2 93 0
224548073 bkifhr6 A Sept. 22, 2023, 2:34 a.m. OK Java 8 TESTS 2 93 0
224544595 Autunomy A Sept. 22, 2023, 1:35 a.m. OK Java 8 TESTS 2 93 0
224534105 ujjwalavishek A Sept. 21, 2023, 9:30 p.m. OK Java 8 TESTS 2 93 0
224532542 2311Rahulbansal A Sept. 21, 2023, 9:02 p.m. OK Java 8 TESTS 2 93 0
224520860 Kartik2005 A Sept. 21, 2023, 6:43 p.m. OK Java 8 TESTS 2 93 0
224519313 akashagrawal0358 A Sept. 21, 2023, 6:31 p.m. OK Java 8 TESTS 2 93 0
224562461 Ravitosh A Sept. 22, 2023, 5:44 a.m. OK MS C++ 2017 TESTS 2 0 0
224547615 Krystal0w0 A Sept. 22, 2023, 2:27 a.m. OK MS C++ 2017 TESTS 2 0 0
224531175 Alexit A Sept. 21, 2023, 8:41 p.m. OK MS C++ 2017 TESTS 2 0 0
224523147 bhuvnesh.gupta.mec22 A Sept. 21, 2023, 7:06 p.m. OK MS C++ 2017 TESTS 2 0 0
224519463 bigballs123 A Sept. 21, 2023, 6:32 p.m. OK MS C++ 2017 TESTS 2 0 0
224558982 omarmagic225 A Sept. 22, 2023, 5:05 a.m. OK MS C++ 2017 TESTS 2 15 0
224526392 Gadi A Sept. 21, 2023, 7:43 p.m. OK MS C++ 2017 TESTS 2 15 0
224552288 namankumar8510 A Sept. 22, 2023, 3:39 a.m. OK Node.js TESTS 2 46 0
224562685 superheated A Sept. 22, 2023, 5:46 a.m. OK PyPy 3 TESTS 2 62 0
224545068 YMSeah A Sept. 22, 2023, 1:44 a.m. OK PyPy 3 TESTS 2 62 0
224539161 goh29932 A Sept. 21, 2023, 11:35 p.m. OK PyPy 3 TESTS 2 62 0
224515934 yvovaa A Sept. 21, 2023, 6:04 p.m. OK PyPy 3 TESTS 2 62 0
224560929 rutz12 A Sept. 22, 2023, 5:28 a.m. OK PyPy 3 TESTS 2 77 0
224536029 ahmedchammam A Sept. 21, 2023, 10:13 p.m. OK PyPy 3 TESTS 2 77 0
224532931 samliu12 A Sept. 21, 2023, 9:09 p.m. OK PyPy 3 TESTS 2 77 0
224528551 buts A Sept. 21, 2023, 8:07 p.m. OK PyPy 3 TESTS 2 77 0
224520297 Shanko A Sept. 21, 2023, 6:39 p.m. OK PyPy 3 TESTS 2 77 0
224515593 sajji18 A Sept. 21, 2023, 6:02 p.m. OK PyPy 3 TESTS 2 77 0
224533931 itsabigbum A Sept. 21, 2023, 9:27 p.m. OK PyPy 3-64 TESTS 2 30 0
224532123 AZron A Sept. 21, 2023, 8:56 p.m. OK PyPy 3-64 TESTS 2 30 0
224516879 gardengnome A Sept. 21, 2023, 6:12 p.m. OK PyPy 3-64 TESTS 2 30 0
224559188 hranitel_pnya A Sept. 22, 2023, 5:08 a.m. OK PyPy 3-64 TESTS 2 31 0
224553996 Fawad_akbar A Sept. 22, 2023, 3:56 a.m. OK PyPy 3-64 TESTS 2 31 0
224528057 try2solve A Sept. 21, 2023, 8:01 p.m. OK PyPy 3-64 TESTS 2 31 0
224561442 bessarab A Sept. 22, 2023, 5:34 a.m. OK PyPy 3-64 TESTS 2 46 0
224559919 Mahek12345 A Sept. 22, 2023, 5:17 a.m. OK PyPy 3-64 TESTS 2 46 0
224555884 yollotlfe A Sept. 22, 2023, 4:25 a.m. OK PyPy 3-64 TESTS 2 46 0
224552062 vannamsc A Sept. 22, 2023, 3:36 a.m. OK PyPy 3-64 TESTS 2 46 0
224558909 NABIEVMEHRUBON A Sept. 22, 2023, 5:04 a.m. OK Python 3 TESTS 2 15 0
224541176 Mohamed_Mostafaa A Sept. 22, 2023, 12:28 a.m. OK Python 3 TESTS 2 15 0
224533630 JadArab A Sept. 21, 2023, 9:22 p.m. OK Python 3 TESTS 2 15 0
224527626 eugalt A Sept. 21, 2023, 7:56 p.m. OK Python 3 TESTS 2 15 0
224527483 eugalt A Sept. 21, 2023, 7:55 p.m. OK Python 3 TESTS 2 15 0
224524031 virupavaraprasad22 A Sept. 21, 2023, 7:16 p.m. OK Python 3 TESTS 2 15 0
224521447 JadArab A Sept. 21, 2023, 6:49 p.m. OK Python 3 TESTS 2 15 0
224563287 dhananjaykumar A Sept. 22, 2023, 5:53 a.m. OK Python 3 TESTS 2 30 0
224563117 raviparmar2002 A Sept. 22, 2023, 5:51 a.m. OK Python 3 TESTS 2 30 0
224560660 Anil__2022 A Sept. 22, 2023, 5:25 a.m. OK Python 3 TESTS 2 30 0
224520310 LaithAlq A Sept. 21, 2023, 6:39 p.m. OK Ruby 3 TESTS 2 233 102400
224520151 Akisaki A Sept. 21, 2023, 6:38 p.m. OK Ruby 3 TESTS 2 233 102400
224552401 Spheniscine A Sept. 22, 2023, 3:41 a.m. OK Rust 2021 TESTS 2 0 102400

remove filters

Back to search problems