ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1793. Тарелки 2

WA25
Послано bsu.mmf.team 16 окт 2010 16:10
people! who has any ideas?
Re: WA25
Послано Stav_team 16 окт 2010 16:32
What about test 13? What is test ??!?!?!
Re: WA25
Послано CABALA 16 окт 2010 16:40
Check if the plate fits in the tray
Re: WA25
Послано Stav_team 16 окт 2010 17:33
I check plate if in tray but WA 13 !!!
Re: WA25
Послано Oleg Strekalovsky [Vologda SPU] 17 окт 2010 02:32
bsu.mmf.team писал(a) 16 октября 2010 16:10
people! who has any ideas?
Do you found test or reason for WA 25?
Re: WA25
Послано Ibragim Atadjanov (Tashkent U of IT) 17 окт 2010 03:15
I also had that problem but when I checked if big plate is placed in tray (2 * r > b  here r is the radius of cone at the height d (d < h) and b is small side of tray).
But now I have wa on test31

good luck
Re: WA32 please help
Послано Ibragim Atadjanov (Tashkent U of IT) 17 окт 2010 03:28


Edited by author 17.10.2010 03:39
Re: WA25
Послано Oleg Strekalovsky [Vologda SPU] 17 окт 2010 03:28
Ibragim Atadjanov (Tashkent U of IT) писал(a) 17 октября 2010 03:15
I also had that problem but when I checked if big plate is placed in tray (2 * r > b  here r is the radius of cone at the height d (d < h) and b is small side of tray).
But now I have wa on test31

good luck
Thanks. I can add, that we must check:
0 <= x + r && x + r <= w && 0 <= x - r && x - r <= w &&
0 <= y + r && y + r <= h && 0 <= y - r && y - r <= h;
for both plate x,y - coordinates of plate center's, r - minimal radius of plate, w,h - max(a,b), min(a,b)

Test:
2 10 1
1 3
1 3
2
Ans:
NO

Edited by author 17.10.2010 03:31
Re: WA25
Послано Ibragim Atadjanov (Tashkent U of IT) 17 окт 2010 03:39
thanks your test helped me a lot. Thanks again
Re: WA25
Послано bsu.mmf.team 17 окт 2010 13:37
Yes! It was a very stupid mistake! I checked if radius of plates on the height d is not greater than a and not grater than b. But I should check their diameter instead it! This fact costed me 13 fail submissions...
Re: WA25
Послано melkiy 18 окт 2010 00:13
I've read all the advice: my code meets all of them. Any other suggestions on WA25? Maybe someone is ready to look at my code? My e-mail is in my info. Thanks for any help.
Re: WA25
Послано MAK 18 окт 2010 15:32
I made a stupid mistake while reading the input data. First I read bottom sides and then top sides. Surprisingly, this solution bring me to WA25 and half-an-hour debugging.
Re: WA25
Послано melkiy 18 окт 2010 19:06
It turned out I had read data in the same wrong manner and also got WA25! MAK, your advice was the most useful in this discussion ))
Re: WA25
Послано D-305 19 окт 2010 23:06
Try this test:
9 15 1
1 2
1 5
1

Answer is NO.
Re: WA25
Послано alp 26 фев 2011 00:45
Why NO?
First (d=2)koord: 2 2
Second (d=5) koord: 4 10

I think YES, but WA 25...
Re: WA25
Послано alp 26 фев 2011 18:28
i understood...
Re: WA25
Послано Dmitri Belous 9 окт 2017 20:25
This test helped me on WA25:
20 28 1
1 2
11 12
1
Answer: NO.