| Show all threads Hide all threads Show all messages Hide all messages |
| TL#19 | sleepntsheep | 1569. Networking the “Iset” | 13 Jan 2025 22:25 | 2 |
TL#19 sleepntsheep 13 Jan 2025 21:59 my O((M+N)^2) solution TL#19. Can I have hints on faster solution? |
| RTE, Any Idea? | Tiojuan | 1016. Cube on the Walk | 13 Jan 2025 07:03 | 1 |
|
| AC! + hint on avoiding TLE. | sleepntsheep | 2055. Urban Geography | 12 Jan 2025 23:31 | 1 |
good problem. dynacon! To avoid TLE: Use dynamic array instead of linked list for better locality. Break early when a first spanning tree is found. (important). Edited by author 12.01.2025 23:51 |
| Passed or | foxlup | 1269. Obscene Words Filter | 12 Jan 2025 18:12 | 2 |
4 aceg ACEG {Ç}{Æ} {F}{E}{D} 3 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþ {!}{"}{#}{$}{%}{&}{'}{(}{)}{*}{+}{,}{-}{.}{/}{0}{1}{2}{3}{4}{5}{6}{7}{8}{9}{:}{;}{<}{=}{>}{?}{@}{A}{B}{C}{D}{E}{F}{G}{H}{I}{J}{K}{L}{M}{N}{O}{P}{Q}{R}{S}{T}{U}{V}{W}{X}{Y}{Z}{[}{\}{]}{^}{_}{`}{a}{b}{c}{d}{e}{f}{g}{h}{i}{j}{k}{l}{m}{n}{o}{p}{q}{r}{s}{t}{u}{v}{w}{x}{y}{z}{{}{|}{}}{~}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{ }{¡}{¢}{£}{¤}{¥}{¦}{§}{¨}{©}{ª}{«}{¬}{}{®}{¯}{°}{±}{²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{#}{"}{!} Passed or 3 166 |
| WA15 | sleepntsheep | 1966. Cycling Roads | 9 Jan 2025 22:25 | 2 |
WA15 sleepntsheep 9 Jan 2025 22:19 turns out my function for checking if point lies on segment was wrong. |
| Give me some hints, ples | Михаил | 2145. Olympiad for Everyone | 8 Jan 2025 22:35 | 4 |
as common we must use some original in this: if first k best student can solve hardest problem they are absolutely equivalent for assignment to first problem Consider difficulties in descending order |
| To admins: wrong Clang? | Dmi3Molodov | 1052. Rabbit Hunt | 8 Jan 2025 14:37 | 1 |
|
| Is it possible to solve it problem in Python? | kisvadim | 2014. Zhenya moves from parents | 8 Jan 2025 14:13 | 2 |
I have 'Time limit exceeded' after 13 test. Возможно ли решить данную задачу на Питоне? У меня после 13 теста лимит времени исчерпан. Yes, user named ixiolirion did so (barely withing time limit, but still). |
| If you have problems with Test #17 | Semm | 1427. SMS | 5 Jan 2025 21:08 | 1 |
Advertisement contains up to 100000 symbols and ends with a newline. So may need to store 100000 symbols + newline symbol + one '\0' symbol. I had problems with this using fgets in C++. |
| Fast? | sleepntsheep | 1097. Square Country 2 | 5 Jan 2025 14:25 | 2 |
Fast? sleepntsheep 3 Jan 2025 18:13 Can it be faster than O(M^2)? Why do you care about this? The statment says "1 ≤ M ≤ 100",I think it means "Ok,the speed of the correct way is O(M^2)". |
| Can word w_i be duplicated | sleepntsheep | 1542. Autocompletion | 3 Jan 2025 11:11 | 3 |
Okay, turn out the answer is NO |
| Admin: Why actually needed that problem, if it cant solveable without calculate all possible values in advance? | coder | 2061. OEIS A216264 | 3 Jan 2025 06:20 | 2 |
There are for n=1..60 all values already exist in internet. Only required calculate for n=61. But it takes more 20 hours. so do you recommend solving on timus or not? |
| To admins: new task | Dmi3Molodov | 1033. Labyrinth | 3 Jan 2025 05:41 | 1 |
For some, task No. 1033 seemed simple. A new task is offered especially for them (don't say it's difficult!) A multidimensional maze (also with wallpaper, walls and entrances). The input data consists of two sequences of numbers. The sign of the end of each sequence is zero (it is not part of the sequence). The first sequence: Guaranteed: the sum of the modules of the numbers does not exceed 1E+7. The number of negative numbers is equal to the number of entrances to the maze. The number of positive numbers is equal to the number of monolithic blocks of stone walls. Sk=The sum of the modules of the numbers from the beginning determines the unique number of the place in the maze. The second sequence is the numbers N[i] defining the sizes of the maze. Guaranteed: 1<N[i]<32 The length of the sequence (d) is equal to the dimension of the maze. These numbers themselves set the sizes of the maze according to the (i-th) coordinate. Knowing Sk, it is possible to determine all d coordinate values of a unique place in the maze. Sk=R[d]+1 where R[0]=0 and R[i+1]=R[i]*N[i]+THE_COORDINATE[i] Result: the same as in task No. 1033 P.S. Memory needed ~ 4Mb O(SM). Time limit - O(SM*log(SM)) where SM-the sum of the modules of the numbers Некоторым задача №1033 показалась простой. Специально для них предлагается новая задача (не говорите,что сложная!) Многомерный лабиринт (тоже с обоями,стенами и входами). Входные данные состоят из двух последовательностей чисел. Признак конца каждой последовательности - ноль(не является частью последовательности). Первая последовательнось: Гарантировано: сумма модулей чисел не превосходит 1Е+7. Количесво отрицательных чисел равно количеству входов в лабиринт. Количесво положительных чисел равно количеству монолитных блоков каменных стен. Sk=Сумма модулей чисел от начала определяет уникальный номер места в лабиринте. Вторая последовательность: Числа N[i] задающие размеры лабиринта. Гарантировано: 1<N[i]<32 Длина последовательности (d) равна размерности лабиринта. Сами эти числа задают размеры лабиринта по (i-той) координате. Зная Sk можно определить все d значений координат уникального места в лабиринте. Sk=R[d]+1 где R[0]=0 и R[i+1]=R[i]*N[i]+КООРДИНАТА[i] Результат: тот же что и в задаче №1033 P.S. Надеюсь, что удалось объяснить. Edited by author 03.01.2025 06:52 |
| f**k negative delta | masonpop | 1707. Hypnotoad's Secret | 1 Jan 2025 18:08 | 1 |
|
| Почему 1 тест 3? | KillerQueen | 1005. Stone Pile | 30 Dec 2024 14:18 | 2 |
1) кучи должны быть одинаковыми? 2) если нет то почему нельзя взять самое маленькое число и вычесть из него остальные? 1 тест 13+14+8-27-5=3 или 27+8-13+14+5=3 |
| :-) | Dmi3Molodov | 1792. Hamming Code | 30 Dec 2024 03:51 | 1 |
:-) Dmi3Molodov 30 Dec 2024 03:51 |
| WA10 | andreyDagger`~ | 1166. Funny Card Game | 29 Dec 2024 23:57 | 1 |
WA10 andreyDagger`~ 29 Dec 2024 23:57 Only KS can be skipped but not KD KC KH |
| if you have WA5 and logically correct solution | Just random | 1796. Amusement Park | 29 Dec 2024 14:50 | 1 |
if you have a WA5, it is possible that you also did not read the condition, and instead of a 5000 bill you wrote something else (for example, 2000). Edited by author 29.12.2024 14:51 |
| About Noise() | andreyDagger`~ | 1704. Demodulation | 27 Dec 2024 03:35 | 1 |
Looks like Noise function acts like in real world. It is some random variable from normal distribution with zero expected value, and some small variation Edited by author 27.12.2024 03:35 |
| The number + its inverted number <= S | Sergio86 | | 26 Dec 2024 09:31 | 1 |
For a positive integer x, we define R(x) as a number equal to the inverted x in decimal notation. For example, R(123) = 321, R(1) = 1, and R(100500) = 5001. For a given number S, calculate the number of integers x such that 1 ≤ x and x+R(x) ≤ S. As an answer, print the remainder of dividing this number by 10^9 + 7. Input data contains an integer S written without leading zeros (0 < S < 10^100000). Test: 1000000 Answer: 505449 The idea: the dynamics of the digits of the number? What other ideas can you suggest? |