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