結果
| 問題 | No.1184 Hà Nội |
| コンテスト | |
| ユーザー |
akane
|
| 提出日時 | 2020-08-22 13:17:45 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 352 bytes |
| 記録 | |
| コンパイル時間 | 1,134 ms |
| コンパイル使用メモリ | 209,108 KB |
| 実行使用メモリ | 9,856 KB |
| 最終ジャッジ日時 | 2026-06-12 15:58:10 |
| 合計ジャッジ時間 | 4,952 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | TLE * 1 -- * 26 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for (int i=0; i < (n); i++)
using namespace std;
using ll = long long;
ll mod = 998244353;
int main(){
ios::sync_with_stdio(false);
ll N,L; cin>>N>>L;
N = N/L + N%L;
cerr << N << endl;
ll ans=1;
while(N--){
ans *= 2;
ans %= mod;
}
cout << ans - 1 << endl;
}
akane