結果
| 問題 | No.593 4進FizzBuzz | 
| コンテスト | |
| ユーザー |  Konton7 | 
| 提出日時 | 2020-05-25 22:48:23 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1,764 ms / 2,000 ms | 
| コード長 | 207 bytes | 
| コンパイル時間 | 87 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 14,632 KB | 
| 最終ジャッジ日時 | 2024-10-13 02:19:04 | 
| 合計ジャッジ時間 | 35,054 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 31 | 
ソースコード
s = input() ls = len(s) s3 = 0 s5 = 0 for i in range(ls): s3 += int(s[i]) s5 += int(s[i]) s5 *= -1 ans = "" if s3%3 == 0: ans += "Fizz" if s5%5 == 0: ans += "Buzz" if ans == "": ans = s print(ans)
