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

Roman Nazarkevych need help! [15] // Problem 1414. Astronomical Database 1 Nov 2005 20:31
Please give me some test becouse I always have WA#1!
I don't print dots, only spaces!
Safe Bird Calm down.. [12] // Problem 1414. Astronomical Database 2 Nov 2005 14:21
don't shout loudly and show your impatience.

case 1 is frequently similar or exactly the same as sample input. check it carefully, esp. the format.

what's more, you should check if you have put the word "sun" inside your words list.
Roman Nazarkevych Re: Calm down.. [11] // Problem 1414. Astronomical Database 3 Nov 2005 03:20
Of course I remember about the word "sun".
But inspite of it I can't find my mistake!
Roman Nazarkevych Re: Calm down.. [10] // Problem 1414. Astronomical Database 3 Nov 2005 20:17
Am I right that (e10<e2)?
Safe Bird I think you're right. [9] // Problem 1414. Astronomical Database 4 Nov 2005 09:39
I just used strcmp in C/C++.
Besides, i really met no trick.. I got AC directly/firstly during the contest
Roman Nazarkevych Re: I think you're right. [8] // Problem 1414. Astronomical Database 4 Nov 2005 18:08
I use strcmp too and I can't understand why WA#1.
Victor Barinov (TNU) Show your code! (-) [7] // Problem 1414. Astronomical Database 4 Nov 2005 20:56
Roman Nazarkevych Re: Show your code! (-) [6] // Problem 1414. Astronomical Database 5 Nov 2005 00:45
[code deleted]

Edited by moderator 08.11.2005 00:06
Victor Barinov (TNU) Re: Show your code! (-) [2] // Problem 1414. Astronomical Database 5 Nov 2005 04:27
You output only one space, but in description:
"Each name must be preceded by two spaces as it is shown in the sample"


Edited by author 05.11.2005 04:28
Roman Nazarkevych Re: Show your code! (-) [1] // Problem 1414. Astronomical Database 5 Nov 2005 04:36
I print two spaces, but they aren't shown in this page!
Shambala Strange! // Problem 1414. Astronomical Database 5 Nov 2005 21:10
It is really strange! I tested your code on simple tests with my prg and all outputs are equal...
You need help of author...
Vladimir Yakovlev (USU) Re: Show your code! (-) [2] // Problem 1414. Astronomical Database 8 Nov 2005 00:05
Your solution outputs last query twice!

Try this

while(cin>>c>>s){

instead of

while(!cin.eof()){
cin>>c>>s;
Roman Nazarkevych Re: Show your code! (-) [1] // Problem 1414. Astronomical Database 8 Nov 2005 03:41
Thank You!!!
You were right!!!

Edited by author 08.11.2005 16:43
Roman Nazarkevych Re: Show your code! (-) // Problem 1414. Astronomical Database 8 Nov 2005 16:43