2080 - Floating Point Numbers

Problems from Rocky Mountain regional contest

Moderator: Board moderators

2080 - Floating Point Numbers

Postby Wojciech Migda » Thu Jul 20, 2006 9:18 pm

Hi,

well I have another doubts about the problem under consideration. I happily reproduce the sample output data (with possible difference being the width of the exponent field equal 2 characters). I do not pass the test, I can live with that, but it would really make things easier if I knew three things:

1. do I have to put "Program 6 by team X" and "End of program 6 by team X" messages at the begining and end of the output ?

2. is it possible tha the last input line with the string to be processed doesn't end with EOL sign ?

3. does it matter what EOL I put in my output ? 0x0a vs 0x0d/0x0a

thx for your help,

Wojtek
Wojciech Migda
New poster
 
Posts: 17
Joined: Thu Jul 20, 2006 1:08 pm

Postby Darko » Thu Jul 20, 2006 10:21 pm

Heh, hi again :)

1. Again - some people solved that problem, but this time it is an old problem with some old formatting requirements and, yes, you have to print those "... 6 by team X" lines.
2. yes - the last line might end with EOF (not sure about this particular one, but, in general, it is a good idea to check)
3. EOL is 0x0a, EOF is not 0x0d - it is -1 (but I wouldn't rely on that)

Here, if you are not sure about something, check my list of solved problems, if I solved it, it is definitely working (my solutions are mostly in Java) :)
http://acmicpc-live-archive.uva.es/nuev ... ?user=4733
My code for this one is ugly, a lot of formatting stuff.

Anyway, if you have doubts, maybe it is better to post in appropriate forum. Not many people come here, though, I'll help if I can.

Darko
Darko
Experienced poster
 
Posts: 72
Joined: Fri Nov 11, 2005 8:34 am
Location: Calgary, Canada

Postby Wojciech Migda » Fri Jul 21, 2006 8:22 am

hi darko (again ;) )

thank for your assistance. It's gonna be easier now. BTW: there are no sources available under the attached url :(

regards,

Wojtek
Wojciech Migda
New poster
 
Posts: 17
Joined: Thu Jul 20, 2006 1:08 pm

Postby Darko » Fri Jul 21, 2006 4:20 pm

No, there are no sources (some people like to send other people's code as their own) but if you need something, just let me know.
Darko
Experienced poster
 
Posts: 72
Joined: Fri Nov 11, 2005 8:34 am
Location: Calgary, Canada

Postby Wojciech Migda » Sat Jul 22, 2006 12:17 am

well, the requirement to pass the tests is that the exponent is represented by exactly 3 digits, contrary to the standard 2-digit representation inherent to printf-like or std::cout functionality.

Wojtek
Wojciech Migda
New poster
 
Posts: 17
Joined: Thu Jul 20, 2006 1:08 pm


Return to Rocky Mountain

Who is online

Users browsing this forum: No registered users and 1 guest

cron