結果
問題 |
No.593 4進FizzBuzz
|
ユーザー |
![]() |
提出日時 | 2024-05-25 10:42:18 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 1,154 ms / 2,000 ms |
コード長 | 234 bytes |
コンパイル時間 | 291 ms |
コンパイル使用メモリ | 82,376 KB |
実行使用メモリ | 83,300 KB |
最終ジャッジ日時 | 2024-12-20 19:38:38 |
合計ジャッジ時間 | 24,541 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 31 |
ソースコード
N=input() score=0 N=N[::-1] for i in range(len(N)): score+=pow(4,i,15)*int(N[i]) if score%3==0 and score%5==0: print("FizzBuzz") elif score%3==0: print("Fizz") elif score%5==0: print("Buzz") else: print(N[::-1])