diff --git a/src/callforproblems.py b/src/callforproblems.py new file mode 100644 index 0000000..250f080 --- /dev/null +++ b/src/callforproblems.py @@ -0,0 +1,3 @@ +n = int(input()) +d = [int(input()) for _ in range(n)] +print(sum(v % 2 for v in d)) diff --git a/src/composedrhythms.py b/src/composedrhythms.py new file mode 100644 index 0000000..bf48f43 --- /dev/null +++ b/src/composedrhythms.py @@ -0,0 +1,12 @@ +n = int(input()) +threes = n // 3 +remainder = n % 3 +if remainder == 1: + twos = 2 + threes -= 1 +elif remainder == 2: + twos = 1 +else: + twos = 0 +print(threes + twos) +print(*(threes * ["3"] + twos * ["2"]))