結果

問題 No.1476 esreveR dna esreveR
ユーザー arotiharotih
提出日時 2021-04-16 20:08:15
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 294 bytes
コンパイル時間 2,570 ms
コンパイル使用メモリ 163,888 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-15 20:19:15
合計ジャッジ時間 5,696 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 TLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}

0