| Показать все ветки Спрятать все ветки Показать все сообщения Спрятать все сообщения |
| Какой 3 тест? | Николай Б | 2149. Принцип Дирихле | 11 мар 2022 10:24 | 2 |
8 <@...<@...<@...<@.....@>...@>...@>...@> .OO=..OO=..OO=..OO=.=OO..=OO..=OO..=OO. ./\.../\.../\.../\.../\.../\.../\.../\. Answer: 0 |
| Wrong answer in test #6 | Nail | 2078. Игра в боулинг | 10 мар 2022 13:03 | 1 |
Help me: Wrong answer in test #6 |
| TEST №20, SOLVED | ilya.fedotov | 2078. Игра в боулинг | 10 мар 2022 01:07 | 2 |
Wrong answer in test №20, help Edited by author 10.03.2022 01:08 0 0 0 0 0 0 0 0 10 17 check this |
| TEST 4 ??? | Ruslan | 1207. Медиана на плоскости | 9 мар 2022 23:03 | 1 |
|
| what's the test case 7???? All the cases given hv been passed alr... | flyingpig | 1189. Pairs of Integers | 9 мар 2022 14:45 | 2 |
what's the test case 7???? All the cases given hv been passed alr... |
| Wrong answer. Help pls!! C++ | TIU_Sarexer | 1991. Битва у болота | 9 мар 2022 01:34 | 4 |
#include <iostream> using namespace std; int main() { int n, k, *arr,raz,y=0,ost=0; cin >> n >> k; arr = new int[n]; for (int i = 0; i < n; i++) { cin >> arr[i]; } for (int i = 0; i < n; i++) { raz = 5 - arr[i]; if (raz >= 0) { y = y + raz; } else { y = y; ost = ost + raz * -1; } } cout << ost << " " << y; return 0; } > raz = 5 - arr[i]; Why "5" ? ahahah I'm stupid :D Thanks) the task could be solved by shorter way // 2022-03-08.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <iostream> using namespace std; int main() { int n, k; cin >> n >> k; int droid = 0, bum = 0; int tempBum; for (int i = 0; i < n; i++) { cin >> tempBum; if (tempBum > k) { bum += tempBum - k; } if (k > tempBum) { droid += k - tempBum; } } cout << bum << " " << droid; } |
| WA11 | Tapti | 1074. Очень короткая задача | 7 мар 2022 10:49 | 1 |
WA11 Tapti 7 мар 2022 10:49 try 12.12.12 1 Not a floating point number |
| test | Gleb_Kazantaev(NNSTU) | 1671. Паутина Ананси | 5 мар 2022 23:50 | 3 |
test Gleb_Kazantaev(NNSTU) 2 ноя 2014 02:46 5 7 1 2 2 3 1 4 4 5 1 5 2 5 4 3 4 3 4 7 2 ans: 1 1 2 3 Re: test Амир Меннибаев 18 июл 2017 19:53 Re: test Prabhvir Singh Babra 5 мар 2022 23:50 Thank you so much! This really helped me debug :). |
| Got AC with one attemt :) | Anton Smoliakov | 1711. Кодовые имена | 4 мар 2022 12:02 | 1 |
On the first sight i thought i'd need O(3 ^ 16) but the problem is much easier. |
| Hint | Liol | 1013. K-ичные числа. Версия 3 | 3 мар 2022 10:48 | 1 |
Hint Liol 3 мар 2022 10:48 if you WA on #3 ,please use unsigned __int64 and high-accuracy if you WA on #9 ,try this 2 10 3 The answer is 0 Edited by author 03.03.2022 10:56 |
| help (python) | quarylaniel | 1880. Собственные числа Psych Up | 2 мар 2022 23:20 | 1 |
cnt = 0 a = int(input()) a1 = list(map(int, input().split())) b = int(input()) b1 = list(map(int, input().split())) c = int(input()) c1 = list(map(int, input().split())) for i in a1 : if i in b1 and c1 and a1 : cnt += 1 print(cnt) what is wrong? tells "wrong answer" |
| WA 26 | andreyDagger | 1966. Велодорожки | 2 мар 2022 19:41 | 1 |
WA 26 andreyDagger 2 мар 2022 19:41 Probably you're getting overflow |
| WA 6 | andreyDagger | 1484. Кинорейтинг | 2 мар 2022 18:48 | 1 |
WA 6 andreyDagger 2 мар 2022 18:48 Arithmetic average is not exacltly x. Due to the rounding arithmetic average can be x + 0.01 or even x + 0.04999 |
| WA8 test case | † SiriuS † | 1966. Велодорожки | 2 мар 2022 11:27 | 1 |
\/ \/ /\ /\ 8 4 0 0 2 2 2 0 0 2 0 3 2 5 2 3 0 5 1 2 3 4 5 6 7 8 Answer: "NO" |
| Bad statement | andreyDagger | 2121. Пересечение парабол | 27 фев 2022 17:09 | 1 |
Spent a hour to realise that you don't need to count left and right parts of figure, only middle |
| No subject | emhope | 1177. Сопоставление с шаблоном | 27 фев 2022 01:55 | 1 |
Edited by author 27.02.2022 15:58 |
| How can the program recognize when there aren´t more inputs ? | Albert | 1001. Обратный корень | 26 фев 2022 22:10 | 3 |
I investigated on internet, but most of the answers were putting a type of character that breaks the cycle, but in the input example there´s no character and it´s not enough with a "while(cin >> n)" pls help if copypast test text, it read a blank string as EOF by some reason Edited by author 26.02.2022 22:11 |
| Idea | __Andrewy__ | 1324. Лишние пробелы | 26 фев 2022 01:26 | 1 |
Idea __Andrewy__ 26 фев 2022 01:26 Let's sequence S(n) = {s[1], s[2], ..., s[n]} is optimal sequence for the first n steps. L[i] is max number when we can get one space using S(n) for any number in range [1..L[i]]: firstly, we apply s[n], then s[n-1] and etc. Now let's get next s[n+1]. Suppose we found s[n+1] and want get L[n+1]. Always L[n+1] + 1 = q*s[n+1] + r, 0<=r<s[n+1]. L[n+1] is max number => for L[n+1] + 1 we need at least n+2 steps => q + r >= L[n] + 1. But L[n+1] + 1 is min number when using S(n+1) we can't get one space => r->max, q->min => r = s[n+1] - 1, q = L[n] + 1 - r => L[n+1] + 1 = q * s[n+1] + r => L[n+1] = (L[n] - s[n+1] + 2) * s[n+1] + s[n+1] - 2 -> max (where arg is s[n+1]) => s[n+1] = (L[n] + 1) / 2 But using symmetry we can give s[n+1] = floor(L[n] / 2) + 1 (we choice bigger number because s[2] > 1). => L[n+1] = q * s[n+1] + r - 1, q = L[n] + 1 - r, r = s[n+1] - 1.
Edited by author 26.02.2022 01:27 Edited by author 26.02.2022 01:27 |
| WA #1 | Alexandr Shchukin | 1112. Покрытие | 24 фев 2022 23:04 | 1 |
WA #1 Alexandr Shchukin 24 фев 2022 23:04 My program runs any tests from other topics perfectly, but something is wrong with the task 1. Sounds like madness. Edited by author 24.02.2022 23:04 Edited by author 24.02.2022 23:05 |
| If you don't understand first sample | andreyDagger | 1710. Борис, ты не прав! | 21 фев 2022 17:06 | 1 |
Pay attention, that points given in order A, B, C. That means that angle of your triangle must equal to angle BAC Edited by author 21.02.2022 17:07 |