結果
問題 | No.593 4進FizzBuzz |
ユーザー | nagataaaas |
提出日時 | 2018-01-21 17:31:49 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 217 bytes |
コンパイル時間 | 1,378 ms |
コンパイル使用メモリ | 84,324 KB |
実行使用メモリ | 266,996 KB |
最終ジャッジ日時 | 2023-08-26 19:44:00 |
合計ジャッジ時間 | 5,957 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 71 ms
75,448 KB |
testcase_01 | AC | 70 ms
71,228 KB |
testcase_02 | AC | 70 ms
71,304 KB |
testcase_03 | AC | 69 ms
71,280 KB |
testcase_04 | AC | 70 ms
71,156 KB |
testcase_05 | AC | 70 ms
71,096 KB |
testcase_06 | AC | 70 ms
71,084 KB |
testcase_07 | AC | 69 ms
71,196 KB |
testcase_08 | AC | 68 ms
70,844 KB |
testcase_09 | AC | 70 ms
71,004 KB |
testcase_10 | AC | 70 ms
71,256 KB |
testcase_11 | AC | 69 ms
70,844 KB |
testcase_12 | AC | 71 ms
71,108 KB |
testcase_13 | AC | 70 ms
71,112 KB |
testcase_14 | AC | 70 ms
71,160 KB |
testcase_15 | AC | 70 ms
71,004 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 | -- | - |
ソースコード
n = input() s = 0 for i in range(len(n)): s += int(n[i]) * (4**(len(n)-i)) if s % 3 == 0 and s % 5 == 0: print("FizzBuzz") elif s % 3==0: print("Fizz") elif s % 5 == 0: print("Buzz") else: print(n)