結果
問題 |
No.1184 Hà Nội
|
ユーザー |
|
提出日時 | 2020-09-15 00:50:28 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 346 bytes |
コンパイル時間 | 719 ms |
コンパイル使用メモリ | 68,348 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-22 01:02:15 |
合計ジャッジ時間 | 1,771 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 WA * 7 |
ソースコード
#include<iostream> #include<cmath> #define ll long long #define mod 998244353 using namespace std; ll modpow(ll a,ll b){ ll ans = (ll)pow(a,b) % mod; return ans; } int main(){ ll n,l; cin >> n >> l; ll pow = ceil((double)n/(double)l); ll ans = modpow(2,pow) - 1; ans %= mod; cout << ans << endl; return 0; }