結果

問題 No.593 4進FizzBuzz
ユーザー syunsukesyunsuke
提出日時 2019-09-08 13:32:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 168 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 1,373 ms
コンパイル使用メモリ 86,032 KB
実行使用メモリ 80,408 KB
最終ジャッジ日時 2023-09-09 22:27:28
合計ジャッジ時間 7,446 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
70,920 KB
testcase_01 AC 71 ms
70,816 KB
testcase_02 AC 73 ms
70,728 KB
testcase_03 AC 72 ms
70,952 KB
testcase_04 AC 74 ms
70,944 KB
testcase_05 AC 72 ms
70,956 KB
testcase_06 AC 73 ms
70,860 KB
testcase_07 AC 71 ms
70,928 KB
testcase_08 AC 72 ms
71,120 KB
testcase_09 AC 72 ms
70,512 KB
testcase_10 AC 73 ms
70,712 KB
testcase_11 AC 72 ms
70,616 KB
testcase_12 AC 74 ms
71,100 KB
testcase_13 AC 71 ms
71,036 KB
testcase_14 AC 75 ms
70,772 KB
testcase_15 AC 71 ms
70,924 KB
testcase_16 AC 168 ms
79,488 KB
testcase_17 AC 147 ms
79,608 KB
testcase_18 AC 147 ms
79,608 KB
testcase_19 AC 145 ms
80,044 KB
testcase_20 AC 148 ms
79,716 KB
testcase_21 AC 141 ms
79,348 KB
testcase_22 AC 148 ms
79,832 KB
testcase_23 AC 145 ms
79,544 KB
testcase_24 AC 144 ms
79,592 KB
testcase_25 AC 141 ms
79,696 KB
testcase_26 AC 146 ms
80,408 KB
testcase_27 AC 145 ms
80,260 KB
testcase_28 AC 146 ms
79,848 KB
testcase_29 AC 146 ms
80,056 KB
testcase_30 AC 144 ms
79,620 KB
testcase_31 AC 145 ms
79,852 KB
testcase_32 AC 145 ms
79,360 KB
testcase_33 AC 143 ms
79,832 KB
testcase_34 AC 145 ms
79,368 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