Algorithms and Data Structures/Coding Practices

Kattis Average Character

brightlightkim 2022. 7. 20. 15:20

import math
s = input()
sum = 0
for i in range(len(s)):
    sum += ord(s[i])
average = sum / len(s)
print(chr(math.floor(average)))

'Algorithms and Data Structures > Coding Practices' 카테고리의 다른 글

Kattis a different problem  (0) 2022.07.20
Kattis Climbing Worm  (0) 2022.07.20
AlgoExpert Smallest Difference  (0) 2022.07.20
Kattis Sort  (0) 2022.07.20
Kattis Skru op!  (0) 2022.07.19