677A - Vanya and Fence

Run Settings
LanguagePython
Language Version
Run Command
def fandf(h, friends): count = 0 for i in friends: if i > h: count += 2 else: count += 1 return count if __name__ == "__main__": n, h = list(map(int, input().split())) friends = list(map(int, input().split())) print(fandf(h, friends))
Editor Settings
Theme
Key bindings
Full width
Lines