結果

問題 No.1184 Hà Nội
ユーザー keisuke6
提出日時 2022-10-15 16:08:49
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 344 bytes
コンパイル時間 1,824 ms
コンパイル使用メモリ 193,308 KB
最終ジャッジ日時 2025-02-08 06:36:09
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 2 WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define int long long
int pow(int x, int n, int MOD) {
  int ret = 1;
  while (n > 0) {
    if (n & 1) ret = ret * x % MOD;
    x = x * x % MOD;
    n >>= 1;
  }
  return (ret+998244352)%MOD;
}
signed main(){
    int N,L;
    cin>>N>>L;
    int MOD = 998244353;
    cout<<pow(2,N-L+1,MOD)<<endl;
}
0