結果

問題 No.1184 Hà Nội
ユーザー 尻リハビリ
提出日時 2020-09-07 23:03:05
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 306 bytes
コンパイル時間 568 ms
コンパイル使用メモリ 69,888 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-29 11:28:06
合計ジャッジ時間 1,452 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <utility>
#include <vector>
#include <string>
#include <cstdio>
#include <cmath>


using namespace std;

int main(){

    long long int n,l;
    long long int s=998244353; 
    cin>>n>>l;
    
    n=(n+l-1)/l;

    long long int ans= pow(2,n)-1;


    cout<<ans%s<<endl;
    
}
0