結果
| 問題 | No.593 4進FizzBuzz | 
| コンテスト | |
| ユーザー |  Bioinfo_K | 
| 提出日時 | 2017-11-10 22:48:01 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 514 bytes | 
| コンパイル時間 | 237 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 25,332 KB | 
| 最終ジャッジ日時 | 2024-11-24 13:03:21 | 
| 合計ジャッジ時間 | 59,254 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 WA * 1 | 
| other | AC * 10 WA * 2 TLE * 19 | 
ソースコード
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)
            
            
            
        