結果
| 問題 | No.2351 Butterfly in Summer |
| コンテスト | |
| ユーザー |
hitonanode
|
| 提出日時 | 2023-06-17 12:36:40 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 322µs | |
| コード長 | 234 bytes |
| 記録 | |
| コンパイル時間 | 1,141 ms |
| コンパイル使用メモリ | 149,556 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-29 14:52:55 |
| 合計ジャッジ時間 | 2,676 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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) * mint(K - 1) * mint(N) / mint(K).pow(N)).val() << endl;
}
hitonanode