結果
| 問題 | No.2351 Butterfly in Summer |
| コンテスト | |
| ユーザー |
hitonanode
|
| 提出日時 | 2023-06-17 12:37:07 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 228 bytes |
| 記録 | |
| コンパイル時間 | 1,409 ms |
| コンパイル使用メモリ | 150,804 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-11 08:25:00 |
| 合計ジャッジ時間 | 1,872 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <iostream>
using namespace std;
#include <atcoder/modint>
using mint = atcoder::modint998244353;
int main() {
int N, K;
cin >> N >> K;
cout << (mint(K - 1) * mint(N) / mint(K).pow(N - 1)).val() << endl;
}
hitonanode