Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
zehengl committed Feb 29, 2024
1 parent 39f3cea commit 093c045
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/fourdierolls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
n = int(input())
d = [int(d) for d in input().split()]
t = 6 ** (4 - n)
if len(set(d)) < len(d):
m = 0
else:
m = 1
for _ in range(n, 4):
m *= 6 - n
n += 1
print(m, t - m)

0 comments on commit 093c045

Please sign in to comment.