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 |
|---|---|---|---|---|---|---|
| 2011 | Kotlin Heroes: Episode 11 | FINISHED | False | 9000 | 48698723 | Sept. 30, 2024, 2:35 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 1138 ) | A | Problem Solving | PROGRAMMING | *special |
Jane has decided to solve a list of (n) problems on Codeforces. The (i)-th problem in her list has difficulty (d_i), and the last problem in the list is the hardest one (for every problem (j < n), (d_j < d_n)). Jane's problem-solving skill is some integer (x) (unknown to you). If a problem's difficulty is greater than (x), then Jane cannot solve it, otherwise she can solve it. Jane has solved all problems form the list, except for the last one — she found out that it was too difficult for her. Can you uniquely determine the value of (x) — Jane's problem solving skill? The first line contains one integer (t) ((1 \le t \le 1000)) — the number of test cases. Each test case consists of two lines: the first line contains one integer (n) ((2 \le n \le 50)) — the number of problems; the second line contains (n) integers (d_1, d_2, \dots, d_n) ((1 \le d_i \le 50)). Additional constraint on the input: in every test case, the last problem is more difficult than every other problem (i. e. (d_n > d_j) for every (j < n)). This means that at least one possible value of (x) exists. For each test case, print one line: if you can determine the value of (x) uniquely, print (x); otherwise, print Ambiguous . The checking program is case-sensitive, so if you print ambiguous or AMBIGUOUS , your answer will be considered wrong . In the second test case of the example, the value of (x) could be (11), but it also could be (10) (other possible values for (x) also exist). |
| Kotlin Heroes 11 — Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 283775132 | __jk__ | A | Sept. 30, 2024, 2:37 p.m. | OK | Kotlin 1.7 | TESTS | 4 | 233 | 0 | ||
| 283776155 | WiwiHo | A | Sept. 30, 2024, 2:41 p.m. | OK | Kotlin 1.7 | TESTS | 4 | 234 | 9011200 | ||
| 283788469 | T_PAVAN_NAGARAJU | A | Sept. 30, 2024, 3:53 p.m. | OK | Kotlin 1.7 | TESTS | 4 | 249 | 204800 | ||
| 283775092 | wsyear | A | Sept. 30, 2024, 2:37 p.m. | OK | Kotlin 1.7 | TESTS | 4 | 265 | 6246400 | ||
| 283777224 | mutbuffereduint512_t | A | Sept. 30, 2024, 2:46 p.m. | OK | Kotlin 1.7 | TESTS | 4 | 280 | 4915200 | ||
| 283780322 | xteNz | A | Sept. 30, 2024, 3:04 p.m. | OK | Kotlin 1.7 | TESTS | 4 | 280 | 6758400 | ||
| 283775175 | MiinaMagdy | A | Sept. 30, 2024, 2:37 p.m. | OK | Kotlin 1.7 | TESTS | 4 | 280 | 7577600 | ||
| 283782787 | greker | A | Sept. 30, 2024, 3:18 p.m. | OK | Kotlin 1.7 | TESTS | 4 | 281 | 5734400 | ||
| 283778076 | Thundervolt | A | Sept. 30, 2024, 2:51 p.m. | OK | Kotlin 1.7 | TESTS | 4 | 281 | 5836800 | ||
| 283805382 | sforsehlenge | A | Sept. 30, 2024, 5:40 p.m. | OK | Kotlin 1.7 | TESTS | 4 | 281 | 6758400 | ||
| 283775787 | lto5 | A | Sept. 30, 2024, 2:39 p.m. | OK | Kotlin 1.9 | TESTS | 4 | 140 | 0 | ||
| 283779115 | sahasrad | A | Sept. 30, 2024, 2:57 p.m. | OK | Kotlin 1.9 | TESTS | 4 | 156 | 0 | ||
| 283774962 | arvindf232 | A | Sept. 30, 2024, 2:36 p.m. | OK | Kotlin 1.9 | TESTS | 4 | 156 | 1228800 | ||
| 283849200 | mutbuffereduint512_t | A | Oct. 1, 2024, 5:14 a.m. | OK | Kotlin 1.9 | TESTS | 4 | 171 | 0 | ||
| 283798733 | rcd_07 | A | Sept. 30, 2024, 4:56 p.m. | OK | Kotlin 1.9 | TESTS | 4 | 171 | 0 | ||
| 283791119 | Parag_AP | A | Sept. 30, 2024, 4:09 p.m. | OK | Kotlin 1.9 | TESTS | 4 | 171 | 0 | ||
| 283779568 | saikrishna17394 | A | Sept. 30, 2024, 3 p.m. | OK | Kotlin 1.9 | TESTS | 4 | 171 | 0 | ||
| 283778316 | s169 | A | Sept. 30, 2024, 2:53 p.m. | OK | Kotlin 1.9 | TESTS | 4 | 171 | 0 | ||
| 283777439 | MassimoG | A | Sept. 30, 2024, 2:48 p.m. | OK | Kotlin 1.9 | TESTS | 4 | 171 | 0 | ||
| 283777139 | TecTrixer | A | Sept. 30, 2024, 2:46 p.m. | OK | Kotlin 1.9 | TESTS | 4 | 171 | 0 |
Back to search problems