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))