結果

問題 No.593 4進FizzBuzz
ユーザー syunsukesyunsuke
提出日時 2019-09-08 13:29:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 305 bytes
コンパイル時間 347 ms
コンパイル使用メモリ 10,556 KB
実行使用メモリ 25,812 KB
最終ジャッジ日時 2023-09-09 22:26:16
合計ジャッジ時間 38,313 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,940 KB
testcase_01 AC 14 ms
7,964 KB
testcase_02 AC 15 ms
7,928 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 AC 15 ms
7,964 KB
testcase_08 AC 14 ms
7,920 KB
testcase_09 AC 15 ms
7,716 KB
testcase_10 RE -
testcase_11 AC 15 ms
7,784 KB
testcase_12 AC 15 ms
7,800 KB
testcase_13 AC 15 ms
7,868 KB
testcase_14 AC 15 ms
7,788 KB
testcase_15 AC 15 ms
7,860 KB
testcase_16 AC 1,877 ms
25,496 KB
testcase_17 AC 1,824 ms
25,412 KB
testcase_18 AC 1,915 ms
25,488 KB
testcase_19 RE -
testcase_20 AC 1,859 ms
25,416 KB
testcase_21 AC 1,852 ms
25,556 KB
testcase_22 RE -
testcase_23 AC 1,909 ms
25,620 KB
testcase_24 AC 1,946 ms
25,620 KB
testcase_25 AC 1,844 ms
25,764 KB
testcase_26 RE -
testcase_27 RE -
testcase_28 AC 1,848 ms
25,432 KB
testcase_29 RE -
testcase_30 AC 1,812 ms
25,536 KB
testcase_31 AC 1,836 ms
25,632 KB
testcase_32 AC 1,796 ms
25,688 KB
testcase_33 RE -
testcase_34 AC 1,950 ms
25,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

L=list(input())

T=0
for i in range(len(L)):
    T+=int(L[i])
    
F=0
for i in range(len(L)):
    if i%2==0:
        F-=int(L[len(L)-1-i])
    else:
        F+=int(L[len(L)-1-i])

if T%3==0 and F%5==0:
    print("FizzBuzz")
elif T%3==0:
    print("Fizz")
elif F%5==0:
    print("Buzz")
else:
    print(N)
0