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'Nikita had a word consisting of exactly 3 lowercase Latin letters. The letters in the Latin alphabet are numbered from 1 to 26 , where the letter "a" has the index 1 , and the letter "z" has the index 26 . He encoded this word as the sum of the positions of all the characters in the alphabet. For example, the word "cat" he would encode as the integer 3 + 1 + 20 = 24 , because the letter "c" has the index 3 in the alphabet, the letter "a" has the index 1 , and the letter "t" has the index 20 . However, this encoding turned out to be ambiguous! For example, when encoding the word "ava", the integer 1 + 22 + 1 = 24 is also obtained. Determine the lexicographically smallest word of 3 letters that could have been encoded. A string a is lexicographically smaller than a string b if and only if one of the following holds: The first line of the input contains a single integer t ( 1 <= t <= 100 ) -- the number of test cases in the test. This is followed by the descriptions of the test cases. The first and only line of each test case contains an integer n ( 3 <= n <= 78 ) -- the encoded word. For each test case, output the lexicographically smallest three-letter word that could have been encoded on a separate line. '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
246294341 |
bluemegane |
A |
Feb. 13, 2024, 10:50 p.m. |
OK |
C# 8 |
TESTS |
3 |
93 |
102400 |
|
|
246257556 |
22wh5a0216 |
A |
Feb. 13, 2024, 4:59 p.m. |
OK |
Clang++17 Diagnostics |
TESTS |
3 |
15 |
0 |
|
|
246309425 |
tretrauso1vien |
A |
Feb. 14, 2024, 4:30 a.m. |
OK |
Clang++17 Diagnostics |
TESTS |
3 |
31 |
0 |
|
|
246260960 |
sonisaurabh2023 |
A |
Feb. 13, 2024, 5:13 p.m. |
OK |
Clang++17 Diagnostics |
TESTS |
3 |
31 |
0 |
|
|
246298724 |
Jethalal.Gada |
A |
Feb. 14, 2024, 12:47 a.m. |
OK |
Clang++20 Diagnostics |
TESTS |
3 |
31 |
0 |
|
|
246271139 |
Tom2196 |
A |
Feb. 13, 2024, 6:16 p.m. |
OK |
Clang++20 Diagnostics |
TESTS |
3 |
46 |
0 |
|
|
246302689 |
ZZM20090729 |
A |
Feb. 14, 2024, 2:32 a.m. |
OK |
Clang++20 Diagnostics |
TESTS |
3 |
46 |
0 |
|
|
246277845 |
jahid4152 |
A |
Feb. 13, 2024, 7:12 p.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
0 |
|
|
246259245 |
kandrenavadeep |
A |
Feb. 13, 2024, 5:06 p.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
0 |
|
|
246297096 |
Turtle_0 |
A |
Feb. 13, 2024, 11:58 p.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
204800 |
|
|
246274470 |
DarkWillow |
A |
Feb. 13, 2024, 6:41 p.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
307200 |
|
|
246270502 |
95062anas |
A |
Feb. 13, 2024, 6:11 p.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
307200 |
|
|
246269202 |
mh_sakal |
A |
Feb. 13, 2024, 6:02 p.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
307200 |
|
|
246316206 |
iffsal |
A |
Feb. 14, 2024, 5:55 a.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
307200 |
|
|
246313389 |
shawkisamiha |
A |
Feb. 14, 2024, 5:22 a.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
307200 |
|
|
246295891 |
ashab.tanim |
A |
Feb. 13, 2024, 11:28 p.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
307200 |
|
|
246274980 |
realanonymusic |
A |
Feb. 13, 2024, 6:46 p.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
307200 |
|
|
246315916 |
Kaushal_4002 |
A |
Feb. 14, 2024, 5:52 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
246315781 |
JCrossover_14 |
A |
Feb. 14, 2024, 5:50 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
246314848 |
LeNamLong |
A |
Feb. 14, 2024, 5:40 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
246314777 |
JoseJovian |
A |
Feb. 14, 2024, 5:39 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
246314650 |
Isakovich22 |
A |
Feb. 14, 2024, 5:37 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
246314557 |
The_White |
A |
Feb. 14, 2024, 5:36 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
246314527 |
Neyamul_Haq |
A |
Feb. 14, 2024, 5:36 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
246314514 |
lucky10000 |
A |
Feb. 14, 2024, 5:36 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
246316713 |
SIDDhesh_510 |
A |
Feb. 14, 2024, 6 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
246316576 |
Diptesh1729 |
A |
Feb. 14, 2024, 5:59 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
246312897 |
Lemon_zqp |
A |
Feb. 14, 2024, 5:16 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
246313376 |
ntxyl |
A |
Feb. 14, 2024, 5:21 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
246313782 |
Lemon_zqp |
A |
Feb. 14, 2024, 5:26 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
246314470 |
July.19th |
A |
Feb. 14, 2024, 5:35 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
246314715 |
Njaso |
A |
Feb. 14, 2024, 5:38 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
246315796 |
lonelywolf. |
A |
Feb. 14, 2024, 5:51 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
246315882 |
NJX4122 |
A |
Feb. 14, 2024, 5:52 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
246316709 |
233zhang |
A |
Feb. 14, 2024, 6 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
246312826 |
VitrelosTia |
A |
Feb. 14, 2024, 5:15 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
246312460 |
Lemon_zqp |
A |
Feb. 14, 2024, 5:10 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
246315155 |
T.H_36 |
A |
Feb. 14, 2024, 5:43 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
246316716 |
n1cknamezz |
A |
Feb. 14, 2024, 6 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
246316432 |
jayant_hotwani |
A |
Feb. 14, 2024, 5:57 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
246316209 |
PriyanshuThakkar |
A |
Feb. 14, 2024, 5:55 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
246315698 |
thats_nayan71 |
A |
Feb. 14, 2024, 5:50 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
246315558 |
SYED_2025 |
A |
Feb. 14, 2024, 5:48 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
246315257 |
AssCumDoor |
A |
Feb. 14, 2024, 5:45 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
246315107 |
shelby70 |
A |
Feb. 14, 2024, 5:43 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
246315074 |
mgkeazy |
A |
Feb. 14, 2024, 5:42 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
246314993 |
varun_p81 |
A |
Feb. 14, 2024, 5:42 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
246311124 |
anand_mishra_ |
A |
Feb. 14, 2024, 4:54 a.m. |
OK |
Java 21 |
TESTS |
3 |
170 |
0 |
|
|
246274394 |
dzhi |
A |
Feb. 13, 2024, 6:41 p.m. |
OK |
Java 21 |
TESTS |
3 |
186 |
0 |
|
|
246296370 |
Eren-Yeager |
A |
Feb. 13, 2024, 11:40 p.m. |
OK |
Java 21 |
TESTS |
3 |
202 |
0 |
|
|
246294900 |
DriveLilah |
A |
Feb. 13, 2024, 11:03 p.m. |
OK |
Java 21 |
TESTS |
3 |
202 |
0 |
|
|
246270592 |
Last-Huntsman |
A |
Feb. 13, 2024, 6:12 p.m. |
OK |
Java 21 |
TESTS |
3 |
202 |
0 |
|
|
246268811 |
Nagendravarma |
A |
Feb. 13, 2024, 5:59 p.m. |
OK |
Java 21 |
TESTS |
3 |
202 |
0 |
|
|
246287786 |
dawn_raja |
A |
Feb. 13, 2024, 8:57 p.m. |
OK |
Java 21 |
TESTS |
3 |
202 |
409600 |
|
|
246258701 |
mehalpandkar |
A |
Feb. 13, 2024, 5:04 p.m. |
OK |
Java 21 |
TESTS |
3 |
217 |
0 |
|
|
246275860 |
A4CODING |
A |
Feb. 13, 2024, 6:54 p.m. |
OK |
Java 21 |
TESTS |
3 |
217 |
0 |
|
|
246278816 |
neerajg9548 |
A |
Feb. 13, 2024, 7:21 p.m. |
OK |
Java 21 |
TESTS |
3 |
217 |
102400 |
|
|
246299076 |
soulnote |
A |
Feb. 14, 2024, 12:57 a.m. |
OK |
Java 8 |
TESTS |
3 |
78 |
0 |
|
|
246278395 |
Indrajit |
A |
Feb. 13, 2024, 7:17 p.m. |
OK |
Java 8 |
TESTS |
3 |
92 |
5734400 |
|
|
246300436 |
bksingh23 |
A |
Feb. 14, 2024, 1:39 a.m. |
OK |
Java 8 |
TESTS |
3 |
93 |
0 |
|
|
246299052 |
LightSheep |
A |
Feb. 14, 2024, 12:57 a.m. |
OK |
Java 8 |
TESTS |
3 |
93 |
0 |
|
|
246267689 |
pradeep_556 |
A |
Feb. 13, 2024, 5:52 p.m. |
OK |
Java 8 |
TESTS |
3 |
93 |
0 |
|
|
246264539 |
DemoralizedCarrot |
A |
Feb. 13, 2024, 5:33 p.m. |
OK |
Java 8 |
TESTS |
3 |
93 |
0 |
|
|
246304759 |
sudokiller |
A |
Feb. 14, 2024, 3:13 a.m. |
OK |
Java 8 |
TESTS |
3 |
93 |
0 |
|
|
246308868 |
joycelalalayaa |
A |
Feb. 14, 2024, 4:21 a.m. |
OK |
Java 8 |
TESTS |
3 |
93 |
0 |
|
|
246306996 |
adi3008 |
A |
Feb. 14, 2024, 3:49 a.m. |
OK |
Java 8 |
TESTS |
3 |
93 |
0 |
|
|
246304012 |
Sumitsingh7 |
A |
Feb. 14, 2024, 3 a.m. |
OK |
Java 8 |
TESTS |
3 |
93 |
5734400 |
|
|
246282261 |
kaaamKaaaam |
A |
Feb. 13, 2024, 7:53 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
0 |
0 |
|
|
246308138 |
pramochi |
A |
Feb. 14, 2024, 4:09 a.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
0 |
0 |
|
|
246277595 |
Pavly-Makram |
A |
Feb. 13, 2024, 7:10 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
0 |
0 |
|
|
246272180 |
glintcher |
A |
Feb. 13, 2024, 6:23 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
0 |
0 |
|
|
246268790 |
prakriticoder |
A |
Feb. 13, 2024, 5:59 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
0 |
0 |
|
|
246259257 |
Alexey_Gayday |
A |
Feb. 13, 2024, 5:06 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
0 |
0 |
|
|
246257977 |
anthonygordon064n4q |
A |
Feb. 13, 2024, 5:01 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
0 |
0 |
|
|
246309561 |
FInding_Errors |
A |
Feb. 14, 2024, 4:32 a.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
15 |
0 |
|
|
246294199 |
madrigal |
A |
Feb. 13, 2024, 10:47 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
15 |
0 |
|
|
246284527 |
Gadi |
A |
Feb. 13, 2024, 8:17 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
15 |
0 |
|
|
246282600 |
Ghost_1000-7 |
A |
Feb. 13, 2024, 7:57 p.m. |
OK |
PascalABC.NET |
TESTS |
3 |
124 |
0 |
|
|
246314937 |
muthm |
A |
Feb. 14, 2024, 5:41 a.m. |
OK |
Perl |
TESTS |
3 |
30 |
921600 |
|
|
246260850 |
crapcode |
A |
Feb. 13, 2024, 5:13 p.m. |
OK |
PHP |
TESTS |
3 |
31 |
0 |
|
|
246263432 |
Ronstha |
A |
Feb. 13, 2024, 5:26 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
77 |
0 |
|
|
246291993 |
xpoes |
A |
Feb. 13, 2024, 10:01 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
77 |
0 |
|
|
246277657 |
avidNerd |
A |
Feb. 13, 2024, 7:10 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
77 |
0 |
|
|
246276751 |
avidNerd |
A |
Feb. 13, 2024, 7:02 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
77 |
0 |
|
|
246262734 |
sa_06 |
A |
Feb. 13, 2024, 5:22 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
77 |
0 |
|
|
246286811 |
_oO_Oo_ |
A |
Feb. 13, 2024, 8:44 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
93 |
0 |
|
|
246268637 |
RedMinecrafter101 |
A |
Feb. 13, 2024, 5:58 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
93 |
307200 |
|
|
246299852 |
ashays |
A |
Feb. 14, 2024, 1:20 a.m. |
OK |
PyPy 3 |
TESTS |
3 |
311 |
3686400 |
|
|
246300144 |
Tinky1224 |
A |
Feb. 14, 2024, 1:29 a.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
31 |
0 |
|
|
246277789 |
jvatsal0709 |
A |
Feb. 13, 2024, 7:11 p.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
31 |
0 |
|
|
246310387 |
Is_It_Just_ME_ |
A |
Feb. 14, 2024, 4:44 a.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
46 |
0 |
|
|
246307899 |
Retereum |
A |
Feb. 14, 2024, 4:04 a.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
46 |
0 |
|
|
246302968 |
cybsbbb |
A |
Feb. 14, 2024, 2:39 a.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
46 |
0 |
|
|
246301393 |
flexyw1be |
A |
Feb. 14, 2024, 2:03 a.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
46 |
0 |
|
|
246293666 |
NitroSpear |
A |
Feb. 13, 2024, 10:36 p.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
46 |
0 |
|
|
246288849 |
RatanPrakash |
A |
Feb. 13, 2024, 9:13 p.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
46 |
0 |
|
|
246285971 |
Swam_ |
A |
Feb. 13, 2024, 8:34 p.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
46 |
0 |
|
|
246285473 |
raed.aroua |
A |
Feb. 13, 2024, 8:28 p.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
46 |
0 |
|
|
246266080 |
bdip1947 |
A |
Feb. 13, 2024, 5:42 p.m. |
OK |
Python 2 |
TESTS |
3 |
31 |
0 |
|
|
246262126 |
OLOGY |
A |
Feb. 13, 2024, 5:19 p.m. |
OK |
Python 2 |
TESTS |
3 |
31 |
0 |
|
|
246299321 |
wwgjy |
A |
Feb. 14, 2024, 1:04 a.m. |
OK |
Python 3 |
TESTS |
3 |
15 |
0 |
|
|
246278322 |
AryanGoel575 |
A |
Feb. 13, 2024, 7:16 p.m. |
OK |
Python 3 |
TESTS |
3 |
15 |
0 |
|
|
246307639 |
the_eggbeater |
A |
Feb. 14, 2024, 4 a.m. |
OK |
Python 3 |
TESTS |
3 |
30 |
0 |
|
|
246276519 |
bhupendra98 |
A |
Feb. 13, 2024, 7 p.m. |
OK |
Python 3 |
TESTS |
3 |
30 |
0 |
|
|
246276491 |
susmita_1 |
A |
Feb. 13, 2024, 7 p.m. |
OK |
Python 3 |
TESTS |
3 |
30 |
0 |
|
|
246270855 |
v_shravan |
A |
Feb. 13, 2024, 6:14 p.m. |
OK |
Python 3 |
TESTS |
3 |
30 |
0 |
|
|
246265121 |
eugalt |
A |
Feb. 13, 2024, 5:36 p.m. |
OK |
Python 3 |
TESTS |
3 |
30 |
0 |
|
|
246261583 |
javascript_enthusiast |
A |
Feb. 13, 2024, 5:16 p.m. |
OK |
Python 3 |
TESTS |
3 |
30 |
0 |
|
|
246260613 |
nk--3 |
A |
Feb. 13, 2024, 5:12 p.m. |
OK |
Python 3 |
TESTS |
3 |
30 |
0 |
|
|
246259310 |
gagan_kushwah_25 |
A |
Feb. 13, 2024, 5:06 p.m. |
OK |
Python 3 |
TESTS |
3 |
30 |
0 |
|
|
remove filters
Back to search problems