Показать все ветки Спрятать все ветки Показать все сообщения Спрятать все сообщения |
Advice for bruteforce | andreyDagger`~ | 1234. Bricks | 25 янв 2023 01:47 | 1 |
Bruteforcing length gives WA, bruteforcing angle gives AC |
To admins: weak tests | yyll | 1234. Bricks | 28 май 2021 08:08 | 1 |
My accepted program 9380769 fails on the test: 1 3 100 1.1 3 |
AC hint | gdh | 1234. Bricks | 12 мар 2019 18:47 | 2 |
Problem should have weak tests if you got AC xD |
hints | ASK | 1234. Bricks | 20 мар 2018 16:02 | 1 |
hints ASK 20 мар 2018 16:02 for all-integer comparison you have to use int64_t do not derive the inequality by hand, use Maxima: rot(c,s) := matrix([c,-s],[s,c]); /* D: sqrt(a^2+b^2); */ ma: rot(e/D, sqrt(D^2-e^2)/D); mb: rot(b/D, a/D); dd: (ma.mb.[a,-b])[1][1],ratsimp; load(ineq)$ assume(D>0)$ assume(a>0)$ assume(b>0)$ assume(d>0)$ assume(e>0)$ ne: d >= dd; ne: (ne * D^2)-2*a*b*e,ratsimp; |
Help! Please, give some hints! | Pasha | 1234. Bricks | 28 ноя 2015 15:37 | 6 |
In what position brick can fall through the hole? Why program like follows doesn't work properly? var a, b, c, d, e: real; begin readln(a, b, c, d, e); if (a<=d)and(b<=e)or (a<=e)and(b<=d)or (a<=d)and(c<=e)or (a<=e)and(c<=d)or (b<=d)and(c<=e)or (b<=e)and(c<=d) then writeln('YES') else writeln('NO') end. We can rotate bricks! Example 1x10x10 we can push to 9x9 Thanks for Your hint! I've got AC now. Edited by author 28.07.2004 11:31 Thanks for Your hint! I've got AC now. Edited by author 28.07.2004 11:31 Thanks for Your hint! I've got AC now. Edited by author 28.07.2004 11:31 Haha, I wrote the exactly same code... |
I got wa#16, help me please :( | Crash_access_violation | 1234. Bricks | 21 мар 2014 18:03 | 7 |
tanx... Edited by author 07.11.2008 21:32 "a <= b" -> "a < b+eps" "a < b" -> "a < b-eps" eps = 1e-8 was enough for this prolem I use you hint... but I got wa#16 :( Some tests 10 10 1 9 6 NO 10 10 1 9 7 YES Can you explain why the second answer is YES. Need it badly |
WA 16 | Miladin | 1234. Bricks | 1 авг 2011 23:14 | 1 |
WA 16 Miladin 1 авг 2011 23:14 Can anyone help me with test #16? Keep getting WA. If anyone knows what is test#16. Thanks in advance! |
Advice | Anatoly | 1234. Bricks | 13 сен 2009 15:39 | 1 |
Advice Anatoly 13 сен 2009 15:39 I had good formula but couldn't get AC because of precision problems. So, I multiplied input by 10, put it to integers, and transformed formula to avoid "sqrt" and "/". If every variable is integer => there are no precision problems and there is AC. |
I ACed by simulation.. ha ha... | Maigo Akisame (maigoakisame@yahoo.com.cn) | 1234. Bricks | 10 авг 2008 15:59 | 2 |
|
whats wrong? | Alexander Sokolov [MAI] | 1234. Bricks | 22 сен 2006 18:41 | 1 |
here is my code please give some tests... program brick(input,output); var a,b:array[1..3] of real; c:array[1..2,1..3] of real; i,j,k:integer; u:integer; t,y:boolean; begin for i:=1 to 3 do read(a[i]); for i:=1 to 2 do read(b[i]); for i:=1 to 2 do begin for j:=1 to 3 do begin c[i,j]:=b[i]-a[j]; end; end; for j:=1 to 3 do begin if (c[1,j]>=0) then begin t:=true; u:=j; end; end; for j:=1 to 3 do begin if (c[2,j]>=0) and (u<>j) then y:=true; end; if t and y then begin writeln('YES'); halt; end; writeln('NO'); end. |
test 16 ? | BahA | 1234. Bricks | 28 окт 2005 11:28 | 3 |
Re: test 16 ? ACM.Tolstobrov_Anatoliy[Ivanovo SPU] 28 окт 2005 02:05 I create many formuls but all my formuls get WA on diffrents test, I not understand Why. I use binary Searching and got AC very easy. Double with 1e-8 enought. my code 590 bytes. can u explain more clearly |
WA Test #28 | Maxim Korchyomkin | 1234. Bricks | 27 сен 2005 01:13 | 1 |
Can somebody give me hint about this test |
AC!!! | Yu YuanMing | 1234. Bricks | 8 июл 2004 13:21 | 1 |
AC!!! Yu YuanMing 8 июл 2004 13:21 |
WA test #14!!! | Tratata (barssimfi@mail.ru) | 1234. Bricks | 12 апр 2004 15:29 | 3 |
Help me please. I got WA on test #14 in problem 1234. give me anybody any tests. please can you post your AC or send it to me? slob@k.ro |