From def8e18ff760f8861e18293becf665bbb6d8a898 Mon Sep 17 00:00:00 2001 From: Valentin Ochs Date: Thu, 3 Dec 2020 22:59:07 +0100 Subject: [PATCH] Initial solution for 3-2 --- 03-2-1.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 03-2-1.py diff --git a/03-2-1.py b/03-2-1.py new file mode 100644 index 0000000..b046ef7 --- /dev/null +++ b/03-2-1.py @@ -0,0 +1,3 @@ +d=open("/dev/stdin").readlines() +def f(y,x=1):return sum(d[i][i*y//x%31]=='#' for i in range(0,323,x)) +print(f(1)*f(3)*f(5)*f(7)*f(1,2))