結果

問題 No.593 4進FizzBuzz
ユーザー Konton7
提出日時 2019-05-08 23:16:59
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 205 bytes
コンパイル時間 135 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 14,756 KB
最終ジャッジ日時 2024-07-02 00:35:59
合計ジャッジ時間 37,387 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()

ls = len(s)

s3 = 0
s5 = 0

for i in range(ls):
	s3 += int(s[i])
	s5 += int(s[i])
	s5 *= -1


ans = ""
if s3%3 == 0:
	ans += "Fizz"
if s5 == 0:
	ans += "Buzz"
if ans == "":
	ans = s
print(ans)
0