結果
| 問題 |
No.1184 Hà Nội
|
| コンテスト | |
| ユーザー |
Ichimiya
|
| 提出日時 | 2021-06-07 00:28:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 312 bytes |
| コンパイル時間 | 1,494 ms |
| コンパイル使用メモリ | 164,952 KB |
| 実行使用メモリ | 16,968 KB |
| 最終ジャッジ日時 | 2024-11-23 21:52:53 |
| 合計ジャッジ時間 | 53,669 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | WA * 10 TLE * 17 |
ソースコード
#include <bits/stdc++.h>
#define NIL (-1)
#define ll long long
using namespace std;
const double PI = acos(-1.0);
int main() {
ll N, L;
cin >> N >> L;
ll n = N / L;
n += N % L;
const ll mod = 998244353;
ll ans = 1;
while (n) {
ans *= 2;
ans %= mod;
n--;
}
cout << ans - 1 << endl;
return 0;
}
Ichimiya