結果
問題 |
No.1184 Hà Nội
|
ユーザー |
![]() |
提出日時 | 2020-09-07 22:18:40 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 304 bytes |
コンパイル時間 | 780 ms |
コンパイル使用メモリ | 65,280 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-29 11:23:53 |
合計ジャッジ時間 | 1,755 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 16 WA * 11 |
ソースコード
#include <iostream> #include <utility> #include <vector> #include <string> #include <cstdio> using namespace std; int main(){ long long int n,l; long long int s=998244353; cin>>n>>l; if (n%l!=0) cout<<(n/l*2+1)%s<<endl; else cout<<(n/l*2-1)%s<<endl; }