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.
Problems
B'Andi and Budi were given an assignment to tidy up their bookshelf of n books. Each book is represented by the book title -- a string s_i numbered from 1 to n , each with length m . Andi really wants to sort the book lexicographically ascending, while Budi wants to sort it lexicographically descending. Settling their fight, they decided to combine their idea and sort it asc-desc-endingly, where the odd-indexed characters will be compared ascendingly, and the even-indexed characters will be compared descendingly. A string a occurs before a string b in asc-desc-ending order if and only if in the first position where a and b differ, the following holds: The first line contains two integers n and m ( 1 <= q n cdot m <= q 10^6 ). The i -th of the next n lines contains a string s_i consisting of m uppercase Latin letters -- the book title. The strings are pairwise distinct. Output n integers -- the indices of the strings after they are sorted asc-desc-endingly. The following illustrates the first example. '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
130568081 |
TheIridescentOne Ertugrul28 _mndm |
A |
Oct. 2, 2021, 1:53 p.m. |
OK |
GNU C++14 |
TESTS |
11 |
93 |
32870400 |
|
|
130568254 |
shdut0901 |
A |
Oct. 2, 2021, 1:55 p.m. |
OK |
GNU C++14 |
TESTS |
11 |
109 |
8704000 |
|
|
130566750 |
callmepandey ak_shrana logbase2 |
A |
Oct. 2, 2021, 1:40 p.m. |
OK |
GNU C++14 |
TESTS |
11 |
109 |
10342400 |
|
|
130569595 |
Melania ttee |
A |
Oct. 2, 2021, 2:08 p.m. |
OK |
GNU C++14 |
TESTS |
11 |
109 |
53862400 |
|
|
130567102 |
toptricks JangirGJ |
A |
Oct. 2, 2021, 1:43 p.m. |
OK |
GNU C++14 |
TESTS |
11 |
124 |
6656000 |
|
|
130567165 |
Sasha0738 vladmart linsierra |
A |
Oct. 2, 2021, 1:44 p.m. |
OK |
GNU C++14 |
TESTS |
11 |
124 |
6656000 |
|
|
130612346 |
amushuk890 |
A |
Oct. 3, 2021, 3:55 a.m. |
OK |
GNU C++14 |
TESTS |
11 |
139 |
6553600 |
|
|
130567286 |
gaserashraf |
A |
Oct. 2, 2021, 1:45 p.m. |
OK |
GNU C++14 |
TESTS |
11 |
140 |
10342400 |
|
|
130567637 |
xuanquang1999 |
A |
Oct. 2, 2021, 1:48 p.m. |
OK |
GNU C++14 |
TESTS |
11 |
140 |
30003200 |
|
|
130567755 |
krchmar |
A |
Oct. 2, 2021, 1:50 p.m. |
OK |
GNU C++14 |
TESTS |
11 |
155 |
33689600 |
|
|
130567822 |
PipelinePunch |
A |
Oct. 2, 2021, 1:50 p.m. |
OK |
GNU C++17 |
TESTS |
11 |
108 |
12697600 |
|
|
130573283 |
clueless100 |
A |
Oct. 2, 2021, 2:42 p.m. |
OK |
GNU C++17 |
TESTS |
11 |
109 |
6656000 |
|
|
130576940 |
limage ShJ armoking |
A |
Oct. 2, 2021, 3:20 p.m. |
OK |
GNU C++17 |
TESTS |
11 |
124 |
6553600 |
|
|
130566840 |
Froopie LLG |
A |
Oct. 2, 2021, 1:41 p.m. |
OK |
GNU C++17 |
TESTS |
11 |
124 |
10342400 |
|
|
130578107 |
sharad_sharma |
A |
Oct. 2, 2021, 3:33 p.m. |
OK |
GNU C++17 |
TESTS |
11 |
124 |
11059200 |
|
|
130566834 |
Lemonade255 dtc03012 pser |
A |
Oct. 2, 2021, 1:41 p.m. |
OK |
GNU C++17 |
TESTS |
11 |
124 |
33689600 |
|
|
130576424 |
SSLios2-3 tamthegod |
A |
Oct. 2, 2021, 3:14 p.m. |
OK |
GNU C++17 |
TESTS |
11 |
124 |
33792000 |
|
|
130571373 |
alexanderanchishkin Kian_1t AERIA1 |
A |
Oct. 2, 2021, 2:24 p.m. |
OK |
GNU C++17 |
TESTS |
11 |
124 |
37785600 |
|
|
130570378 |
AU_742 rahulagr172018 chef_of_mint |
A |
Oct. 2, 2021, 2:14 p.m. |
OK |
GNU C++17 |
TESTS |
11 |
139 |
6553600 |
|
|
130566949 |
krishna_0_9 Lain AdiAnand |
A |
Oct. 2, 2021, 1:42 p.m. |
OK |
GNU C++17 |
TESTS |
11 |
139 |
6553600 |
|
|
130566599 |
risujiroh |
A |
Oct. 2, 2021, 1:38 p.m. |
OK |
GNU C++17 (64) |
TESTS |
11 |
77 |
9420800 |
|
|
130567127 |
Tomx heon |
A |
Oct. 2, 2021, 1:44 p.m. |
OK |
GNU C++17 (64) |
TESTS |
11 |
77 |
13516800 |
|
|
130578318 |
CodingKnight |
A |
Oct. 2, 2021, 3:35 p.m. |
OK |
GNU C++17 (64) |
TESTS |
11 |
93 |
8499200 |
|
|
130567075 |
udon1206 |
A |
Oct. 2, 2021, 1:43 p.m. |
OK |
GNU C++17 (64) |
TESTS |
11 |
93 |
8499200 |
|
|
130567605 |
DenOMINATOR rivalq _runtimeTerror_ |
A |
Oct. 2, 2021, 1:48 p.m. |
OK |
GNU C++17 (64) |
TESTS |
11 |
93 |
9420800 |
|
|
130568635 |
.-O_O-. shashankagrawal |
A |
Oct. 2, 2021, 1:58 p.m. |
OK |
GNU C++17 (64) |
TESTS |
11 |
93 |
13721600 |
|
|
130568359 |
grapo_Oranges |
A |
Oct. 2, 2021, 1:56 p.m. |
OK |
GNU C++17 (64) |
TESTS |
11 |
108 |
9420800 |
|
|
130586902 |
shivangtiwari |
A |
Oct. 2, 2021, 5:22 p.m. |
OK |
GNU C++17 (64) |
TESTS |
11 |
108 |
9420800 |
|
|
130567487 |
HimanshuG hackcyborg darklight13 |
A |
Oct. 2, 2021, 1:47 p.m. |
OK |
GNU C++17 (64) |
TESTS |
11 |
108 |
9420800 |
|
|
130573222 |
Ibajaj01 majdmarie MazenBatrawi |
A |
Oct. 2, 2021, 2:42 p.m. |
OK |
GNU C++17 (64) |
TESTS |
11 |
108 |
10342400 |
|
|
130568233 |
clyring |
A |
Oct. 2, 2021, 1:54 p.m. |
OK |
Haskell |
TESTS |
11 |
389 |
68300800 |
|
|
130596308 |
smahajan54842 |
A |
Oct. 2, 2021, 7:51 p.m. |
OK |
Java 11 |
TESTS |
11 |
420 |
38502400 |
|
|
130567273 |
its_aks_ulure |
A |
Oct. 2, 2021, 1:45 p.m. |
OK |
Java 11 |
TESTS |
11 |
592 |
41164800 |
|
|
130574668 |
Matheolympiade |
A |
Oct. 2, 2021, 2:56 p.m. |
OK |
Java 11 |
TESTS |
11 |
1029 |
74649600 |
|
|
130568161 |
_merlin_ |
A |
Oct. 2, 2021, 1:53 p.m. |
OK |
Java 11 |
TESTS |
11 |
1325 |
283750400 |
|
|
130585130 |
hugilogic vrudolf.vr Bergrei |
A |
Oct. 2, 2021, 4:59 p.m. |
OK |
Java 11 |
TESTS |
11 |
1778 |
42700800 |
|
|
130615593 |
Lelouch_12 |
A |
Oct. 3, 2021, 5:08 a.m. |
OK |
Java 8 |
TESTS |
11 |
545 |
53145600 |
|
|
130566839 |
sajibcuet09 |
A |
Oct. 2, 2021, 1:41 p.m. |
OK |
Java 8 |
TESTS |
11 |
561 |
37683200 |
|
|
130571751 |
trisha7 |
A |
Oct. 2, 2021, 2:27 p.m. |
OK |
Java 8 |
TESTS |
11 |
1200 |
21094400 |
|
|
130574958 |
karloti |
A |
Oct. 2, 2021, 2:59 p.m. |
OK |
Kotlin 1.5 |
TESTS |
11 |
655 |
61440000 |
|
|
130575185 |
procrastinate7 |
A |
Oct. 2, 2021, 3:01 p.m. |
OK |
Kotlin 1.5 |
TESTS |
11 |
1309 |
27648000 |
|
|
130569121 |
okey001 |
A |
Oct. 2, 2021, 2:03 p.m. |
OK |
MS C++ 2017 |
TESTS |
11 |
187 |
18329600 |
|
|
130567328 |
ryuflower hoxymola-_- |
A |
Oct. 2, 2021, 1:45 p.m. |
OK |
MS C++ 2017 |
TESTS |
11 |
327 |
10240000 |
|
|
130567536 |
UnHingedFrog |
A |
Oct. 2, 2021, 1:47 p.m. |
OK |
MS C++ 2017 |
TESTS |
11 |
327 |
18739200 |
|
|
130589625 |
bugagashechka78 Nobdefender romanov.pd |
A |
Oct. 2, 2021, 6 p.m. |
OK |
MS C++ 2017 |
TESTS |
11 |
343 |
7475200 |
|
|
130574593 |
Alenochka sergeyp767 Vsein |
A |
Oct. 2, 2021, 2:55 p.m. |
OK |
MS C++ 2017 |
TESTS |
11 |
373 |
33382400 |
|
|
130575315 |
Alenochka sergeyp767 Vsein |
A |
Oct. 2, 2021, 3:03 p.m. |
OK |
MS C++ 2017 |
TESTS |
11 |
436 |
10342400 |
|
|
130568322 |
Aeros_CodeForces yaroslavplay reosfire |
A |
Oct. 2, 2021, 1:55 p.m. |
OK |
.NET Core C# |
TESTS |
11 |
249 |
27033600 |
|
|
130605178 |
hxu10 |
A |
Oct. 2, 2021, 11:59 p.m. |
OK |
PyPy 3 |
TESTS |
11 |
1138 |
44748800 |
|
|
130618079 |
raidevashish |
A |
Oct. 3, 2021, 5:52 a.m. |
OK |
PyPy 3 |
TESTS |
11 |
1263 |
51200000 |
|
|
130580976 |
Het_Fadia |
A |
Oct. 2, 2021, 4:05 p.m. |
OK |
PyPy 3 |
TESTS |
11 |
1278 |
47820800 |
|
|
130580622 |
Het_Fadia |
A |
Oct. 2, 2021, 4:01 p.m. |
OK |
PyPy 3 |
TESTS |
11 |
1279 |
48128000 |
|
|
130580501 |
Het_Fadia |
A |
Oct. 2, 2021, 4 p.m. |
OK |
PyPy 3 |
TESTS |
11 |
1450 |
51097600 |
|
|
130615517 |
polingram |
A |
Oct. 3, 2021, 5:06 a.m. |
OK |
PyPy 3 |
TESTS |
11 |
1496 |
100659200 |
|
|
130580592 |
Het_Fadia |
A |
Oct. 2, 2021, 4:01 p.m. |
OK |
PyPy 3 |
TESTS |
11 |
1528 |
50790400 |
|
|
130566649 |
Programmerryoki |
A |
Oct. 2, 2021, 1:39 p.m. |
OK |
PyPy 3 |
TESTS |
11 |
1543 |
71065600 |
|
|
130568456 |
manish.17 |
A |
Oct. 2, 2021, 1:57 p.m. |
OK |
PyPy 3 |
TESTS |
11 |
1871 |
44953600 |
|
|
130587277 |
psychocarmen fusiled |
A |
Oct. 2, 2021, 5:28 p.m. |
OK |
PyPy 3 |
TESTS |
11 |
1965 |
48537600 |
|
|
130584451 |
Kaatil |
A |
Oct. 2, 2021, 4:50 p.m. |
OK |
Python 3 |
TESTS |
11 |
873 |
21504000 |
|
|
130603467 |
fake_id34k |
A |
Oct. 2, 2021, 10:46 p.m. |
OK |
Python 3 |
TESTS |
11 |
951 |
22528000 |
|
|
130581207 |
Kaatil |
A |
Oct. 2, 2021, 4:08 p.m. |
OK |
Python 3 |
TESTS |
11 |
1029 |
21504000 |
|
|
130602869 |
derghost |
A |
Oct. 2, 2021, 10:25 p.m. |
OK |
Python 3 |
TESTS |
11 |
1138 |
20275200 |
|
|
130580717 |
Het_Fadia |
A |
Oct. 2, 2021, 4:02 p.m. |
OK |
Python 3 |
TESTS |
11 |
1575 |
28569600 |
|
|
130580802 |
Het_Fadia |
A |
Oct. 2, 2021, 4:03 p.m. |
OK |
Python 3 |
TESTS |
11 |
1575 |
32256000 |
|
|
130567999 |
1_1_1 |
A |
Oct. 2, 2021, 1:52 p.m. |
OK |
Python 3 |
TESTS |
11 |
1575 |
38297600 |
|
|
130568744 |
sheyn-v |
A |
Oct. 2, 2021, 1:59 p.m. |
OK |
Python 3 |
TESTS |
11 |
1669 |
37888000 |
|
|
130567100 |
Spheniscine |
A |
Oct. 2, 2021, 1:43 p.m. |
OK |
Rust |
TESTS |
11 |
171 |
15052800 |
|
|
130571232 |
kobae964 |
A |
Oct. 2, 2021, 2:23 p.m. |
OK |
Rust |
TESTS |
11 |
218 |
22630400 |
|
|
130566565 |
sansen |
A |
Oct. 2, 2021, 1:38 p.m. |
OK |
Rust |
TESTS |
11 |
249 |
21504000 |
|
|
remove filters
Back to search problems