From c476460b14ca4e4af2e1494f975a6a514b0edd53 Mon Sep 17 00:00:00 2001 From: Julien Lengrand-Lambert Date: Thu, 19 Jan 2012 10:13:04 +0100 Subject: [PATCH] Prepares problem 19. Problems 18 and 67 should be completed ! ! --- e_19.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 e_19.py diff --git a/e_19.py b/e_19.py new file mode 100755 index 0000000..13f5a06 --- /dev/null +++ b/e_19.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python +""" + ##--- + # jlengrand + #Created on : Thu Jan 19 10:12:06 CET 2012 + # + # DESCRIPTION : Solves problem 19 of Project Euler + You are given the following information, but you may prefer to do some research for yourself. + + 1 Jan 1900 was a Monday. + Thirty days has September, + April, June and November. + All the rest have thirty-one, + Saving February alone, + Which has twenty-eight, rain or shine. + And on leap years, twenty-nine. + A leap year occurs on any year evenly divisible by 4, but not on a century unless it is divisible by 400. + How many Sundays fell on the first of the month during the twentieth century (1 Jan 1901 to 31 Dec 2000)? + ##--- +""" +def first_sundays(): + """ + """ + + return 1 + +if __name__ == '__main__': + print "Answer : %d" % (first_sundays())