Skip to content

Commit

Permalink
add ARC003A
Browse files Browse the repository at this point in the history
  • Loading branch information
IsHYuhi committed Oct 17, 2020
1 parent 6f6c7ea commit baa0520
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ARC/ARC003/A.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
n = int(input())
total = 0
dic = {'A': 4, 'B': 3, 'C': 2, 'D': 1, 'F':0}
gp = list(input())
for e in gp:
total += dic[e]
print(total/n)

0 comments on commit baa0520

Please sign in to comment.