結果
| 問題 |
No.1184 Hà Nội
|
| コンテスト | |
| ユーザー |
尻リハビリ
|
| 提出日時 | 2020-09-07 22:30:11 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 349 bytes |
| コンパイル時間 | 493 ms |
| コンパイル使用メモリ | 65,664 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-29 11:24:11 |
| 合計ジャッジ時間 | 1,427 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / 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)
cout<<1<<endl;
else if (n%l!=0)
cout<<(n/l*2+1)%s<<endl;
else
cout<<((n/l-1)*2+1)%s<<endl;
}
尻リハビリ