結果

問題 No.1184 Hà Nội
ユーザー t98slidert98slider
提出日時 2024-05-04 09:59:05
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 4,036 ms
コンパイル使用メモリ 260,392 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-25 20:03:52
合計ジャッジ時間 5,063 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <atcoder/all>
#include <bits/stdc++.h>
using namespace std;

int main(){
    long long n, l;
    cin >> n >> l;
    cout << (atcoder::modint998244353(2).pow((n + l - 1) / l) - 1).val() << endl;
}
0