## Necroposting

View as PDF

Points: 5
Time limit: 1.0s
Memory limit: 64M

Author:
Problem type
Allowed languages
Ada, Assembly, Awk, Brain****, C, C#, C++, COBOL, CommonLisp, D, Dart, F#, Forth, Fortran, Go, Groovy, Haskell, Intercal, Java, JS, Kotlin, Lisp, Lua, Nim, ObjC, OCaml, Octave, Pascal, Perl, PHP, Pike, Prolog, Python, Racket, Ruby, Rust, Scala, Scheme, Sed, Swift, TCL, Text, Turing, VB, Zig

The DMOJ admins are trying to stop necroposting, that is, the act of posting to a long inactive discussion thread (on a forum).

The DMOJ admins want to gather some data on necroposting, so they have tasked you to look at some comment threads. You are given a comment and the date of its reply, and are tasked with finding the number of days that have elapsed between the two.

#### Input Specification

The first line of input will contain a date in the form YYYY/MM/DD.
The second line of input will contain a second date in the same form.

You may assume that the second date will always come after the first, and that all dates are in the Gregorian calendar. Additionally, you may assume that all dates come after 0 CE.

#### Output Specification

A single non-negative integer, the time difference between the two dates, in days.

#### Sample Input

2018/02/08
2020/07/26

#### Sample Output

899

#### Note about Sample Output

That's clearly a necropost.

#### Trivia

The "longest year in human history" was 46 BCE, as Julius Caeser realigned the Roman calendar to the Julian calendar.

## Comments

• commented on July 31, 2020, 6:01 p.m.

Solution written in python shouldn't worth 5 points...

• commented on July 31, 2020, 7:41 p.m.

Wait till you see bf4...