2023-02-01から1ヶ月間の記事一覧
import collections ransomNote = "afasdgdaasdfsdaaasdfd" rm = collections.Counter(ransomNote) Counter({'a': 7, 'd': 6, 's': 4, 'f': 3, 'g': 1})
def base10int(value, base): if (int(value / base)): return base10int(int(value / base), base) + str(value % base) return str(value % base)