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 1414. Astronomical Database

How can I get where's the end of commands?
Posted by Lutsenko 15 Feb 2006 14:54
How can I get where's the end of commands? There are no files and eof() in pascal won't help.
Simply while not EOF do (-)
Posted by Michael Rybak (accepted@ukr.net) 15 Feb 2006 18:30
-
Re: Simply while not EOF do (-)
Posted by Tbilisi SU: Lutsenko 22 Feb 2006 20:20
Thanx, but now I have another problem: WA #5.
I'm adding all the stars, was it in the base or not. Then on a query I create a new array with stars matching the mask, but not in this array already. Then quicksort this array and output.
Maybe my algorythm is wrong and I should enter all the stars first, sort them and then output. This may work because only 20 first stars should be printed.
What can you say?
And sorry for my bad english :)
Do you add the word 'sun' at the beginning? (+)
Posted by Michael Rybak (accepted@ukr.net) 23 Feb 2006 01:19
Your algo seems to be correct.
Re: Simply while not EOF do (-)
Posted by Tkach 25 Feb 2006 00:42
I Write Simple Algo But WA 5 too...
Re: Simply while not EOF do (-)
Posted by Tbilisi SU: Andrew Lutsenko 7 Apr 2006 18:18
I do add the word "sun" in my base
Can't tell; I can send you my program so you compare the outputs for random tests (-)
Posted by Michael Rybak (accepted@ukr.net) 7 Apr 2006 19:36
-
Re: Can't tell; I can send you my program so you compare the outputs for random tests (-)
Posted by Tbilisi SU: Andrew Lutsenko 19 Apr 2006 21:48
I would be very gratefull, here's my email: zorg-n-ko@nm.ru