結果
問題 |
No.593 4進FizzBuzz
|
ユーザー |
|
提出日時 | 2025-01-11 02:30:30 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 350 bytes |
コンパイル時間 | 1,119 ms |
コンパイル使用メモリ | 11,776 KB |
実行使用メモリ | 14,184 KB |
最終ジャッジ日時 | 2025-01-11 02:30:36 |
合計ジャッジ時間 | 5,122 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 4 |
other | RE * 31 |
ソースコード
def main(): inp1 = input() dig = 1 tens = 0 for n in int(inp1): tens *= 4 tens += n 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()