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 |
|---|---|---|---|---|---|---|
| 2087 | Kotlin Heroes: Episode 12 | FINISHED | False | 9000 | 32369123 | April 7, 2025, 2:35 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 267 ) | D | Uppercase or Lowercase? | PROGRAMMING | *special *special interactive |
This is an interactive problem. In a certain database, there are (n) handles stored in the form of a numbered list. You are interested in one specific handle (h), or more precisely, in its position in this list. You can ask the database for the position (i) from the list, and it will return the handle at the (i)-th position. All handles are non-empty strings consisting of at most (20) lowercase Latin letters, except the first one that can be either a lowercase or an uppercase Latin letter. You know that all handles are sorted in lexicographical order, but the problem is that it is unknown whether uppercase letters are considered less than lowercase ones. In other words, you do not know if it is true that all handles starting with uppercase letters come first, followed by those starting with lowercase letters — or vice versa, that all handles starting with lowercase letters come first, followed by those starting with uppercase letters. Lexicographical order is the order of standard string comparison, formally defined as follows: if strings (s) and (t) differ in some positions, the earliest of which is position (i), then string (s) comes before string (t) in lexicographical order if and only if (s_i < t_i) (for example, for the strings cats and current , the first position with different characters is (2), and the character a is less than the character u , so cats is lexicographically less than current ); if strings (s) and (t) have no positions with different characters, then the shorter one comes first. For example, the string cat comes before the string cats . Due to restricted access to the database, you can make no more than (10) queries to it. Determine the position of the handle you are interested in, knowing that it is definitely in the list. The first line contains the number (n) and the string (h) ((1 \le n \le 500)) — the total number of handles in the list and the handle you |
| 141608 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 314389274 | wifiiii | D | April 7, 2025, 3:49 p.m. | OK | Kotlin 1.7 | TESTS | 27 | 265 | 1228800 | ||
| 314387739 | UniversalAdmin | D | April 7, 2025, 3:39 p.m. | OK | Kotlin 1.7 | TESTS | 27 | 280 | 0 | ||
| 314384179 | ICareEvents | D | April 7, 2025, 3:19 p.m. | OK | Kotlin 1.7 | TESTS | 27 | 280 | 307200 | ||
| 314400325 | sonyckson | D | April 7, 2025, 5:01 p.m. | OK | Kotlin 1.7 | TESTS | 27 | 280 | 409600 | ||
| 314380649 | Ra16bit | D | April 7, 2025, 3 p.m. | OK | Kotlin 1.7 | TESTS | 27 | 280 | 409600 | ||
| 314380973 | WiwiHo | D | April 7, 2025, 3:01 p.m. | OK | Kotlin 1.7 | TESTS | 27 | 280 | 716800 | ||
| 314393096 | wizard_of_dijkstra | D | April 7, 2025, 4:14 p.m. | OK | Kotlin 1.7 | TESTS | 27 | 280 | 819200 | ||
| 314399902 | Lemi_Elias | D | April 7, 2025, 4:58 p.m. | OK | Kotlin 1.7 | TESTS | 27 | 280 | 921600 | ||
| 314398131 | Etohari | D | April 7, 2025, 4:47 p.m. | OK | Kotlin 1.7 | TESTS | 27 | 280 | 921600 | ||
| 314382135 | Storm29 | D | April 7, 2025, 3:07 p.m. | OK | Kotlin 1.7 | TESTS | 27 | 280 | 1126400 | ||
| 314382222 | __jk__ | D | April 7, 2025, 3:08 p.m. | OK | Kotlin 1.9 | TESTS | 27 | 140 | 0 | ||
| 314390148 | Algebrant | D | April 7, 2025, 3:54 p.m. | OK | Kotlin 1.9 | TESTS | 27 | 155 | 0 | ||
| 314385493 | ag551410 | D | April 7, 2025, 3:26 p.m. | OK | Kotlin 1.9 | TESTS | 27 | 155 | 0 | ||
| 314384076 | ArSarapkin | D | April 7, 2025, 3:18 p.m. | OK | Kotlin 1.9 | TESTS | 27 | 155 | 0 | ||
| 314384064 | yudedako | D | April 7, 2025, 3:18 p.m. | OK | Kotlin 1.9 | TESTS | 27 | 155 | 0 | ||
| 314381193 | wxhtzdy | D | April 7, 2025, 3:02 p.m. | OK | Kotlin 1.9 | TESTS | 27 | 155 | 0 | ||
| 314390316 | Grotok | D | April 7, 2025, 3:55 p.m. | OK | Kotlin 1.9 | TESTS | 27 | 156 | 0 | ||
| 314389940 | Bazzas13 | D | April 7, 2025, 3:53 p.m. | OK | Kotlin 1.9 | TESTS | 27 | 156 | 0 | ||
| 314387920 | MvKaio | D | April 7, 2025, 3:40 p.m. | OK | Kotlin 1.9 | TESTS | 27 | 156 | 0 | ||
| 314385923 | __variable__ | D | April 7, 2025, 3:29 p.m. | OK | Kotlin 1.9 | TESTS | 27 | 156 | 0 |
Back to search problems