結果
| 問題 | No.2586 Yet Another Sugoroku Problem | 
| コンテスト | |
| ユーザー |  AngrySadEight | 
| 提出日時 | 2025-09-10 01:08:09 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 228 bytes | 
| コンパイル時間 | 3,121 ms | 
| コンパイル使用メモリ | 149,992 KB | 
| 実行使用メモリ | 7,716 KB | 
| 最終ジャッジ日時 | 2025-09-10 01:08:14 | 
| 合計ジャッジ時間 | 4,716 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 25 | 
ソースコード
#include <iostream>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using mint = modint998244353;
int main(){
    int N;
    cin >> N;
    mint ans = mint(2) / mint(N + 1);
    cout << ans.val() << endl;
}
            
            
            
        