158 - Calendar
Moderator: Board moderators
158 - Calendar
Can anybody tell me what is the order ?
Shoule I order the anniversaries by stars, date and then input stream,or
order them by date, stars and the input stream ?
And if one anniversary has zero star after count,shoule I add it into output?
Shoule I order the anniversaries by stars, date and then input stream,or
order them by date, stars and the input stream ?
And if one anniversary has zero star after count,shoule I add it into output?
Excuse me..
The problem says ...
"If several events are scheduled for the same day, order them by
relative importance (number of stars)."
Does not it mean that the order is date,star,then input stream..??
I have see you suggestion in bbs:\\ofo.twbbs.org
And I tried star, date then input stream,but still WA.....
I really don't know what's wrong...
The problem says ...
"If several events are scheduled for the same day, order them by
relative importance (number of stars)."
Does not it mean that the order is date,star,then input stream..??
I have see you suggestion in bbs:\\ofo.twbbs.org
And I tried star, date then input stream,but still WA.....
I really don't know what's wrong...
158 Calendar
Is there any trick or unclear points on this problem?
Thanks
Thanks
Furthermore
So, we need to order the anniversaries by day of year in acsending order, importances in decending order and input appearence in acsending order?
Alright, let's get this straight:
1. read year
2. Read in anniversaries
3. read dates
output:
1. all anniversaries that happen today, order by input stream (not importance!)
2. Then, all other anniversaries that has a number of display stars > 0, order them first by decending number of stars, then ascending number of days apart if the stars are the same.
3. Keep in mind that anniversaries wraps around years.
That may not sound like what the problem what, but that's it!. Try it and you will know
1. read year
2. Read in anniversaries
3. read dates
output:
1. all anniversaries that happen today, order by input stream (not importance!)
2. Then, all other anniversaries that has a number of display stars > 0, order them first by decending number of stars, then ascending number of days apart if the stars are the same.
3. Keep in mind that anniversaries wraps around years.
That may not sound like what the problem what, but that's it!. Try it and you will know
WA in problem 158(Calendar)
I have tried my solution program with the original test, and i have the correct result. Also i have tried with other tests and i see the correct results..but the Judge replied me Wrong Answer (and say that my program was only running during 0:00:02 seconds.
I think that my solution is correct but the Judge says WA all time. Someone can help me: give me tests, or known if is necessary to control that the input format is correct
It's Urgentt!!!!!!
I think that my solution is correct but the Judge says WA all time. Someone can help me: give me tests, or known if is necessary to control that the input format is correct
It's Urgentt!!!!!!
-
- Learning poster
- Posts: 57
- Joined: Sun Sep 29, 2002 12:00 pm
- Location: in front of the monitor :-)
- Contact:
hello.
this thread should help you.
http://acm.uva.es/board/viewtopic.php?t ... hlight=158
there's a search option on the board. it should help.
this thread should help you.
http://acm.uva.es/board/viewtopic.php?t ... hlight=158
there's a search option on the board. it should help.