結果
問題 | No.1184 Hà Nội |
ユーザー |
|
提出日時 | 2020-08-22 14:36:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 383 bytes |
コンパイル時間 | 1,559 ms |
コンパイル使用メモリ | 166,088 KB |
実行使用メモリ | 13,640 KB |
最終ジャッジ日時 | 2024-10-15 08:51:38 |
合計ジャッジ時間 | 5,415 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 TLE * 1 -- * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { long long N,L;cin>>N>>L; if(N%L==0){ long long J=1; for(long long X=0;X<N/L;X++){ J*=2;J%=998244353; } cout<<J-1<<endl; } else{ long long J=1; for(long long X=0;X<N/L+1;X++){ J*=2;J%=998244353; } cout<<J-1<<endl; } }