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'The Berland language consists of words having exactly two letters. Moreover, the first letter of a word is different from the second letter. Any combination of two different Berland letters (which, by the way, are the same as the lowercase letters of Latin alphabet) is a correct word in Berland language. The Berland dictionary contains all words of this language. The words are listed in a way they are usually ordered in dictionaries. Formally, word a comes earlier than word b in the dictionary if one of the following conditions hold: So, the dictionary looks like that: You are given a word s from the Berland language. Your task is to find its index in the dictionary. The first line contains one integer t ( 1 <= t <= 650 ) -- the number of test cases. Each test case consists of one line containing s -- a string consisting of exactly two different lowercase Latin letters (i. xe2 x80 x89e. a correct word of the Berland language). For each test case, print one integer -- the index of the word s in the dictionary. '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
155809652 |
hind_1 |
B |
May 4, 2022, 3:54 a.m. |
OK |
Clang++17 Diagnostics |
TESTS |
2 |
30 |
0 |
|
|
155769508 |
vjudge4 |
B |
May 3, 2022, 1:30 p.m. |
OK |
Clang++17 Diagnostics |
TESTS |
2 |
31 |
0 |
|
|
155778615 |
nikoebanoidze |
B |
May 3, 2022, 3:27 p.m. |
OK |
Clang++17 Diagnostics |
TESTS |
2 |
31 |
0 |
|
|
155740671 |
Akanta |
B |
May 3, 2022, 8:51 a.m. |
OK |
GNU C11 |
TESTS |
2 |
0 |
0 |
|
|
155781298 |
Adnan1729 |
B |
May 3, 2022, 4:02 p.m. |
OK |
GNU C11 |
TESTS |
2 |
0 |
0 |
|
|
155751346 |
d19amine |
B |
May 3, 2022, 10:48 a.m. |
OK |
GNU C11 |
TESTS |
2 |
15 |
0 |
|
|
155752782 |
gouravjangid50 |
B |
May 3, 2022, 11:02 a.m. |
OK |
GNU C11 |
TESTS |
2 |
15 |
0 |
|
|
155780503 |
Kiteretsuu |
B |
May 3, 2022, 3:52 p.m. |
OK |
GNU C11 |
TESTS |
2 |
15 |
0 |
|
|
155765625 |
NixonDebAntu |
B |
May 3, 2022, 1:21 p.m. |
OK |
GNU C11 |
TESTS |
2 |
15 |
0 |
|
|
155748390 |
GsquareT |
B |
May 3, 2022, 10:15 a.m. |
OK |
GNU C11 |
TESTS |
2 |
15 |
0 |
|
|
155786713 |
triedbest |
B |
May 3, 2022, 5:24 p.m. |
OK |
GNU C11 |
TESTS |
2 |
15 |
0 |
|
|
155793489 |
paul69 |
B |
May 3, 2022, 7:26 p.m. |
OK |
GNU C11 |
TESTS |
2 |
15 |
0 |
|
|
155797683 |
turjotasin |
B |
May 3, 2022, 9:18 p.m. |
OK |
GNU C11 |
TESTS |
2 |
15 |
0 |
|
|
155810795 |
kingsahil260701 |
B |
May 4, 2022, 4:28 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
0 |
0 |
|
|
155810624 |
Tanya162 |
B |
May 4, 2022, 4:22 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
0 |
0 |
|
|
155809366 |
LetMeSeeTheCode |
B |
May 4, 2022, 3:47 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
0 |
0 |
|
|
155807702 |
2021YM_HUNNU |
B |
May 4, 2022, 3:03 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
0 |
0 |
|
|
155806543 |
lzj181134 |
B |
May 4, 2022, 2:33 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
0 |
0 |
|
|
155814392 |
tzy_tmy |
B |
May 4, 2022, 5:37 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
0 |
0 |
|
|
155813177 |
samratdewdrops0 |
B |
May 4, 2022, 5:15 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
0 |
0 |
|
|
155812422 |
luogu_bot5 |
B |
May 4, 2022, 5:02 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
0 |
0 |
|
|
155811752 |
Mercy32101117 |
B |
May 4, 2022, 4:50 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
0 |
0 |
|
|
155811292 |
SegFaultError |
B |
May 4, 2022, 4:40 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
0 |
0 |
|
|
155810574 |
VaibhavRK |
B |
May 4, 2022, 4:21 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
155813817 |
Akasharif |
B |
May 4, 2022, 5:27 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
155814280 |
csasd555666 |
B |
May 4, 2022, 5:35 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
155814293 |
Tanvir_Ahmed_Khan |
B |
May 4, 2022, 5:35 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
155815489 |
D336 |
B |
May 4, 2022, 5:56 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
155813445 |
i_am_karan |
B |
May 4, 2022, 5:20 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
155812115 |
Jaqen_H_Ghar |
B |
May 4, 2022, 4:56 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
155812060 |
tarunbhandari825 |
B |
May 4, 2022, 4:56 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
155811684 |
SahilS |
B |
May 4, 2022, 4:48 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
155811445 |
justhuy |
B |
May 4, 2022, 4:43 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
155807275 |
Nanako |
B |
May 4, 2022, 2:51 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
0 |
0 |
|
|
155813328 |
mrbrown |
B |
May 4, 2022, 5:18 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
0 |
0 |
|
|
155810861 |
achhadahappy |
B |
May 4, 2022, 4:30 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
0 |
0 |
|
|
155810730 |
zlc1114 |
B |
May 4, 2022, 4:26 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
0 |
0 |
|
|
155810357 |
2-qiym |
B |
May 4, 2022, 4:14 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
0 |
0 |
|
|
155805712 |
Feintl |
B |
May 4, 2022, 2:10 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
0 |
0 |
|
|
155803674 |
Mikkely |
B |
May 4, 2022, 1:06 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
0 |
0 |
|
|
155790602 |
yuviabhi00 |
B |
May 3, 2022, 6:28 p.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
0 |
0 |
|
|
155788041 |
pd_codes |
B |
May 3, 2022, 5:47 p.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
0 |
0 |
|
|
155786310 |
mbdbr |
B |
May 3, 2022, 5:17 p.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
0 |
0 |
|
|
155800491 |
defaultedplayer |
B |
May 3, 2022, 10:54 p.m. |
OK |
GNU C++20 (64) |
TESTS |
2 |
0 |
0 |
|
|
155802822 |
moghit_ad |
B |
May 4, 2022, 12:33 a.m. |
OK |
GNU C++20 (64) |
TESTS |
2 |
0 |
0 |
|
|
155803232 |
wwwk |
B |
May 4, 2022, 12:49 a.m. |
OK |
GNU C++20 (64) |
TESTS |
2 |
0 |
0 |
|
|
155805158 |
h_rains |
B |
May 4, 2022, 1:55 a.m. |
OK |
GNU C++20 (64) |
TESTS |
2 |
0 |
0 |
|
|
155809154 |
Sarower_Rafin |
B |
May 4, 2022, 3:42 a.m. |
OK |
GNU C++20 (64) |
TESTS |
2 |
0 |
0 |
|
|
155810157 |
abhinav_20 |
B |
May 4, 2022, 4:09 a.m. |
OK |
GNU C++20 (64) |
TESTS |
2 |
0 |
0 |
|
|
155811128 |
superyangyx |
B |
May 4, 2022, 4:36 a.m. |
OK |
GNU C++20 (64) |
TESTS |
2 |
0 |
0 |
|
|
155811578 |
viyangjain |
B |
May 4, 2022, 4:46 a.m. |
OK |
GNU C++20 (64) |
TESTS |
2 |
0 |
0 |
|
|
155815362 |
sathu.hebbar |
B |
May 4, 2022, 5:54 a.m. |
OK |
GNU C++20 (64) |
TESTS |
2 |
0 |
0 |
|
|
155815579 |
modiii |
B |
May 4, 2022, 5:58 a.m. |
OK |
GNU C++20 (64) |
TESTS |
2 |
0 |
0 |
|
|
155752097 |
Sempr |
B |
May 3, 2022, 10:56 a.m. |
OK |
Go |
TESTS |
2 |
15 |
102400 |
|
|
155741026 |
AM03_00 |
B |
May 3, 2022, 8:55 a.m. |
OK |
Go |
TESTS |
2 |
31 |
102400 |
|
|
155778729 |
sharnit |
B |
May 3, 2022, 3:29 p.m. |
OK |
Java 11 |
TESTS |
2 |
139 |
0 |
|
|
155772155 |
yadatisaiviswas3 |
B |
May 3, 2022, 2:03 p.m. |
OK |
Java 11 |
TESTS |
2 |
155 |
0 |
|
|
155814577 |
parascoding |
B |
May 4, 2022, 5:40 a.m. |
OK |
Java 11 |
TESTS |
2 |
155 |
0 |
|
|
155780879 |
ayush__1411 |
B |
May 3, 2022, 3:57 p.m. |
OK |
Java 11 |
TESTS |
2 |
155 |
0 |
|
|
155773157 |
akashkumarkly |
B |
May 3, 2022, 2:15 p.m. |
OK |
Java 11 |
TESTS |
2 |
155 |
0 |
|
|
155763157 |
zenilharia26 |
B |
May 3, 2022, 12:54 p.m. |
OK |
Java 11 |
TESTS |
2 |
155 |
0 |
|
|
155733664 |
swarup_312 |
B |
May 3, 2022, 7:26 a.m. |
OK |
Java 11 |
TESTS |
2 |
155 |
0 |
|
|
155731415 |
Aman_dixit |
B |
May 3, 2022, 6:59 a.m. |
OK |
Java 11 |
TESTS |
2 |
156 |
15564800 |
|
|
155789757 |
2020B0121084 |
B |
May 3, 2022, 6:14 p.m. |
OK |
Java 11 |
TESTS |
2 |
170 |
0 |
|
|
155779696 |
gaju321 |
B |
May 3, 2022, 3:42 p.m. |
OK |
Java 11 |
TESTS |
2 |
170 |
0 |
|
|
155799835 |
Sussykin |
B |
May 3, 2022, 10:30 p.m. |
OK |
Java 8 |
TESTS |
2 |
62 |
0 |
|
|
155745899 |
CecilioG |
B |
May 3, 2022, 9:47 a.m. |
OK |
Java 8 |
TESTS |
2 |
77 |
0 |
|
|
155737709 |
pandeyjii_11 |
B |
May 3, 2022, 8:17 a.m. |
OK |
Java 8 |
TESTS |
2 |
77 |
0 |
|
|
155729085 |
ButterChickenn |
B |
May 3, 2022, 6:30 a.m. |
OK |
Java 8 |
TESTS |
2 |
77 |
0 |
|
|
155794367 |
Shemo |
B |
May 3, 2022, 7:47 p.m. |
OK |
Java 8 |
TESTS |
2 |
77 |
0 |
|
|
155789290 |
Yehia8 |
B |
May 3, 2022, 6:06 p.m. |
OK |
Java 8 |
TESTS |
2 |
77 |
0 |
|
|
155750401 |
Zicode |
B |
May 3, 2022, 10:37 a.m. |
OK |
Java 8 |
TESTS |
2 |
77 |
0 |
|
|
155778666 |
srvptk97 |
B |
May 3, 2022, 3:28 p.m. |
OK |
Java 8 |
TESTS |
2 |
78 |
0 |
|
|
155755660 |
less_ordinary |
B |
May 3, 2022, 11:33 a.m. |
OK |
Java 8 |
TESTS |
2 |
93 |
0 |
|
|
155753217 |
Mrbadguy10 |
B |
May 3, 2022, 11:07 a.m. |
OK |
Java 8 |
TESTS |
2 |
93 |
0 |
|
|
155751873 |
cas_ZhangLing |
B |
May 3, 2022, 10:53 a.m. |
OK |
Kotlin 1.4 |
TESTS |
2 |
124 |
0 |
|
|
155759404 |
helicopterqqq |
B |
May 3, 2022, 12:12 p.m. |
OK |
Kotlin 1.6 |
TESTS |
2 |
187 |
0 |
|
|
155774683 |
GandyA23 |
B |
May 3, 2022, 2:34 p.m. |
OK |
Kotlin 1.6 |
TESTS |
2 |
202 |
0 |
|
|
155759594 |
darkl0rd |
B |
May 3, 2022, 12:14 p.m. |
OK |
Kotlin 1.6 |
TESTS |
2 |
233 |
0 |
|
|
155754704 |
Jenshen |
B |
May 3, 2022, 11:22 a.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
0 |
0 |
|
|
155806847 |
emailam |
B |
May 4, 2022, 2:41 a.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
0 |
0 |
|
|
155787191 |
Hachapuri |
B |
May 3, 2022, 5:32 p.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
0 |
0 |
|
|
155775980 |
Jz_615 |
B |
May 3, 2022, 2:52 p.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
0 |
0 |
|
|
155775532 |
BIvanV |
B |
May 3, 2022, 2:46 p.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
0 |
0 |
|
|
155772242 |
vjudge4 |
B |
May 3, 2022, 2:04 p.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
0 |
0 |
|
|
155764282 |
PRO_A |
B |
May 3, 2022, 1:06 p.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
0 |
0 |
|
|
155762847 |
st20240413 |
B |
May 3, 2022, 12:51 p.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
0 |
0 |
|
|
155758700 |
IlyinAD |
B |
May 3, 2022, 12:04 p.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
0 |
0 |
|
|
155743421 |
haze123 |
B |
May 3, 2022, 9:20 a.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
0 |
0 |
|
|
155737077 |
tabibi |
B |
May 3, 2022, 8:11 a.m. |
OK |
.NET Core C# |
TESTS |
2 |
62 |
0 |
|
|
155762908 |
n.n.n.kz |
B |
May 3, 2022, 12:52 p.m. |
OK |
PHP |
TESTS |
2 |
15 |
0 |
|
|
155779832 |
Code_100 |
B |
May 3, 2022, 3:43 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
62 |
0 |
|
|
155812832 |
abhijeet.panihar.cse20 |
B |
May 4, 2022, 5:08 a.m. |
OK |
PyPy 3 |
TESTS |
2 |
77 |
2252800 |
|
|
155730519 |
Adolf988 |
B |
May 3, 2022, 6:48 a.m. |
OK |
PyPy 3 |
TESTS |
2 |
93 |
2048000 |
|
|
155780871 |
dimasik06 |
B |
May 3, 2022, 3:57 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
93 |
2150400 |
|
|
155759931 |
Devoid |
B |
May 3, 2022, 12:18 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
93 |
2150400 |
|
|
155786759 |
saisanjith |
B |
May 3, 2022, 5:25 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
108 |
2560000 |
|
|
155755884 |
MohammadsadraSedighin |
B |
May 3, 2022, 11:35 a.m. |
OK |
PyPy 3 |
TESTS |
2 |
124 |
2150400 |
|
|
155728848 |
random__person |
B |
May 3, 2022, 6:26 a.m. |
OK |
PyPy 3 |
TESTS |
2 |
171 |
5222400 |
|
|
155792561 |
MashaM |
B |
May 3, 2022, 7:05 p.m. |
OK |
PyPy 3-64 |
TESTS |
2 |
31 |
614400 |
|
|
155781643 |
nealzane |
B |
May 3, 2022, 4:07 p.m. |
OK |
PyPy 3-64 |
TESTS |
2 |
46 |
614400 |
|
|
155764378 |
cholebhature |
B |
May 3, 2022, 1:07 p.m. |
OK |
PyPy 3-64 |
TESTS |
2 |
61 |
3072000 |
|
|
155765550 |
PHNPR |
B |
May 3, 2022, 1:20 p.m. |
OK |
PyPy 3-64 |
TESTS |
2 |
61 |
3174400 |
|
|
155762227 |
aroy82 |
B |
May 3, 2022, 12:44 p.m. |
OK |
PyPy 3-64 |
TESTS |
2 |
62 |
2969600 |
|
|
155738563 |
HurricaneCoder |
B |
May 3, 2022, 8:28 a.m. |
OK |
PyPy 3-64 |
TESTS |
2 |
62 |
3174400 |
|
|
155732164 |
abhaumik24 |
B |
May 3, 2022, 7:07 a.m. |
OK |
PyPy 3-64 |
TESTS |
2 |
62 |
19763200 |
|
|
155793079 |
Slaur |
B |
May 3, 2022, 7:16 p.m. |
OK |
PyPy 3-64 |
TESTS |
2 |
77 |
2969600 |
|
|
155794091 |
sanskarchandra26 |
B |
May 3, 2022, 7:40 p.m. |
OK |
PyPy 3-64 |
TESTS |
2 |
77 |
3072000 |
|
|
155781198 |
WoodMachine |
B |
May 3, 2022, 4:01 p.m. |
OK |
PyPy 3-64 |
TESTS |
2 |
77 |
3072000 |
|
|
155792088 |
SiKey25 |
B |
May 3, 2022, 6:56 p.m. |
OK |
Python 3 |
TESTS |
2 |
15 |
0 |
|
|
155812761 |
rajeshgudikandula2772 |
B |
May 4, 2022, 5:07 a.m. |
OK |
Python 3 |
TESTS |
2 |
30 |
0 |
|
|
155799542 |
niteshmishra575 |
B |
May 3, 2022, 10:17 p.m. |
OK |
Python 3 |
TESTS |
2 |
30 |
0 |
|
|
155777042 |
mohamed20ayoub20 |
B |
May 3, 2022, 3:06 p.m. |
OK |
Python 3 |
TESTS |
2 |
30 |
0 |
|
|
155775385 |
PMiguelez |
B |
May 3, 2022, 2:44 p.m. |
OK |
Python 3 |
TESTS |
2 |
30 |
0 |
|
|
155774923 |
pedroslrey |
B |
May 3, 2022, 2:38 p.m. |
OK |
Python 3 |
TESTS |
2 |
30 |
0 |
|
|
155769644 |
ktsrivastava29 |
B |
May 3, 2022, 1:32 p.m. |
OK |
Python 3 |
TESTS |
2 |
30 |
0 |
|
|
155763667 |
AdVeino |
B |
May 3, 2022, 12:59 p.m. |
OK |
Python 3 |
TESTS |
2 |
30 |
0 |
|
|
155750265 |
whoKnoww |
B |
May 3, 2022, 10:35 a.m. |
OK |
Python 3 |
TESTS |
2 |
30 |
0 |
|
|
155732134 |
naveenkumar95187 |
B |
May 3, 2022, 7:07 a.m. |
OK |
Python 3 |
TESTS |
2 |
30 |
0 |
|
|
155802103 |
dorakueyon |
B |
May 4, 2022, 12:04 a.m. |
OK |
Rust 2021 |
TESTS |
2 |
15 |
512000 |
|
|
155802415 |
dorakueyon |
B |
May 4, 2022, 12:17 a.m. |
OK |
Rust 2021 |
TESTS |
2 |
15 |
512000 |
|
|
remove filters
Back to search problems