結果
| 問題 |
No.1184 Hà Nội
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-31 21:24:00 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 160 bytes |
| コンパイル時間 | 168 ms |
| コンパイル使用メモリ | 81,792 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-11-17 02:26:10 |
| 合計ジャッジ時間 | 2,255 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 WA * 4 |
ソースコード
import math
N, L = map(int, input().split())
mod = 998244353
M = math.ceil(N / L)
ans = pow(2, M, mod) - 1
if ans == -1:
ans = mod - 1
print(ans)