結果

問題 No.637 X: Yet Another FizzBuzz Problem
ユーザー Nisshy_24
提出日時 2018-04-06 19:45:20
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 1,000 ms
コード長 251 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-06-28 19:02:41
合計ジャッジ時間 1,931 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections

list = input().split()
count = 0
for n in list:
    if (int(n) % 5 ==0) and (int(n) % 3 ==0):
        count += 8
    elif (int(n) % 5 ==0) or (int(n) % 3 ==0):
        count += 4
    else:
        count += int(len(n))
print(count)
0