結果

問題 No.593 4進FizzBuzz
ユーザー naimonon77naimonon77
提出日時 2018-01-17 11:37:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 576 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 10,576 KB
実行使用メモリ 15,100 KB
最終ジャッジ日時 2023-08-25 20:32:11
合計ジャッジ時間 6,041 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
10,928 KB
testcase_01 AC 38 ms
10,896 KB
testcase_02 AC 40 ms
10,768 KB
testcase_03 AC 39 ms
10,860 KB
testcase_04 AC 38 ms
10,768 KB
testcase_05 AC 37 ms
10,796 KB
testcase_06 AC 38 ms
10,900 KB
testcase_07 AC 38 ms
10,756 KB
testcase_08 AC 38 ms
10,936 KB
testcase_09 AC 38 ms
10,932 KB
testcase_10 AC 39 ms
10,988 KB
testcase_11 AC 38 ms
10,804 KB
testcase_12 AC 38 ms
10,740 KB
testcase_13 AC 38 ms
10,808 KB
testcase_14 AC 39 ms
10,808 KB
testcase_15 AC 38 ms
10,756 KB
testcase_16 AC 55 ms
14,996 KB
testcase_17 AC 54 ms
15,000 KB
testcase_18 AC 54 ms
14,956 KB
testcase_19 AC 57 ms
15,004 KB
testcase_20 AC 55 ms
14,880 KB
testcase_21 AC 55 ms
15,064 KB
testcase_22 AC 57 ms
14,872 KB
testcase_23 AC 55 ms
15,008 KB
testcase_24 AC 55 ms
14,932 KB
testcase_25 AC 55 ms
14,928 KB
testcase_26 AC 56 ms
15,016 KB
testcase_27 AC 56 ms
15,036 KB
testcase_28 AC 56 ms
15,100 KB
testcase_29 AC 57 ms
14,844 KB
testcase_30 AC 55 ms
15,056 KB
testcase_31 AC 56 ms
14,936 KB
testcase_32 AC 55 ms
14,880 KB
testcase_33 AC 58 ms
14,920 KB
testcase_34 AC 55 ms
14,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-

from queue import Queue
import sys
import subprocess
import json
import time
import math
import re
#import sqlite3
import random
#import numpy as np
#from sklearn.datasets import fetch_mldata
#from statistics import mean, median, variance, stdev
#from chainer import cuda, Variable, FunctionSet, optimizers
#import chainer.functions as F

def FizzBuzz(str1):
    v = int(str1, 4)
    res = ""
    if (v % 3 == 0): res += "Fizz"
    if (v % 5 == 0): res += "Buzz"
    if (res == ""): return str1
    return res

str1 = input()
print(FizzBuzz(str1))



0