結果

問題 No.637 X: Yet Another FizzBuzz Problem
ユーザー lam6er
提出日時 2025-03-20 18:36:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 1,000 ms
コード長 275 bytes
コンパイル時間 388 ms
コンパイル使用メモリ 82,100 KB
実行使用メモリ 53,808 KB
最終ジャッジ日時 2025-03-20 18:36:58
合計ジャッジ時間 2,646 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

# Read the input as integers
nums = list(map(int, input().split()))

total = 0
for num in nums:
    if num % 15 == 0:
        total += 8
    elif num % 3 == 0:
        total += 4
    elif num % 5 == 0:
        total += 4
    else:
        total += len(str(num))

print(total)
0