結果
問題 |
No.1476 esreveR dna esreveR
|
ユーザー |
![]() |
提出日時 | 2021-04-16 20:08:15 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 294 bytes |
コンパイル時間 | 1,511 ms |
コンパイル使用メモリ | 166,268 KB |
実行使用メモリ | 13,756 KB |
最終ジャッジ日時 | 2024-07-02 21:58:36 |
合計ジャッジ時間 | 5,948 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 RE * 1 |
other | RE * 1 TLE * 1 -- * 4 |
ソースコード
#include "bits/stdc++.h" using namespace std; int main() { uint64_t N; cin >> N; auto N2 = N * N; uint64_t p = 1, q = 1; for (uint64_t i = 1; i <= N; i++) { p *= (N2 - i + 1); q *= i; } auto ans = (p / q) % 998244353; cout << ans << endl; }