結果
| 問題 | No.2113 Distance Sequence 1.5 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-04 07:40:56 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 216 bytes |
| 記録 | |
| コンパイル時間 | 627 ms |
| コンパイル使用メモリ | 76,372 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-04 00:14:45 |
| 合計ジャッジ時間 | 1,894 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 11 WA * 10 |
ソースコード
#include<iostream>
#include<atcoder/modint>
using namespace std;
using mint=atcoder::modint998244353;
long N,M,K;
int main()
{
cin>>N>>M>>K;
cout<<(mint(K).pow(2*N)*(M-K+1)-mint(K-1).pow(2*N)*(M-K)).val()<<endl;
}