結果
| 問題 | No.593 4進FizzBuzz |
| コンテスト | |
| ユーザー |
StarMatyan
|
| 提出日時 | 2018-07-25 23:19:56 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 344 bytes |
| 記録 | |
| コンパイル時間 | 570 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 23,244 KB |
| 最終ジャッジ日時 | 2026-03-14 16:18:14 |
| 合計ジャッジ時間 | 8,804 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 12 RE * 19 |
ソースコード
datas = input(); nagasa = len(datas); result=0; mongon=""; four = 4 ** nagasa; for inp in range(0,nagasa): four = int(four / 4); result = result + int(datas[inp]) *four; if result % 3 == 0: mongon = mongon + "Fizz"; if result % 5== 0: mongon = mongon + "Buzz"; if result % 3 == 0 or result % 5== 0: print(mongon); else: print(datas);
StarMatyan