結果

問題 No.637 X: Yet Another FizzBuzz Problem
コンテスト
ユーザー lam6er
提出日時 2025-03-20 20:16:17
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 64 ms / 1,000 ms
コード長 275 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 235 ms
コンパイル使用メモリ 96,484 KB
実行使用メモリ 79,104 KB
最終ジャッジ日時 2026-07-07 08:37:36
合計ジャッジ時間 4,159 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

# 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