結果
| 問題 |
No.593 4進FizzBuzz
|
| コンテスト | |
| ユーザー |
Konton7
|
| 提出日時 | 2019-05-08 23:15:43 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 222 bytes |
| コンパイル時間 | 139 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 14,624 KB |
| 最終ジャッジ日時 | 2024-07-02 00:33:36 |
| 合計ジャッジ時間 | 37,897 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 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 print(s3%3,s5%5) ans = "" if s3%3 == 0: ans += "Fizz" if s5 == 0: ans += "Buzz" if ans == "": ans = s print(ans)
Konton7