結果
| 問題 | No.1184 Hà Nội |
| コンテスト | |
| ユーザー |
akane
|
| 提出日時 | 2020-08-22 13:17:45 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 352 bytes |
| コンパイル時間 | 2,458 ms |
| コンパイル使用メモリ | 191,308 KB |
| 最終ジャッジ日時 | 2025-01-13 07:23:38 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | WA * 10 TLE * 17 |
ソースコード
#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