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 1901. Space Elevators

linkedlist gives wa21, arraylist takes 0.2s for AC
Posted by esbybb 5 Jun 2016 04:55
sort, read from head and tail\
if head+tail>maximum -> add head,tail to the answers (in front),\
otherwise, add head to answers (to the back)\
wow! interesting observation though