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

yangdong GOT ac [3] // Problem 1161. Stripies 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].
AYUBXON UBAYDULLAYEV (IT of TUIT) Re: GOT ac [2] // Problem 1161. Stripies 25 May 2012 17:24
what's mean here is delete(a[1],a[2]); don't understand
Anupam Ghosh, Wipro Technologies Re: GOT ac [1] // Problem 1161. Stripies 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
AYUBXON UBAYDULLAYEV TUIT Re: GOT ac // Problem 1161. Stripies 27 Nov 2012 18:08
Thanks