結果

問題 No.593 4進FizzBuzz
ユーザー Bioinfo_K
提出日時 2017-11-10 22:55:29
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 514 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 28,348 KB
最終ジャッジ日時 2024-11-24 13:12:14
合計ジャッジ時間 59,401 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 12 TLE * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,collections
sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

N = S()

def Base_n_to_10(X,n):
    out = 0
    for i in range(1,len(str(X))+1):
        out += int(X[-i])*(n**(i-1))
    return out#int out

n = Base_n_to_10(N,4)

if n%15 == 0:
    print("FizzBuzz")
elif n%3 == 0:
    print("Fizz")
elif n%5 == 0:
    print("Buzz")
else:
    print(N)
0