結果

問題 No.637 X: Yet Another FizzBuzz Problem
ユーザー shobonvip
提出日時 2022-11-24 04:15:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 1,000 ms
コード長 188 bytes
コンパイル時間 407 ms
コンパイル使用メモリ 82,276 KB
実行使用メモリ 53,184 KB
最終ジャッジ日時 2024-09-25 06:06:56
合計ジャッジ時間 2,641 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

a=list(map(int,input().split()))
ans = 0
for i in a:
	if i%3 == 0:
		if i%5 == 0:
			ans += 8
		else:
			ans += 4
	else:
		if i%5 == 0:
			ans += 4
		else:
			ans += len(str(i))
print(ans)
0