ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1392. Dreaming of Stars

:(((((((((((((((w.a1 why:(((((((((((
Posted by +FAMAS+ 10 Jan 2006 00:57
give me wrong test, please
{$n+}
[be ili ne be] spasibo toliany


Edited by author 10.01.2006 02:12
Re: :(((((((((((((((w.a1 why:(((((((((((
Posted by ACM.Tolstobrov_Anatoliy[Ivanovo SPU] 10 Jan 2006 01:36

test
2
1 1 1 2
3 3 3 1

Answer 0, 1


You mistake on this line
  s2:=sqr(r[i]+r[t]);
Understand What wrong?

But you again got Wa1. :)
Re: :(((((((((((((((w.a1 why:(((((((((((
Posted by ACM.Tolstobrov_Anatoliy[Ivanovo SPU] 10 Jan 2006 01:38

i find test where you program with strange output

4
1 1 1 1
5 6 3 2
3 4 2 5
1 3 5 2

Answer: "no comments"
tolyan zverb:)
Posted by ACM.Krupko_Victor[Ivanovo SPU] 10 Jan 2006 01:55
sqr(r[i]+r[t]) - this ok
zamena
h:=m[i]; m[i+1]:=m[i]; m[i]:=h; :))

wa52:)
Re: :(((((((((((((((w.a1 why:(((((((((((
Posted by Гладких Максим 15 Jan 2006 01:53
Why answer is  0, 1???
Distance between centers of planets is bigger then sum of radiuses!
you right
Posted by ACM.Krupko_Victor[Ivanovo SPU] 15 Jan 2006 02:31
answer
0
1

sqrt(4+4+4)>2+1
tolian lol:)
P.S.
Posted by ACM.Tolstobrov_Anatoliy[Ivanovo SPU] 15 Jan 2006 04:03

ofCouse Answer is
0
1

I Write When
s2:=sqr(r[i]+r[t]); <=Mistake here correct
s2:=r[i]+r[t]; <=it correct.

At last you have received AC.

P.S. My code only 775 bytes.
Re: P.S.
Posted by Oleg Strekalovsky aka OSt [Vologda SPU] 30 Jul 2009 19:46
And don't use  squareRoot. Compute in sqr =)
Re: :(((((((((((((((w.a1 why:(((((((((((
Posted by IgorKoval(from Pskov) 17 May 2012 16:19
I get WA 1 because I forgot to sort stars in each archipelago when I output stars. =)

Edited by author 17.05.2012 16:19

Edited by author 17.05.2012 16:20