結果

問題 No.637 X: Yet Another FizzBuzz Problem
ユーザー Seha46041561
提出日時 2019-03-31 14:44:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 1,000 ms
コード長 325 bytes
コンパイル時間 213 ms
コンパイル使用メモリ 82,372 KB
実行使用メモリ 53,932 KB
最終ジャッジ日時 2024-11-21 16:02:41
合計ジャッジ時間 2,158 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

N = list(map(int, input().split()))

risuto = []
for n in N:
    if n % 3 == 0 and n % 5 == 0:
        risuto.append('FizzBuzz')
    elif n % 3 == 0:
        risuto.append('Fizz')
    elif n % 5 == 0:
        risuto.append('Buzz')
    else:
        risuto.append(str(n))

ans = 0
for i in risuto:
    ans += len(i)
print(ans)
0