]> git.leopard-lacewing.eu Git - prjeul.git/commitdiff
1
authortreecity <schaeferpm@gmail.com>
Fri, 6 Apr 2012 15:59:58 +0000 (17:59 +0200)
committertreecity <schaeferpm@gmail.com>
Fri, 6 Apr 2012 15:59:58 +0000 (17:59 +0200)
1.py [new file with mode: 0644]

diff --git a/1.py b/1.py
new file mode 100644 (file)
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