結果

問題 No.593 4進FizzBuzz
ユーザー syunsukesyunsuke
提出日時 2019-09-08 13:31:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 299 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 10,648 KB
実行使用メモリ 12,024 KB
最終ジャッジ日時 2023-09-09 22:27:20
合計ジャッジ時間 39,563 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,780 KB
testcase_01 AC 15 ms
7,904 KB
testcase_02 AC 15 ms
7,776 KB
testcase_03 AC 15 ms
7,888 KB
testcase_04 AC 14 ms
7,864 KB
testcase_05 AC 15 ms
7,804 KB
testcase_06 AC 15 ms
7,816 KB
testcase_07 AC 14 ms
7,744 KB
testcase_08 AC 15 ms
7,776 KB
testcase_09 AC 16 ms
7,828 KB
testcase_10 AC 15 ms
7,880 KB
testcase_11 AC 15 ms
7,820 KB
testcase_12 AC 15 ms
7,824 KB
testcase_13 AC 15 ms
7,828 KB
testcase_14 AC 14 ms
7,784 KB
testcase_15 AC 15 ms
7,776 KB
testcase_16 AC 1,961 ms
11,964 KB
testcase_17 AC 1,920 ms
11,820 KB
testcase_18 AC 1,866 ms
11,824 KB
testcase_19 AC 1,967 ms
11,860 KB
testcase_20 AC 1,879 ms
11,920 KB
testcase_21 AC 1,913 ms
11,896 KB
testcase_22 AC 1,944 ms
11,892 KB
testcase_23 AC 1,969 ms
11,916 KB
testcase_24 AC 1,933 ms
11,828 KB
testcase_25 AC 1,965 ms
12,024 KB
testcase_26 AC 1,972 ms
11,864 KB
testcase_27 AC 1,936 ms
11,988 KB
testcase_28 AC 1,905 ms
11,884 KB
testcase_29 AC 1,984 ms
11,980 KB
testcase_30 AC 1,907 ms
11,912 KB
testcase_31 AC 1,883 ms
11,864 KB
testcase_32 AC 1,915 ms
11,896 KB
testcase_33 TLE -
testcase_34 AC 1,934 ms
11,960 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

L=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(L)
0