結果
問題 | No.593 4進FizzBuzz |
ユーザー |
![]() |
提出日時 | 2020-08-19 22:14:39 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 1,066 ms / 2,000 ms |
コード長 | 230 bytes |
コンパイル時間 | 288 ms |
コンパイル使用メモリ | 81,964 KB |
実行使用メモリ | 79,760 KB |
最終ジャッジ日時 | 2024-10-12 06:48:13 |
合計ジャッジ時間 | 23,307 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 31 |
ソースコード
N = input()M = 0for i in range(len(N)):M += pow(4, i, 15) * int(N[~i])M %= 15if M % 3 == 0 and M % 5 == 0:print('FizzBuzz')elif M % 3 == 0:print('Fizz')elif M % 5 == 0:print('Buzz')else:print(N)