887 - Revolutionary Calendar

All about problems in Volume 8. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
twinsen
New poster
Posts: 2
Joined: Thu Nov 10, 2005 9:41 am

887 - Revolutionary Calendar

Post by twinsen »

Hello.

Can somebody send me another testing data for this problem?
My program works fine for testing data, except two cases:
16-jaguar-1054284 16-gum-19973
43-over-1948798 20-mar-1058036

For this two lines my program generates these results:
377774107
325343880

and I don't know why :-(

twinsen
New poster
Posts: 2
Joined: Thu Nov 10, 2005 9:41 am

Isn't there nobody to kick me a little bit?

Post by twinsen »

I still got WA.
I dont know why my program calculates bad differences between dates only in those two cases,
i.e. when the first date is later than the second one...
Maybe I understood the problem wrongly :-(

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 887 - Revolutionary Calendar

Post by brianfry713 »

My AC program prints the absolute value of the difference of the two dates.
Check input and AC output for thousands of problems on uDebug!

Post Reply

Return to “Volume 8 (800-899)”