Комментарии
На Hasan0540 → Codeforces Round #480 (Div. 2), 9 лет назад
0

На 7 3 подходит и:

YES
.......
.#...#.
...#...
.......

На 9 5, например:

YES
.........
.#.....#.
...###...
.........

Я написал тестер, и колдовал потом)

На NBAH → Codeforces Round #448(Div.2) Editorial, 9 лет назад
0

Maybe it isn't a good idea, but i can't see editorial for this problems :(

Screenshot
На NBAH → Codeforces Round #448(Div.2) Editorial, 9 лет назад
0

As I understood, and as I finally get "Full solution": For exmaple, we have

3
110 80 170

(Answer 20) We should take different variants of pieces:

110
110 80
110 80 170
80
80 170
170

And for each variant, we calculate sum and compare with the minimum: if (min < sum-(360-sum)) min = sum-(360-sum)

Tried to explain my solution on my bad english :D

На NBAH → Codeforces Round #448(Div.2) Editorial, 9 лет назад
0

Ahhh, I see. Thanks :)

На NBAH → Codeforces Round #448(Div.2) Editorial, 9 лет назад
0
Test 8 picture
На NBAH → Codeforces Round #448(Div.2) Editorial, 9 лет назад
0

Can anyone explain, why in Problem A on the test 8:

5
110 90 70 50 40

The answer is 40? We can take 90 40 50 and 110 70 — 180 and 180, so the answer is 0, isn't it? Or did I misunderstand it?

На Kniaz → Codeforces Round #392 (Div. 2), 10 лет назад
0

In input, amount of R B Y G >= 1. In your example R doesn't meet.

Sry for bad English.

На Kniaz → Codeforces Round #392 (Div. 2), 10 лет назад
+6

На Arpa → Codeforces Round #383, 10 лет назад
-13

I can solve only first problem for 2 hours and i'm green, so you need to solve only first problem and you become green:)

На albertg → Codeforces round #382, 10 лет назад
0

Предпоследняя строчка — написано "помогать Остапа Ибрагимовича...", а ведь лучше будет "помогать ОстапУ ИбрагимовичУ ..." Или я что-то не понял?