Skip to content

Commit baa0520

Browse files
author
IsHYuhi
committed
add ARC003A
1 parent 6f6c7ea commit baa0520

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ARC/ARC003/A.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
n = int(input())
2+
total = 0
3+
dic = {'A': 4, 'B': 3, 'C': 2, 'D': 1, 'F':0}
4+
gp = list(input())
5+
for e in gp:
6+
total += dic[e]
7+
print(total/n)

0 commit comments

Comments
 (0)