Il tuo compito è produrre un solo numero; il numero di settimane ISO che un determinato intervallo di date interseca. Per citare Wikipedia:, An average year is exactly 52.1775 weeks longma non si tratta della media.
L'input è costituito da due date ISO separate da spazi:
0047-12-24 2013-06-01
La data di fine non è mai precedente alla data di inizio. Useremo il calendario gregoriano estrapolato per semplicità.
Casi test:
Format: input -> output
2015-12-31 2016-01-01 -> 1 (both are within week 53 of 2015)
2016-01-03 2016-01-04 -> 2 (the 3rd is within week 53, and the 4th is in week 1)
2015-12-24 2015-12-24 -> 1 (this single day is of course within a single week)
La tua soluzione dovrebbe gestire le date tra 0001-01-01e 9999-12-31.
Weeks start with Monday.