結果

問題 No.637 X: Yet Another FizzBuzz Problem
ユーザー Theta
提出日時 2022-10-28 14:48:30
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 33 ms / 1,000 ms
コード長 294 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-05 19:22:17
合計ジャッジ時間 2,045 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    ctr = 0
    for number in map(int, input().split()):
        if number % 15 == 0:
            ctr += 8
        elif number % 3 == 0 or number % 5 == 0:
            ctr += 4
        else:
            ctr += len(str(number))

    print(ctr)


if __name__ == "__main__":
    main()
0