結果

問題 No.2586 Yet Another Sugoroku Problem
ユーザー karinohito
提出日時 2023-12-25 03:21:18
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 224 bytes
コンパイル時間 4,585 ms
コンパイル使用メモリ 249,736 KB
最終ジャッジ日時 2025-02-18 14:27:06
ジャッジサーバーID
(参考情報)
judge4 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include<atcoder/all>
using namespace atcoder;
using namespace std;
using ll = long long;
using mint = modint998244353;
int main() {
    ll N;
    cin>>N;
    cout<<(mint(N+1).inv()*2).val()<<endl;
}
0