From e115a73a358a14ee924003a35cf4c7f4f8e2e2b0 Mon Sep 17 00:00:00 2001 From: treecity Date: Fri, 6 Apr 2012 17:59:58 +0200 Subject: [PATCH] 1 --- 1.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 1.py diff --git a/1.py b/1.py new file mode 100644 index 0000000..c013de6 --- /dev/null +++ b/1.py @@ -0,0 +1,6 @@ +def gauss(max,base=1): + max = int(max/base)*base + return max*(max+base)/(2*base) + +max = 999 +print gauss(max,3) + gauss(max,5) - gauss(max,15) \ No newline at end of file -- 2.47.3