結果
| 問題 | No.3584 Camouflage Mole |
| コンテスト | |
| ユーザー |
Iroha_3856
|
| 提出日時 | 2026-07-10 21:22:26 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 845 bytes |
| 記録 | |
| コンパイル時間 | 3,954 ms |
| コンパイル使用メモリ | 374,948 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-10 21:22:32 |
| 合計ジャッジ時間 | 5,860 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 37 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <atcoder/all>
using mint = atcoder::modint998244353;
#define rep(i, l, r) for (int i = (l); i < (r); i++)
#define ll long long
#define all(x) (x).begin(), (x).end()
#define siz(x) (int)x.size()
#define debug(x) cout << #x << " : " << endl; for (auto u : x) cout << u << " "; cout << endl
template<class T> bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
template<class T> bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
const int inf = 1e9;
const ll INF = 4e18;
template<class T> using spq = priority_queue<T, vector<T>, greater<T>>;
vector<int> di = {1, 0, -1, 0}, dj = {0, 1, 0, -1};
int main() {
int n; cin >> n;
mint N = n;
mint ans = N * (N - 1) * (N - 2) * (N - 3) * mint(26).pow(n - 4) / 24;
cout << ans.val() << "\n";
}
Iroha_3856