Codeforces Round 827 (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
1742 Codeforces Round 827 (Div. 4) FINISHED False 8700 66151499 Oct. 13, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11866 ) F Smaller PROGRAMMING constructive algorithms greedy strings

B'Alperen has two strings, s and t which are both initially equal to "a". He will perform q operations of two types on the given strings: After each operation, determine if it is possible to rearrange the characters of s and t such that s is lexicographically smaller ^{ dagger} than t . Note that the strings change after performing each operation and don 't go back to their initial states. ^{ dagger} Simply speaking, the lexicographical order is the order in which words are listed in a dictionary. A formal definition is as follows: string p is lexicographically smaller than string q if there exists a position i such that p_i < q_i , and for all j < i , p_j = q_j . If no such i exists, then p is lexicographically smaller than q if the length of p is less than the length of q . For example, texttt{abdc} < texttt{abe} and texttt{abc} < texttt{abcd} , where we write p < q if p is lexicographically smaller than q . The first line of the input contains an integer t ( 1 <= q t <= q 10^4 ) -- the number of test cases. The first line of each test case contains an integer q (1 <= q q <= q 10^5) -- the number of operations Alperen will perform. Then q lines follow, each containing two positive integers d and k ( 1 <= q d <= q 2 ; 1 <= q k <= q 10^5 ) and a non-empty string x consisting of lowercase English letters -- the type of the operation, the number of times we will append string x and the string we need to append respectively. It is guaranteed that the sum of q over all test cases doesn 't exceed 10^5 and that the sum of lengths of all strings x in the input doesn 't exceed 5 cdot 10^5 . For each operation, output "YES", if it is possible to arrange the elements in both strings in such a way that s is lexicographically smaller '...

Tutorials

107962

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
176085407 chrisfcoder F Oct. 14, 2022, 1:53 a.m. OK C# 10 TESTS 39 108 12595200
176089167 2000031824 F Oct. 14, 2022, 2:48 a.m. OK Clang++20 Diagnostics TESTS 39 919 13004800
176082386 Uanu F Oct. 14, 2022, 12:57 a.m. OK GNU C11 TESTS 39 62 4198400
176080923 1435730 F Oct. 14, 2022, 12:27 a.m. OK GNU C11 TESTS 39 452 4198400
176094354 A_Big_Jiong F Oct. 14, 2022, 4:02 a.m. OK GNU C++14 TESTS 39 62 512000
176089636 liympanda F Oct. 14, 2022, 2:55 a.m. OK GNU C++14 TESTS 39 62 614400
176059328 V.L.Manaswini F Oct. 13, 2022, 6:24 p.m. OK GNU C++14 TESTS 12 62 1024000
176070302 conexposys F Oct. 13, 2022, 8:19 p.m. OK GNU C++14 TESTS 19 62 1024000
176070473 conexposys F Oct. 13, 2022, 8:21 p.m. OK GNU C++14 TESTS 19 62 1024000
176061557 yogiswarvvs F Oct. 13, 2022, 6:44 p.m. OK GNU C++14 TESTS 19 62 1228800
176060932 Pain_373 F Oct. 13, 2022, 6:38 p.m. OK GNU C++14 TESTS 19 62 1228800
176089473 qqzj F Oct. 14, 2022, 2:52 a.m. OK GNU C++14 TESTS 39 62 1331200
176082866 Donyeoh F Oct. 14, 2022, 1:06 a.m. OK GNU C++14 TESTS 39 62 1536000
176065296 AshcoOoOdel F Oct. 13, 2022, 7:21 p.m. OK GNU C++14 TESTS 19 62 4403200
176054934 Sparnke F Oct. 13, 2022, 5:50 p.m. OK GNU C++17 TESTS 9 62 0
176097080 lx_tyin F Oct. 14, 2022, 4:41 a.m. OK GNU C++17 TESTS 39 62 512000
176097003 surajmisal18 F Oct. 14, 2022, 4:40 a.m. OK GNU C++17 TESTS 39 62 512000
176094409 Amazlng F Oct. 14, 2022, 4:03 a.m. OK GNU C++17 TESTS 39 62 512000
176090893 ttkk F Oct. 14, 2022, 3:13 a.m. OK GNU C++17 TESTS 39 62 512000
176090451 PUNGqw F Oct. 14, 2022, 3:07 a.m. OK GNU C++17 TESTS 39 62 512000
176097401 Horcrux_63 F Oct. 14, 2022, 4:45 a.m. OK GNU C++17 TESTS 39 62 512000
176100982 Sky_Warrior F Oct. 14, 2022, 5:29 a.m. OK GNU C++17 TESTS 39 62 512000
176085771 Sh.G F Oct. 14, 2022, 2 a.m. OK GNU C++17 TESTS 39 62 1024000
176102188 jpablo.marinr F Oct. 14, 2022, 5:41 a.m. OK GNU C++17 TESTS 39 62 1024000
176093110 xinjiu F Oct. 14, 2022, 3:45 a.m. OK GNU C++17 (64) TESTS 39 46 512000
176064180 ardekarsanket F Oct. 13, 2022, 7:09 p.m. OK GNU C++17 (64) TESTS 19 46 1228800
176071598 mashed_aloo F Oct. 13, 2022, 8:37 p.m. OK GNU C++17 (64) TESTS 27 46 1331200
176068480 zeref F Oct. 13, 2022, 7:57 p.m. OK GNU C++17 (64) TESTS 19 46 1433600
176075432 shiro53 F Oct. 13, 2022, 9:46 p.m. OK GNU C++17 (64) TESTS 32 46 1433600
176081892 Cyanine_1 F Oct. 14, 2022, 12:48 a.m. OK GNU C++17 (64) TESTS 39 46 1433600
176077127 Kumarfeldspar F Oct. 13, 2022, 10:26 p.m. OK GNU C++17 (64) TESTS 39 46 1843200
176067207 Kumarfeldspar F Oct. 13, 2022, 7:42 p.m. OK GNU C++17 (64) TESTS 19 46 1945600
176101534 FangYifan F Oct. 14, 2022, 5:34 a.m. OK GNU C++17 (64) TESTS 39 61 512000
176090327 Liam_Evander F Oct. 14, 2022, 3:06 a.m. OK GNU C++17 (64) TESTS 39 61 512000
176060620 jimm89 F Oct. 13, 2022, 6:35 p.m. OK GNU C++20 (64) TESTS 12 31 0
176060910 Vlaned F Oct. 13, 2022, 6:38 p.m. OK GNU C++20 (64) TESTS 19 31 1228800
176066694 yagami__ F Oct. 13, 2022, 7:36 p.m. OK GNU C++20 (64) TESTS 19 31 1228800
176077097 DeadPixel99 F Oct. 13, 2022, 10:25 p.m. OK GNU C++20 (64) TESTS 39 31 1331200
176061474 stalker120 F Oct. 13, 2022, 6:43 p.m. OK GNU C++20 (64) TESTS 19 31 1433600
176077391 Carbonation F Oct. 13, 2022, 10:33 p.m. OK GNU C++20 (64) TESTS 39 31 1536000
176055016 bhattanshika0207 F Oct. 13, 2022, 5:51 p.m. OK GNU C++20 (64) TESTS 9 31 6246400
176056117 Anmol626 F Oct. 13, 2022, 5:59 p.m. OK GNU C++20 (64) TESTS 9 46 0
176104174 sd_3009 F Oct. 14, 2022, 6:01 a.m. OK GNU C++20 (64) TESTS 39 46 512000
176103841 VasyaMeR F Oct. 14, 2022, 5:57 a.m. OK GNU C++20 (64) TESTS 39 46 512000
176088247 0x3F F Oct. 14, 2022, 2:35 a.m. OK Go TESTS 39 93 19251200
176091801 mtarunsai1999 F Oct. 14, 2022, 3:26 a.m. OK Go TESTS 39 109 4710400
176071111 vigneshpillutla F Oct. 13, 2022, 8:30 p.m. OK Java 11 TESTS 19 218 24678400
176102499 chenxiaoming F Oct. 14, 2022, 5:44 a.m. OK Java 11 TESTS 39 296 0
176097353 LoudSilence F Oct. 14, 2022, 4:45 a.m. OK Java 11 TESTS 39 358 0
176061950 mohit038 F Oct. 13, 2022, 6:47 p.m. OK Java 11 TESTS 19 1200 31027200
176067313 edsheeran2 F Oct. 13, 2022, 7:43 p.m. OK Java 17 TESTS 19 264 40038400
176061616 vipin__sharma F Oct. 13, 2022, 6:44 p.m. OK Java 17 TESTS 19 623 40550400
176066769 Karakurik F Oct. 13, 2022, 7:37 p.m. OK Java 8 TESTS 19 140 18944000
176103830 TaukeKhan_ F Oct. 14, 2022, 5:57 a.m. OK Java 8 TESTS 39 155 0
176092430 frey4 F Oct. 14, 2022, 3:35 a.m. OK Java 8 TESTS 39 155 0
176066861 Mohamed308 F Oct. 13, 2022, 7:38 p.m. OK Java 8 TESTS 19 155 18841600
176075453 Unrated_Pritam F Oct. 13, 2022, 9:46 p.m. OK Java 8 TESTS 32 155 18944000
176089836 Parimal F Oct. 14, 2022, 2:58 a.m. OK Java 8 TESTS 39 170 0
176078839 Mouhssine F Oct. 13, 2022, 11:21 p.m. OK Java 8 TESTS 39 170 19046400
176089901 Parimal F Oct. 14, 2022, 2:59 a.m. OK Java 8 TESTS 39 171 0
176085497 ikillmyself F Oct. 14, 2022, 1:55 a.m. OK Java 8 TESTS 39 202 19148800
176085565 ikillmyself F Oct. 14, 2022, 1:56 a.m. OK Java 8 TESTS 39 202 19251200
176082874 lxk_iKun F Oct. 14, 2022, 1:06 a.m. OK MS C++ 2017 TESTS 39 514 1228800
176097216 0x7f_ F Oct. 14, 2022, 4:43 a.m. OK PyPy 3 TESTS 39 389 13619200
176065589 jackson.souza F Oct. 13, 2022, 7:24 p.m. OK PyPy 3 TESTS 19 1060 30924800
176054666 Amiy_Tiwari F Oct. 13, 2022, 5:48 p.m. OK PyPy 3 TESTS 9 1497 28979200
176067161 wincss F Oct. 13, 2022, 7:41 p.m. OK PyPy 3-64 TESTS 19 155 37683200
176078018 chromate00 F Oct. 13, 2022, 10:52 p.m. OK PyPy 3-64 TESTS 39 218 39321600
176097977 FrozenKandy F Oct. 14, 2022, 4:53 a.m. OK PyPy 3-64 TESTS 39 233 14233600
176085903 bokunopicolo F Oct. 14, 2022, 2:02 a.m. OK PyPy 3-64 TESTS 39 234 38809600
176097754 FrozenKandy F Oct. 14, 2022, 4:50 a.m. OK PyPy 3-64 TESTS 39 265 14233600
176089136 mintplz F Oct. 14, 2022, 2:48 a.m. OK PyPy 3-64 TESTS 39 265 37990400
176101744 Code_Breaker101 F Oct. 14, 2022, 5:36 a.m. OK PyPy 3-64 TESTS 39 280 11161600
176093289 rainy F Oct. 14, 2022, 3:48 a.m. OK PyPy 3-64 TESTS 39 296 10854400
176077163 Amay12 F Oct. 13, 2022, 10:27 p.m. OK PyPy 3-64 TESTS 39 296 39014400
176072501 shivamgarg2005 F Oct. 13, 2022, 8:52 p.m. OK PyPy 3-64 TESTS 27 311 39526400
176088207 2000031119 F Oct. 14, 2022, 2:35 a.m. OK Python 3 TESTS 39 389 5222400
176078571 ankit_xyz F Oct. 13, 2022, 11:12 p.m. OK Python 3 TESTS 39 810 5017600
176078605 ankit_xyz F Oct. 13, 2022, 11:13 p.m. OK Python 3 TESTS 39 1435 4812800
176087443 liut F Oct. 14, 2022, 2:25 a.m. OK Rust 2021 TESTS 39 46 1228800

remove filters

Back to search problems