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 1161. Stripies

GOT ac
Posted by yangdong 18 Oct 2010 17:52
I've read it for 15 min..AC at the first time...
sort all the integer to a descending sequence.
repeat for n-1 times:
combine a[1] and a[2](2sqrt(xy))
delete(a[1],a[2])
insert the new real number into the sequence
and remember to keep the descending.

print the final a[1].
Re: GOT ac
Posted by AYUBXON UBAYDULLAYEV (IT of TUIT) 25 May 2012 17:24
what's mean here is delete(a[1],a[2]); don't understand
Re: GOT ac
Posted by Anupam Ghosh, Wipro Technologies 18 Oct 2012 20:28
Hi Ayubxon,
             delete means "no longer worry about a[1] and a[2]".
You may not actually delete the values from array.

Regards
Anupam
Re: GOT ac
Posted by AYUBXON UBAYDULLAYEV TUIT 27 Nov 2012 18:08
Thanks