結果
問題 |
No.593 4進FizzBuzz
|
ユーザー |
|
提出日時 | 2025-01-11 21:46:31 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 375 bytes |
コンパイル時間 | 649 ms |
コンパイル使用メモリ | 11,776 KB |
実行使用メモリ | 817,412 KB |
最終ジャッジ日時 | 2025-01-11 21:47:19 |
合計ジャッジ時間 | 24,443 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 2 |
other | AC * 5 WA * 6 RE * 1 MLE * 19 |
ソースコード
def main(): inp1 = input() tens = str(0) for n in str(inp1): tens = tens * 4 tens += str(n) tens = int(tens) if tens % 15 == 0: print("FizzBuzz") elif tens % 3 == 0: print("Fizz") elif tens % 5 == 0: print("Buzz") else: print(inp1) if __name__ == '__main__': main()