結果
| 問題 |
No.593 4進FizzBuzz
|
| コンテスト | |
| ユーザー |
StarMatyan
|
| 提出日時 | 2018-07-25 23:19:56 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 344 bytes |
| コンパイル時間 | 152 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 14,580 KB |
| 最終ジャッジ日時 | 2024-06-27 06:36:23 |
| 合計ジャッジ時間 | 3,521 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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