結果

問題 No.593 4進FizzBuzz
ユーザー Konton7Konton7
提出日時 2019-05-08 23:16:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 205 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 10,680 KB
実行使用メモリ 12,032 KB
最終ジャッジ日時 2023-09-14 17:28:47
合計ジャッジ時間 32,617 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,844 KB
testcase_01 AC 17 ms
7,960 KB
testcase_02 AC 17 ms
7,784 KB
testcase_03 AC 15 ms
7,808 KB
testcase_04 AC 16 ms
7,916 KB
testcase_05 AC 15 ms
7,920 KB
testcase_06 AC 15 ms
7,784 KB
testcase_07 AC 15 ms
7,924 KB
testcase_08 AC 15 ms
7,836 KB
testcase_09 AC 15 ms
7,788 KB
testcase_10 AC 16 ms
7,980 KB
testcase_11 AC 15 ms
7,808 KB
testcase_12 AC 15 ms
7,780 KB
testcase_13 AC 16 ms
7,784 KB
testcase_14 AC 15 ms
7,836 KB
testcase_15 AC 15 ms
7,812 KB
testcase_16 AC 1,497 ms
11,892 KB
testcase_17 WA -
testcase_18 AC 1,520 ms
11,808 KB
testcase_19 AC 1,515 ms
11,896 KB
testcase_20 WA -
testcase_21 AC 1,521 ms
11,860 KB
testcase_22 AC 1,560 ms
11,996 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 1,505 ms
11,924 KB
testcase_27 AC 1,581 ms
11,872 KB
testcase_28 WA -
testcase_29 AC 1,540 ms
11,892 KB
testcase_30 AC 1,479 ms
11,880 KB
testcase_31 AC 1,488 ms
11,868 KB
testcase_32 AC 1,501 ms
11,804 KB
testcase_33 AC 1,524 ms
11,944 KB
testcase_34 AC 1,565 ms
11,812 KB
権限があれば一括ダウンロードができます

ソースコード

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