結果
問題 |
No.593 4進FizzBuzz
|
ユーザー |
![]() |
提出日時 | 2019-05-02 23:14:00 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 208 bytes |
コンパイル時間 | 308 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 45,868 KB |
最終ジャッジ日時 | 2024-12-31 13:50:46 |
合計ジャッジ時間 | 14,360 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 WA * 6 |
ソースコード
s = input() s1 = [ int(v) for v in list(s) ] s2 = sum(s1[::2]) - sum(s1[1::2]) ans = "" if sum(s1) % 3 == 0: ans += "Fizz" if s2 == 0: ans += "Buzz" if ans == "": print(s) else: print(ans)