import bisect
def calc_dial_time(n):
dial = ['A', 'D', 'G', 'J', 'M', 'P', 'T', 'W']
time = sum(bisect.bisect(dial, x) + 2 for x in n)
print(time)
문제가 뭔소린지 모르겠음 대충 이렇게 하면 됨?
import bisect
def calc_dial_time(n):
dial = ['A', 'D', 'G', 'J', 'M', 'P', 'T', 'W']
time = sum(bisect.bisect(dial, x) + 2 for x in n)
print(time)
문제가 뭔소린지 모르겠음 대충 이렇게 하면 됨?
댓글 0