結果

問題 No.593 4進FizzBuzz
ユーザー wajima_wataruwajima_wataru
提出日時 2018-01-03 18:03:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 224 bytes
コンパイル時間 392 ms
コンパイル使用メモリ 10,540 KB
実行使用メモリ 12,012 KB
最終ジャッジ日時 2023-08-24 17:55:37
合計ジャッジ時間 19,590 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,876 KB
testcase_01 AC 15 ms
7,772 KB
testcase_02 AC 15 ms
7,784 KB
testcase_03 AC 15 ms
7,728 KB
testcase_04 AC 15 ms
7,732 KB
testcase_05 AC 15 ms
7,928 KB
testcase_06 AC 15 ms
7,780 KB
testcase_07 AC 15 ms
7,860 KB
testcase_08 AC 15 ms
7,820 KB
testcase_09 AC 15 ms
7,912 KB
testcase_10 AC 15 ms
7,876 KB
testcase_11 AC 15 ms
7,764 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 15 ms
7,732 KB
testcase_15 AC 15 ms
7,700 KB
testcase_16 AC 867 ms
11,812 KB
testcase_17 WA -
testcase_18 AC 827 ms
11,800 KB
testcase_19 AC 820 ms
11,744 KB
testcase_20 WA -
testcase_21 AC 852 ms
11,800 KB
testcase_22 AC 878 ms
11,828 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 879 ms
11,748 KB
testcase_27 AC 841 ms
11,796 KB
testcase_28 WA -
testcase_29 AC 836 ms
11,936 KB
testcase_30 WA -
testcase_31 AC 816 ms
11,764 KB
testcase_32 WA -
testcase_33 AC 827 ms
11,780 KB
testcase_34 AC 863 ms
11,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
num = 0
for i, n in enumerate(N):
    num += int(n) * 4 if i and 1 else int(n)
if num % 15 == 0:
    print('FizzBuzz')
elif num % 3 == 0:
    print('Fizz')
elif num % 5 == 0:
    print('Buzz')
else:
    print(N)
0