結果

問題 No.593 4進FizzBuzz
ユーザー mnrmnr
提出日時 2020-03-05 23:03:01
言語 PyPy2
(7.3.15)
結果
TLE  
実行時間 -
コード長 394 bytes
コンパイル時間 666 ms
コンパイル使用メモリ 77,184 KB
実行使用メモリ 212,640 KB
最終ジャッジ日時 2024-04-22 03:36:27
合計ジャッジ時間 7,184 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
80,768 KB
testcase_01 AC 81 ms
75,740 KB
testcase_02 AC 83 ms
75,512 KB
testcase_03 AC 83 ms
75,236 KB
testcase_04 AC 93 ms
75,776 KB
testcase_05 AC 106 ms
75,292 KB
testcase_06 AC 78 ms
75,300 KB
testcase_07 AC 77 ms
75,660 KB
testcase_08 AC 76 ms
75,652 KB
testcase_09 AC 76 ms
75,792 KB
testcase_10 AC 77 ms
75,776 KB
testcase_11 AC 76 ms
75,832 KB
testcase_12 AC 78 ms
75,264 KB
testcase_13 AC 77 ms
75,684 KB
testcase_14 AC 79 ms
75,772 KB
testcase_15 AC 77 ms
75,300 KB
testcase_16 TLE -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

def fzbz(n):
    l = list(str(n))
    sum = 0
    for i in l:
        sum += int(i)
    if sum % 3 == 0 and l[-1] == '0':
        print("FizzBuzz")
    elif sum % 3 == 0 and l[-1] == '5':
        print("FizzBuzz")
    elif sum % 3 == 0:
        print("Fizz")
    elif l[-1] == '0' or l[-1] == '5':
        print("Buzz")
    else:
        print(N)

N = int(input())
n10 = int(str(N),4)
fzbz(n10)
0