We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prime Dates
- Discussions
Prime Dates
Prime Dates
Sort by
recency
|
22 Discussions
|
Please Login in order to post a comment
I fixed the existing code. When I submit, all the hiden tests fail. I checked one, and it reported a "runtime error" but, no other information. I deserve my points back.
Code won't even run for Java 7 or 15...it reports some python error. What a pathetic joke this is.
The problem should include the rules for leap years as part of the instructions. Here is the correct version of the leap year code.
This problem is so horribly written, it needs to be completely redone, that gives the leap year formula in the problem statement. And that's not mentioning this line 'Firstly, sequentially concatinate the date, month and year, into a new integer x erasing the leading zeroes.' But in a solution that 100% works, x contains dates like this 2082025 which is 2 08 2025, so there is a leading zero for the month.
Line 6
month[2] = 28 -> month[2] = 29
Line 8
month[2] = 29 -> month[2] = 28
Line 35
x = x * 1000 + y1 -> x = x * 10000 + y1
Line 36
if x % 4 == 0 and x % 7 == 0: -> if x % 4 == 0 or x % 7 == 0:
Line 47
m1 = m1 + 1 -> m1 = 1
I dont understand, I have a blank page for c#