Codeforces Round 894 (Div. 3)

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
1862 Codeforces Round 894 (Div. 3) FINISHED False 8100 38935499 Aug. 24, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 32712 ) A Gift Carpet PROGRAMMING greedy implementation strings

B'Recently, Tema and Vika celebrated Family Day. Their friend Arina gave them a carpet, which can be represented as an n cdot m table of lowercase Latin letters. Vika hasn 't seen the gift yet, but Tema knows what kind of carpets she likes. Vika will like the carpet if she can read her name on. She reads column by column from left to right and chooses one or zero letters from current column. Formally, the girl will like the carpet if it is possible to select four distinct columns in order from left to right such that the first column contains "v", the second one contains "i", the third one contains "k", and the fourth one contains "a". Help Tema understand in advance whether Vika will like Arina 's gift. Each test consists of multiple test cases. The first line of input contains a single integer t ( 1 <= t <= 100 ) -- the number of test cases. Then follows the description of the test cases. The first line of each test case contains two integers n , m ( 1 <= n, m <= 20 ) -- the sizes of the carpet. The next n lines contain m lowercase Latin letters each, describing the given carpet. For each set of input data, output "YES" if Vika will like the carpet, otherwise output "NO". You can output each letter in any case (lowercase or uppercase). For example, the strings "yEs", "yes", "Yes", and "YES" will be accepted as a positive answer. In the first sample, Vika can read her name from left to right. In the second sample, Vika cannot read the character "v", so she will not like the carpet. '...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
220433261 OmarOz A Aug. 25, 2023, 8:07 p.m. OK C# 10 TESTS 20 46 204800
220449563 mban259 A Aug. 26, 2023, 1:35 a.m. OK C# 10 TESTS 20 46 307200
220363270 Kamill_m A Aug. 25, 2023, 10:56 a.m. OK C# 10 TESTS 20 46 307200
220363160 LL__LOX A Aug. 25, 2023, 10:55 a.m. OK C# 10 TESTS 20 46 307200
220425800 Salery A Aug. 25, 2023, 6:43 p.m. OK C# 10 TESTS 20 46 409600
220379614 Baga_Boom A Aug. 25, 2023, 1:07 p.m. OK C# 10 TESTS 20 62 409600
220345937 Ac_Yi A Aug. 25, 2023, 6:29 a.m. OK Clang++17 Diagnostics TESTS 20 46 0
220414505 shauryadusht A Aug. 25, 2023, 5:13 p.m. OK Clang++17 Diagnostics TESTS 20 46 1024000
220348804 Lunar.. A Aug. 25, 2023, 7:07 a.m. OK Clang++17 Diagnostics TESTS 20 61 1024000
220404926 divyarajsinh04 A Aug. 25, 2023, 4:02 p.m. OK Clang++17 Diagnostics TESTS 20 62 4198400
220364508 ProgrammerDog A Aug. 25, 2023, 11:06 a.m. OK Clang++17 Diagnostics TESTS 20 77 512000
220417920 shubham_codes1 A Aug. 25, 2023, 5:39 p.m. OK Clang++20 Diagnostics TESTS 20 46 4198400
220432475 Demid.Shumakher A Aug. 25, 2023, 7:58 p.m. OK Clang++20 Diagnostics TESTS 20 78 0
220372027 Smithp_96 A Aug. 25, 2023, 12:09 p.m. OK GNU C11 TESTS 20 15 0
220352667 DarkWillow A Aug. 25, 2023, 8 a.m. OK GNU C11 TESTS 20 30 0
220399047 notmeh_blablabla A Aug. 25, 2023, 3:19 p.m. OK GNU C11 TESTS 20 30 0
220418002 ug2102066 A Aug. 25, 2023, 5:40 p.m. OK GNU C11 TESTS 20 30 0
220457827 vigneshp_07 A Aug. 26, 2023, 4:08 a.m. OK GNU C11 TESTS 20 30 0
220457663 ArjoKar11_01 A Aug. 26, 2023, 4:05 a.m. OK GNU C11 TESTS 20 31 0
220460426 ArjoKar11_01 A Aug. 26, 2023, 4:51 a.m. OK GNU C11 TESTS 20 31 0
220401366 BurnerAce A Aug. 25, 2023, 3:38 p.m. OK GNU C11 TESTS 20 31 0
220455249 siddhesh47 A Aug. 26, 2023, 3:25 a.m. OK GNU C11 TESTS 20 46 0
220409980 sanskriti16 A Aug. 25, 2023, 4:39 p.m. OK GNU C++14 TESTS 20 0 102400
220360093 crayon_23 A Aug. 25, 2023, 10:11 a.m. OK GNU C++14 TESTS 20 0 102400
220358977 Anastasia_1 A Aug. 25, 2023, 9:49 a.m. OK GNU C++14 TESTS 20 0 409600
220445158 Rombing A Aug. 25, 2023, 11:49 p.m. OK GNU C++14 TESTS 20 0 1638400
220454436 ishika15raj A Aug. 26, 2023, 3:10 a.m. OK GNU C++14 TESTS 20 15 0
220454715 tsxb A Aug. 26, 2023, 3:15 a.m. OK GNU C++14 TESTS 20 15 0
220457056 2huk A Aug. 26, 2023, 3:56 a.m. OK GNU C++14 TESTS 20 15 0
220458261 InfiniteChallenge A Aug. 26, 2023, 4:16 a.m. OK GNU C++14 TESTS 20 15 0
220460229 Dhriti_G A Aug. 26, 2023, 4:48 a.m. OK GNU C++14 TESTS 20 15 0
220460856 xujindong A Aug. 26, 2023, 4:57 a.m. OK GNU C++14 TESTS 20 15 0
220445486 MohamedHassan218 A Aug. 25, 2023, 11:57 p.m. OK GNU C++17 TESTS 20 0 0
220347546 kyouma45 A Aug. 25, 2023, 6:51 a.m. OK GNU C++17 TESTS 20 0 0
220406638 sarvasva_309 A Aug. 25, 2023, 4:15 p.m. OK GNU C++17 TESTS 20 0 0
220435733 dey44and A Aug. 25, 2023, 8:40 p.m. OK GNU C++17 TESTS 20 0 0
220434184 Haddi_001 A Aug. 25, 2023, 8:19 p.m. OK GNU C++17 TESTS 20 0 0
220419382 lucri A Aug. 25, 2023, 5:50 p.m. OK GNU C++17 TESTS 20 0 0
220455391 PolinaKaraeva2021 A Aug. 26, 2023, 3:27 a.m. OK GNU C++17 TESTS 20 0 102400
220464472 MMonirHossain A Aug. 26, 2023, 5:43 a.m. OK GNU C++17 TESTS 20 0 102400
220460813 Loki023 A Aug. 26, 2023, 4:57 a.m. OK GNU C++17 TESTS 20 0 102400
220457143 rumdien113 A Aug. 26, 2023, 3:57 a.m. OK GNU C++17 TESTS 20 0 102400
220358190 Suuii A Aug. 25, 2023, 9:35 a.m. OK GNU C++17 (64) TESTS 20 0 0
220350647 Krzychuo A Aug. 25, 2023, 7:30 a.m. OK GNU C++17 (64) TESTS 20 0 0
220354394 dejawow A Aug. 25, 2023, 8:32 a.m. OK GNU C++17 (64) TESTS 20 0 0
220354469 Njaso A Aug. 25, 2023, 8:33 a.m. OK GNU C++17 (64) TESTS 20 0 0
220465509 Lockeder A Aug. 26, 2023, 5:54 a.m. OK GNU C++17 (64) TESTS 20 0 0
220463740 zsxuan A Aug. 26, 2023, 5:35 a.m. OK GNU C++17 (64) TESTS 20 0 0
220459246 JorbanS A Aug. 26, 2023, 4:32 a.m. OK GNU C++17 (64) TESTS 20 0 0
220451898 murugank0204 A Aug. 26, 2023, 2:23 a.m. OK GNU C++17 (64) TESTS 20 0 0
220409804 Fast_submit A Aug. 25, 2023, 4:37 p.m. OK GNU C++17 (64) TESTS 20 0 0
220465747 Thnieyu A Aug. 26, 2023, 5:56 a.m. OK GNU C++17 (64) TESTS 20 15 0
220449027 Nekura_Yuki A Aug. 26, 2023, 1:24 a.m. OK GNU C++20 (64) TESTS 20 0 0
220449582 FF_ECJTU_HOPE A Aug. 26, 2023, 1:36 a.m. OK GNU C++20 (64) TESTS 20 0 0
220450534 rose_blackpink A Aug. 26, 2023, 1:56 a.m. OK GNU C++20 (64) TESTS 20 0 0
220451730 bhxyry A Aug. 26, 2023, 2:19 a.m. OK GNU C++20 (64) TESTS 20 0 0
220452858 secretman1312 A Aug. 26, 2023, 2:42 a.m. OK GNU C++20 (64) TESTS 20 0 0
220454078 hmduo2k11 A Aug. 26, 2023, 3:03 a.m. OK GNU C++20 (64) TESTS 20 0 0
220458001 Mamalesh A Aug. 26, 2023, 4:11 a.m. OK GNU C++20 (64) TESTS 20 0 0
220458439 hugepp A Aug. 26, 2023, 4:19 a.m. OK GNU C++20 (64) TESTS 20 0 0
220463186 Smit_Gondaliya_ A Aug. 26, 2023, 5:28 a.m. OK GNU C++20 (64) TESTS 20 0 0
220464497 un-Shelton A Aug. 26, 2023, 5:43 a.m. OK GNU C++20 (64) TESTS 20 0 0
220448324 profchi A Aug. 26, 2023, 1:09 a.m. OK Java 11 TESTS 20 171 0
220444646 iamavalon A Aug. 25, 2023, 11:38 p.m. OK Java 11 TESTS 20 171 0
220421364 karimgamaleldin7 A Aug. 25, 2023, 6:04 p.m. OK Java 11 TESTS 20 171 0
220365881 jayasuryasubashini A Aug. 25, 2023, 11:18 a.m. OK Java 11 TESTS 20 171 0
220460992 black_devil_9552 A Aug. 26, 2023, 4:59 a.m. OK Java 11 TESTS 20 187 0
220368550 JavaGodPeter A Aug. 25, 2023, 11:41 a.m. OK Java 11 TESTS 20 187 0
220365827 Phanscad A Aug. 25, 2023, 11:18 a.m. OK Java 11 TESTS 20 187 0
220362605 nk_Navin A Aug. 25, 2023, 10:50 a.m. OK Java 11 TESTS 20 187 0
220360485 jooncco A Aug. 25, 2023, 10:18 a.m. OK Java 11 TESTS 20 187 0
220358135 nk_Navin A Aug. 25, 2023, 9:34 a.m. OK Java 11 TESTS 20 202 0
220359548 utkarsh3112 A Aug. 25, 2023, 10 a.m. OK Java 17 TESTS 20 171 409600
220347602 AKhacks A Aug. 25, 2023, 6:52 a.m. OK Java 17 TESTS 20 171 409600
220427766 Akash_Sardar A Aug. 25, 2023, 7:03 p.m. OK Java 17 TESTS 20 186 204800
220358288 utkarsh3112 A Aug. 25, 2023, 9:37 a.m. OK Java 17 TESTS 20 186 614400
220372937 Mostafa_Murad A Aug. 25, 2023, 12:17 p.m. OK Java 17 TESTS 20 186 819200
220364630 AKhacks A Aug. 25, 2023, 11:08 a.m. OK Java 17 TESTS 20 187 409600
220351043 AKhacks A Aug. 25, 2023, 7:35 a.m. OK Java 17 TESTS 20 202 307200
220347716 AKhacks A Aug. 25, 2023, 6:53 a.m. OK Java 17 TESTS 20 202 307200
220368383 vinaymungra A Aug. 25, 2023, 11:40 a.m. OK Java 17 TESTS 20 202 409600
220366091 pa0506 A Aug. 25, 2023, 11:20 a.m. OK Java 17 TESTS 20 202 716800
220462504 magic_kid A Aug. 26, 2023, 5:20 a.m. OK Java 8 TESTS 20 108 0
220456189 Udayf A Aug. 26, 2023, 3:41 a.m. OK Java 8 TESTS 20 108 0
220431490 gg7916 A Aug. 25, 2023, 7:46 p.m. OK Java 8 TESTS 20 108 0
220460631 banaitsanket4 A Aug. 26, 2023, 4:54 a.m. OK Java 8 TESTS 20 124 0
220430514 Sourav72 A Aug. 25, 2023, 7:34 p.m. OK Java 8 TESTS 20 124 0
220401066 Nanthakumar06 A Aug. 25, 2023, 3:37 p.m. OK Java 8 TESTS 20 124 0
220354153 ZXF_521mua A Aug. 25, 2023, 8:28 a.m. OK Java 8 TESTS 20 124 0
220349516 depurador_ik A Aug. 25, 2023, 7:16 a.m. OK Java 8 TESTS 20 124 12390400
220459104 vattamsneha A Aug. 26, 2023, 4:30 a.m. OK Java 8 TESTS 20 139 0
220368736 QianCCC A Aug. 25, 2023, 11:43 a.m. OK Java 8 TESTS 20 140 0
220367277 blkrop A Aug. 25, 2023, 11:30 a.m. OK Kotlin 1.7 TESTS 20 311 1024000
220463902 Parth1647 A Aug. 26, 2023, 5:36 a.m. OK MS C++ 2017 TESTS 20 30 0
220458331 Jasharaj A Aug. 26, 2023, 4:17 a.m. OK MS C++ 2017 TESTS 20 31 0
220458233 Jasharaj A Aug. 26, 2023, 4:15 a.m. OK MS C++ 2017 TESTS 20 31 0
220436742 Matvec A Aug. 25, 2023, 8:54 p.m. OK MS C++ 2017 TESTS 20 31 0
220457722 Jasharaj A Aug. 26, 2023, 4:06 a.m. OK MS C++ 2017 TESTS 20 31 102400
220458236 ramab A Aug. 26, 2023, 4:16 a.m. OK PyPy 3 TESTS 20 93 1945600
220403783 vlada_chv A Aug. 25, 2023, 3:54 p.m. OK PyPy 3 TESTS 20 140 3276800
220420776 to0th_less A Aug. 25, 2023, 6 p.m. OK PyPy 3 TESTS 20 156 3686400
220345100 vlada_chv A Aug. 25, 2023, 6:18 a.m. OK PyPy 3 TESTS 20 186 3276800
220416173 Tinky1224 A Aug. 25, 2023, 5:25 p.m. OK PyPy 3-64 TESTS 20 62 2252800
220429936 MdAbedin A Aug. 25, 2023, 7:27 p.m. OK PyPy 3-64 TESTS 20 62 2764800
220367913 Marco_Lau A Aug. 25, 2023, 11:36 a.m. OK PyPy 3-64 TESTS 20 77 2764800
220373983 _icy_ A Aug. 25, 2023, 12:25 p.m. OK PyPy 3-64 TESTS 20 77 2969600
220351070 zouyu9631 A Aug. 25, 2023, 7:35 a.m. OK PyPy 3-64 TESTS 20 77 3379200
220442497 alveeram A Aug. 25, 2023, 10:44 p.m. OK PyPy 3-64 TESTS 20 77 3481600
220409477 sky_coder_ A Aug. 25, 2023, 4:35 p.m. OK PyPy 3-64 TESTS 20 93 3481600
220441738 adamjamil A Aug. 25, 2023, 10:26 p.m. OK PyPy 3-64 TESTS 20 93 3993600
220365487 MistaFlash A Aug. 25, 2023, 11:15 a.m. OK PyPy 3-64 TESTS 20 108 2150400
220463549 Ana_naS A Aug. 26, 2023, 5:32 a.m. OK PyPy 3-64 TESTS 20 108 2764800
220439977 Khaled_ehanan2003 A Aug. 25, 2023, 9:49 p.m. OK Python 3 TESTS 20 31 0
220434790 KH_Elhanan A Aug. 25, 2023, 8:27 p.m. OK Python 3 TESTS 20 31 0
220466229 iotegaliyev A Aug. 26, 2023, 6:01 a.m. OK Python 3 TESTS 20 46 0
220465549 ecstatic A Aug. 26, 2023, 5:54 a.m. OK Python 3 TESTS 20 46 0
220464985 AhmadUsman A Aug. 26, 2023, 5:48 a.m. OK Python 3 TESTS 20 46 0
220462689 araffimenare A Aug. 26, 2023, 5:22 a.m. OK Python 3 TESTS 20 46 0
220462123 AhmadUsman A Aug. 26, 2023, 5:15 a.m. OK Python 3 TESTS 20 46 0
220460283 AgentTanvir A Aug. 26, 2023, 4:49 a.m. OK Python 3 TESTS 20 46 0
220458902 vasudha_1610 A Aug. 26, 2023, 4:27 a.m. OK Python 3 TESTS 20 46 0
220458628 ganesh_utla A Aug. 26, 2023, 4:23 a.m. OK Python 3 TESTS 20 46 0
220457956 0x81 A Aug. 26, 2023, 4:10 a.m. OK Ruby 3 TESTS 20 280 409600
220444555 tH0m4Ssxsqrd A Aug. 25, 2023, 11:35 p.m. OK Rust 2021 TESTS 20 15 0

remove filters

Back to search problems