| Показать все ветки Спрятать все ветки Показать все сообщения Спрятать все сообщения |
| Overrated | Keworker `~ | 1773. Метро в каждый дом | 1 сен 2024 13:02 | 1 |
|
| Overrated | Keworker `~ | 1408. Умножение многочленов | 1 сен 2024 12:14 | 1 |
Little bit boring, but anyway rating is too big |
| Incorrect example (Неверный пример) | Kairom `Ekexity 💻 | 1349. Ферма | 1 сен 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. Посадка на планету Океан | 31 авг 2024 19:19 | 2 |
WA#29 Parassat Kyzyrkanov 21 июл 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 | Hououin`~`Kyouma | 2159. Сочинение | 30 авг 2024 10:12 | 1 |
RE 24 Hououin`~`Kyouma 30 авг 2024 10:12 sys.setrecursionlimit(10**9) + python instead of PyPy |
| Wa 22 | Hououin`~`Kyouma | 2159. Сочинение | 30 авг 2024 10:10 | 1 |
Wa 22 Hououin`~`Kyouma 30 авг 2024 10:10 Test: 1 4 m m a a b b c c a Output: -1 |
| Check tests | ChAlex | 1215. Точность попадания снаряда | 30 авг 2024 07:16 | 1 |
How I can check the tests? |
| Easy BFS | Keworker `~ | 1500. Разрешения на проезд | 28 авг 2024 15:03 | 1 |
Use BFS, use bitset, use binsearch, use random shuffle and get easy AC! |
| Python decimal works very well. | Hououin`~`Kyouma | 1248. Сумма последовательности | 27 авг 2024 23:43 | 1 |
|
| Bad statement (Wa 4 reason) | Hououin`~`Kyouma | 1050. Подготавливая статью | 26 авг 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. Настройки графики | 26 авг 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. Палиндромы | 25 авг 2024 23:30 | 2 |
|
| A simple geometry problem, why is the rating so high? | Hououin`~`Kyouma | 1733. Забытые технологии | 25 авг 2024 15:36 | 1 |
|
| Possible reason of WA#5 | Keworker `~ | 1351. Хороший гнусмас – мёртвый гнусмас | 25 авг 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++ | Nikita Mogilevets | 1586. Трипростые числа | 24 авг 2024 18:05 | 2 |
Один и тот же алгоритм и практически один и тот же код, с учётом схожести синтаксиса языков, даёт : AC 15 ms C++14 Clang TLE #9 Python 2.7/3.4 Ну да. Питон способен выполнять не более 10^7 операций в секунду, а С++ - более 10^9 операций в секунду. Можно попробовать отослать тот же код на PyPy или использовать по возможности библиотеки, написанные на как раз-таки С++ |
| Funny task | Hououin`~`Kyouma | 1504. Хорошие манеры | 23 авг 2024 01:45 | 1 |
But O(N^2 * logN) is death for python Edited by author 23.08.2024 14:56 |
| Deleted | Hououin`~`Kyouma | 1599. Winding Number | 22 авг 2024 12:05 | 1 |
Deleted Hououin`~`Kyouma 22 авг 2024 12:05 Edited by author 11.08.2025 18:30 |
| Unbelievable, I passed it | Hououin`~`Kyouma | 1913. Руины титанов: расстановка сил | 21 авг 2024 02:29 | 1 |
|
| Some useful tests | 0bla4ko`~ | 2003. Простая магия | 20 авг 2024 19:09 | 1 |
These tests helped me to fix WA8 10 4811511 2282103 4376795 8402551 3861207 8577438 2810768 5559695 8993319 5240873 infinity 10 9706784 5106148 5528237 9514430 1047500 6715041 9514430 7524350 4524591 2186600 infinity But then I had WA27, which I fixed by ignoring number 1 somewhere in my code, and got AC. But my AC solution is still wrong, here is the test breaking it (upd: my second AC code passes it): 10 8246707 8246707 6566521 3418657 9048372 2505801 428602 9261803 4761595 6564437 Correct answer: 2 My AC code output: infinity Edited by author 20.08.2024 19:31 |
| C++. I've got WA#8, can smbd help? | Ivashkaization | 1052. Охота на зайцев | 19 авг 2024 09:22 | 6 |
#include <cstdio> #include <vector> #include <math.h> #include <cstdlib> #include <algorithm> using namespace std; double line_k(double x1, double y1, double x2, double y2) { double k = (y2 - y1)/(x2 - x1); return k; } double line_b(double x1, double y1, double x2, double y2) { double b = y2 - (y2 - y1) * x2 / (x2 - x1); return b; } bool is_on_line(double k, double b, double x, double y) { if (y <= x * k + b + 0.01 && y >= x * k + b - 0.01) return true; return false; } struct point{ double x,y; }; int main() { int n, counter = 2, max_zerosx = 0, max_zerosy = 0; double x, y, k, b; vector <point> koord; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%lf %lf", &x, &y); if (x == 0) max_zerosx++; if (y == 0) max_zerosy++; { koord.push_back(point()); koord[i].x = x; koord[i].y = y; } } int maximal = max(max_zerosx, max_zerosy); for (int i = 0; i < n; i++) { for (int j = i + 1; j < n; j++) { k = line_k(koord[i].x, koord[i].y, koord[j].x, koord[j].y); b = line_b(koord[i].x, koord[i].y, koord[j].x, koord[j].y); for (int l = j + 1; l < n; l++) if (is_on_line(k, b, koord[l].x, koord[l].y)) counter++; if (counter > maximal) maximal = counter; counter = 2; } } printf("%d", maximal); return 0; } I got WA#8 too. But my solution uses integers only. What is the test? Edited by author 24.11.2015 03:27 How do you build lines when both points have the same X? Would you rather use not y=Ax+b but Ax+By+C=0 line equation? Also I think your epsilon - 0.01 - is too big. You can to avoid float numbers at all. Edited by author 24.11.2015 14:17 Edited by author 24.11.2015 14:17 This is not problem. My solution uses only integer values (there is no any epsilon), but it crashes on the same test Thanks alot, will try this! I got WA on test 8 because division by 0 when I tried to see if 2 vectors of the same root are collinear via checking ratio of x and y, should've just use multiplication |