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

need help!
Posted by Roman Nazarkevych 1 Nov 2005 20:31
Please give me some test becouse I always have WA#1!
It is not '.'(dot) but ' '(space). read the problem carefully.
Posted by Safe Bird 2 Nov 2005 11:01
Re: It is not '.'(dot) but ' '(space). read the problem carefully.
Posted by Roman Nazarkevych 2 Nov 2005 12:18
I don't print dots, only spaces!
Calm down..
Posted by Safe Bird 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.
Re: Calm down..
Posted by Roman Nazarkevych 3 Nov 2005 03:20
Of course I remember about the word "sun".
But inspite of it I can't find my mistake!
Re: Calm down..
Posted by Roman Nazarkevych 3 Nov 2005 20:17
Am I right that (e10<e2)?
I think you're right.
Posted by Safe Bird 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
Re: I think you're right.
Posted by Roman Nazarkevych 4 Nov 2005 18:08
I use strcmp too and I can't understand why WA#1.
Show your code! (-)
Posted by Victor Barinov (TNU) 4 Nov 2005 20:56
Re: Show your code! (-)
Posted by Roman Nazarkevych 5 Nov 2005 00:45
[code deleted]

Edited by moderator 08.11.2005 00:06
Re: Show your code! (-)
Posted by Victor Barinov (TNU) 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
Re: Show your code! (-)
Posted by Roman Nazarkevych 5 Nov 2005 04:36
I print two spaces, but they aren't shown in this page!
Strange!
Posted by Shambala 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...
Re: Show your code! (-)
Posted by Vladimir Yakovlev (USU) 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;
Re: Show your code! (-)
Posted by Roman Nazarkevych 8 Nov 2005 03:41
Thank You!!!
You were right!!!

Edited by author 08.11.2005 16:43
Re: Show your code! (-)
Posted by Roman Nazarkevych 8 Nov 2005 16:43