結果

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

ソースコード

diff #

line=input()
line=line.rstrip().split(" ")
list1=[]
for i in range(5):
    list1.append(int(line[i]))
#print(list1)
count=0
i=0
for i in range(5):
    if list1[i]%15==0:
        count+=8
    elif list1[i]%5==0:
        count+=4
    elif list1[i]%3==0:
        count+=4
    elif list1[i]<=9:
        count+=1
    elif list1[i]<=99:
        count+=2
    else:
        count+=3
print(count)


        
0