結果

問題 No.637 X: Yet Another FizzBuzz Problem
ユーザー bellangeldindon
提出日時 2019-05-09 16:00:26
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 1,000 ms
コード長 179 bytes
コンパイル時間 47 ms
コンパイル使用メモリ 6,940 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2024-07-02 00:49:48
合計ジャッジ時間 1,346 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

a = map(int, raw_input().split())
ans = 0
for i in range(0, 5):
	if a[i]%3==0 and a[i]%5==0: ans += 8
	elif a[i]%3==0 or a[i]%5==0: ans += 4
	else: ans += len(str(a[i]))
print ans
0