結果
| 問題 | No.2586 Yet Another Sugoroku Problem |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2025-09-10 01:08:09 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 317µs | |
| コード長 | 228 bytes |
| 記録 | |
| コンパイル時間 | 2,211 ms |
| コンパイル使用メモリ | 169,744 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-14 23:32:32 |
| 合計ジャッジ時間 | 4,078 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}