| Show all threads Hide all threads Show all messages Hide all messages |
| OMG i just solved this | 👑TIMOFEY👑`~ | 1824. Ifrit Bomber | 6 Sep 2024 15:02 | 1 |
i spent a lot of time on this task and i am very happy that i did it, i recommend that you also try to solve it yourself to improve your optimization skills |
| Please help me with a little hint | int2k | 1275. Knights of the Round Table | 5 Sep 2024 08:56 | 2 |
I devised that maybe I need to solve many systems of equations. I know the solution if the system has odd equations, but how do I solve the one with even equations? For example: solve for ai, with ki = initial cups at knight i, and F as the final cups to be achieved. a1 + a2 + k2 = F a2 + a3 + k3 = F a3 + a4 + k4 = F a4 + a1 + k1 = F I cannot solve this, even if I could I couldn't image myself programmatically solve it. If the solution is different, please give me some advise. Thanks! For future solver - Basically that's the correct solution despite being optimized or not. For even number of equations, you can solve it directly to save some mem, or you can just bruteforce like me (-1000 -> 1000) for the first value and solve the rest. That will tank the memory alot but it should be fine if you prayed for mercy first before you submit. |
| I got WA on test 9 | int2k | 1275. Knights of the Round Table | 5 Sep 2024 08:54 | 2 |
can you help me with some tests? I tried every tests in the discussions and they're fine, I also try my own tests with big number too. to clarify, my understanding is that, 0 <= F <= 1000 right? For future solver - This is because while trying to solve system of equations that involves a subset of Knights, I put the "last index + 1" Knight to be 0, which is not true, the system does not always start with Knight 0 |
| memory limit | ahmed ezz | 1167. Bicolored Horses | 3 Sep 2024 21:51 | 2 |
so in my solution i use o(N^3) space and i got mle ( i expected that) but what makes me confused that people says they passed wih o(n^3) time i know there is a different between memory and time complexity but i have some doubts they may also used o(n^3) space too so can someone tell me whether they added a new cases or whats is the problem? I assume that you are using an array dp[N][N][k] and that the first dimension of this array is the index that you are currently at, you don't actually need this dimension because the index which you are currently at only relies on the previous index's states, this means that you can reduce the first dimension from size N to size 2 |
| Overrated | Keworker `~ | 1168. Radio Stations | 2 Sep 2024 00:01 | 2 |
O(n*m*k) solution is AC. Rating 731 is too big. Very simple geometry task |
| Overrated | Keworker `~ | 1773. Metro to Every Home | 1 Sep 2024 13:02 | 1 |
|
| Overrated | Keworker `~ | 1408. Polynomial Multiplication | 1 Sep 2024 12:14 | 1 |
Little bit boring, but anyway rating is too big |
| Incorrect example (Неверный пример) | Mescheryakov_Kirill | 1349. Farm | 1 Sep 2024 03:40 | 5 |
In the measurements it is written that when 1 response 1 2 3. But in the condition said "If there are several solutions, display, where a minimum. If such multiple, display, where the minimum of b and so on". So the correct answer should be 1 1 2. (В промерах написано, что при 1 ответ 1 2 3. Но в условии сказано "Если решений несколько, вывести то, где a минимально. Если и таких несколько, вывести то, где минимально b и т.д". Поэтому правильный ответ должен быть 1 1 2.) Edited by author 09.11.2014 17:33 Have you read the statement? "Output Three ***different*** integers (a, b and c) such that..." Hahaha, Timus should have something like a "Like" button for comments like yours. ;) je suis ne pas tres attentif Edited by author 01.09.2024 03:42 |
| WA#29 | Parassat Kyzyrkanov | 1988. Planet Ocean Landing | 31 Aug 2024 19:19 | 2 |
WA#29 Parassat Kyzyrkanov 21 Jul 2023 18:40 In my solution, it was a bug with precision. So I fixed it, by using int instead of double, as much as it was possible |
| RE 24 | FaNato4kA_TiMoFeYa | 2159. Essay | 30 Aug 2024 10:12 | 1 |
RE 24 FaNato4kA_TiMoFeYa 30 Aug 2024 10:12 sys.setrecursionlimit(10**9) + python instead of PyPy |
| Wa 22 | FaNato4kA_TiMoFeYa | 2159. Essay | 30 Aug 2024 10:10 | 1 |
Wa 22 FaNato4kA_TiMoFeYa 30 Aug 2024 10:10 Test: 1 4 m m a a b b c c a Output: -1 |
| Check tests | ChAlex | 1215. Exactness of Projectile Hit | 30 Aug 2024 07:16 | 1 |
How I can check the tests? |
| Easy BFS | Keworker `~ | 1500. Pass Licenses | 28 Aug 2024 15:03 | 1 |
Use BFS, use bitset, use binsearch, use random shuffle and get easy AC! |
| Python decimal works very well. | FaNato4kA_TiMoFeYa | 1248. Sequence Sum | 27 Aug 2024 23:43 | 1 |
|
| Bad statement (Wa 4 reason) | FaNato4kA_TiMoFeYa | 1050. Preparing an Article | 26 Aug 2024 17:35 | 3 |
The description of the problem says: "Your program must take into account the command \", which is used to write two dots above a vowel. For example, \"e means the symbol ë." But you don't really have to distinguish between vowels and consonants for this command. Edited by author 26.08.2024 17:37 You are amazingly attentive! I solved the problem on the first try simply because I didn't even think about this detail of the task) |
| Why IO optimizations don't work? (possible reason of WA#1) | Keworker `~ | 1971. Graphics Settings | 26 Aug 2024 13:19 | 1 |
My program use iostream for reading data. Always when i use iostream i add this lines to turn off flushing after each line: signed main(void) { cin.tie(nullptr)->sync_with_stdio(false); cout.tie(nullptr)->sync_with_stdio(false); // solution return 0; } But in this problem program with this lines getting WA#1, without - AC. Why? |
| Accepted Solve O(n) | Maxim Afripov | 1297. Palindrome | 25 Aug 2024 23:30 | 2 |
|
| A simple geometry problem, why is the rating so high? | FaNato4kA_TiMoFeYa | 1733. Forgotten Technology | 25 Aug 2024 15:36 | 1 |
|
| Possible reason of WA#5 | Keworker `~ | 1351. Good Gnusmas – Dead Gnusmas | 25 Aug 2024 14:51 | 1 |
I've got WA 5 cause I checked that distance less than d only in case where Gnusmas is not on the border of the arc. So, if you have WA#5 be careful with case where Gnusmas is on the border of the arc of fire. |
| Сверхъестественная разница в скорости работы между Python и C++ | Mahilewets | 1586. Threeprime Numbers | 24 Aug 2024 18:05 | 2 |
Один и тот же алгоритм и практически один и тот же код, с учётом схожести синтаксиса языков, даёт : AC 15 ms C++14 Clang TLE #9 Python 2.7/3.4 Ну да. Питон способен выполнять не более 10^7 операций в секунду, а С++ - более 10^9 операций в секунду. Можно попробовать отослать тот же код на PyPy или использовать по возможности библиотеки, написанные на как раз-таки С++ |