| Показать все ветки Спрятать все ветки Показать все сообщения Спрятать все сообщения |
| To Admins | 👨🏻💻 Spatarel Dan Constantin | 2216. Большой лифт | 18 мар 2026 23:11 | 2 |
To Admins 👨🏻💻 Spatarel Dan Constantin 18 мар 2026 10:40 Hi! I believe test #3 is invalid - there is no way to get from floor 1 to floor N. Can you please check? Thank you! Test is valid, but a bit unusual :) Try the boundary cases |
| WA 35 | LLI_E_P_JI_O_K | 1163. Chapaev | 18 мар 2026 15:12 | 2 |
WA 35 LLI_E_P_JI_O_K 23 апр 2023 18:40 Tricky test case (even can't find its analogue). It contains such placement of draughts that you should precisely touch one or several other draughts by your move, and almost identical angles (+/- 1e-8 radians) will not give correct answer. When allow precisely touch got AC. P.S. Seems like one enemy draught you touch on the left side and other one - on the right side simultaneously. Edited by author 23.04.2023 18:44 Re: WA 35 👨🏻💻 Spatarel Dan Constantin 18 мар 2026 15:12 In my case: double -> WA 35 long double -> AC |
| Wa 13 | Hououin`~`Kyouma | 2191. Кусочно-линейные функции | 17 мар 2026 12:38 | 5 |
Wa 13 Hououin`~`Kyouma 28 янв 2025 23:26 Is this a rounding issue in the output? Re: Wa 13 Lyashko A (TNU/CFU) 19 мар 2025 01:24 I had WA13 when i was printing 6 digits. More digits are needed. Thank you, I have AC now. In my implementation, it took 9 digits, but you can output much more just in case. Edited by author 19.03.2025 08:24 Re: Wa 13 👨🏻💻 Spatarel Dan Constantin 17 мар 2026 12:38 double -> WA #13 long double -> AC |
| WA 42 | 👨🏻💻 Spatarel Dan Constantin | 2171. Две прогрессии 2 | 14 мар 2026 15:07 | 1 |
WA 42 👨🏻💻 Spatarel Dan Constantin 14 мар 2026 15:07 input: 804289384 2 36 94 795951522 804289383 output: 8556270 |
| some tests | 💮meanlessnessener`~ | 2171. Две прогрессии 2 | 14 мар 2026 14:29 | 4 |
631 8 902 694 854 198 479 378 808 647 53 134 77 91 493 13 597 802 ans: 22 86 15 27 93 95 30 85 88 26 17 78 66 49 60 52 21 96 85 55 45 2 69 1 47 18 20 96 80 66 8 70 51 ans: 22 75 3 49 97 16 10 10 36 ans: 8 be more careful about formulas you're sitting right next to me. you could say it to me in the face... These are very good tests! |
| Bad condition | __Andrewy__ | 2225. Гвозди в доме | 8 мар 2026 17:34 | 1 |
If the middle nail was hammered, then the left and right become adjacent? Answer: NO Edited by author 10.03.2026 13:47 |
| stupid clay problem | ~'Yamca`~ | 2224. Соревнование в цивилизации «Parkour» | 7 мар 2026 19:02 | 1 |
|
| WA #25 | 👨🏻💻 Spatarel Dan Constantin | 1041. Никифор | 4 мар 2026 09:49 | 1 |
WA #25 👨🏻💻 Spatarel Dan Constantin 4 мар 2026 09:49 The vectors may have negative coordinates. |
| WA 5 | ~'Yamca`~ | 2215. Глобальные изменения | 3 мар 2026 21:56 | 1 |
WA 5 ~'Yamca`~ 3 мар 2026 21:56 |
| В чем прикол? | AdiZer0 | 1296. Гиперпереход | 27 фев 2026 21:09 | 4 |
Я написал рекурсию которая каждый раз делила отрезок на два и брала максимальный среди ответа всех таких отрезков которых поделила.(типо Merge Sort). У меня был memory limit на 3 тесте. Это значить рекурсия берет память? Да, берёт. Рекурсия хранит итерации в стеке. Не знаю, работает ли это с рекурсией, но для очистки ненужной памяти можно использовать эту библиотеку (если на Python): import gc gc.collect() # убираем ненужное Там был тест на n = 0. Я тоже пытался решить через разделяй и властвуй и на n = 0 у меня все падало |
| WA TEST 33 | Kamolbek Yusupov | 1820. Уральские бифштексы | 27 фев 2026 11:09 | 1 |
n,k = map(int,input().split()) if k==1 or n==1: print(2*n) else: if 2*n%k==0: print(2*n//k) else: print(2*n//k+1) |
| 1263 | Kamolbek Yusupov | 1263. Выборы | 26 фев 2026 12:46 | 1 |
1263 Kamolbek Yusupov 26 фев 2026 12:46 N,M = map(int,input().split()) k = [] for _ in range(M): m = int(input()) k.append(m) for i in range(1,N+1): print(f"{k.count(i)*100/M:.2f}%") Time limit please help |
| Statement | -XraY- | 1405. Пусти козла в огород 5 | 26 фев 2026 06:31 | 2 |
What does it mean: "reach smth"? It's a strict condition, but how should i understand it?) In my opinion, this sample has two right answers: 4 0 0 0 1 0 5 0 8 2 * (1.5 * 1.5) * M_PI or (1 + 3 * 3) * M_PI. You have to find the largest possible answer. Thus the correct answer is: (1 * 1 + 3 * 3) * M_PI = 31.4159 |
| WA #12 | 👨🏻💻 Spatarel Dan Constantin | 2204. Друзья и экамены | 26 фев 2026 04:44 | 1 |
WA #12 👨🏻💻 Spatarel Dan Constantin 26 фев 2026 04:44 input: 2 8 12 28 40 46 48 54 60 80 2 7 9 24 34 49 54 62 66 77 78 79 80 83 84 84 output: 6 |
| WA #39 | 👨🏻💻 Spatarel Dan Constantin | 2217. Двоичная сортировка | 24 фев 2026 17:27 | 1 |
WA #39 👨🏻💻 Spatarel Dan Constantin 24 фев 2026 17:27 input #1: 3 110 output #1: YES input #2: 4 1110 output #2: NO |
| No subject | 👨🏻💻 Spatarel Dan Constantin | 2214. Качественный излучатель | 24 фев 2026 17:25 | 1 |
No subject 👨🏻💻 Spatarel Dan Constantin 24 фев 2026 17:25 Edited by author 24.02.2026 17:26 |
| Is correct second example ?? | coder | 2160. Мета-условие | 24 фев 2026 03:16 | 2 |
12 12 5 3 11 2 8 4 9 1 6 10 7 answer: 34650 in example output. But, following full check test prints 6300. ----- static bool match(int a[], int n, int b[], int m){ if (n != m) return false; if (n == 0 && m == 0) return true;
int i = std::max_element(a, a + n) - a; int j = std::max_element(b, b + m) - b;
return i == j && match(a, i, b, j) && match(a + i + 1, n - i - 1, b + j + 1, m - j - 1); } int main() { int n = 12; int a[] = { 12, 5, 3, 11, 2, 8, 4, 9, 1, 6, 10, 7 }; int b[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; int ans = 0; do{ if (match(a, n, b, n)) ++ ans;
} while (std::next_permutation(b, b + 12) );
printf("ans = %d\n", ans); return 0; }
The second example is correct. In your code, you should replace std::max_element with std::min_element to get the correct answer. |
| Is there any solution aside from DP? | Aleksander | 2173. Мета-условие 3 | 24 фев 2026 02:55 | 3 |
I solved it using pretty straigtforward DP O(n * m^2), obviously it's just a complexity without any additional factors but it doesn't seem to be fitting time limit. Somehow it did. But I wonder, is there any more intricate idea for a faster solution? pretty straigtforward DP O(n * m^2) it doesn't seem to be fitting time limit Most likely, your solution is actually O(N*M), because the statement says "It is guaranteed that the total number of wishes does not exceed 2 · M." I believe the time complexity is actually O(M*(N+M)). |
| WA 17 | ~'Yamca`~ | 2203. Любимые бутерброды | 24 фев 2026 02:07 | 1 |
WA 17 ~'Yamca`~ 24 фев 2026 02:07 try this test: 1 1 3 100 3000 ans: 1000 |
| 1001 | bini7yam | 1001. Обратный корень | 24 фев 2026 00:58 | 3 |
1001 bini7yam 24 дек 2025 11:34 how to know when there are no more inputs Just use a while loop like this: while( cin >> a ) and then push_back it in a vector and output the solution. while (scanf("%lf", &stack[++top]) != EOF); or while ((tmp = getchar()) != EOF) |