結果

問題 No.8045 怪文書
ユーザー neko_the_shadow
提出日時 2019-04-02 21:52:01
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 197 bytes
コンパイル時間 725 ms
コンパイル使用メモリ 67,564 KB
最終ジャッジ日時 2025-01-07 01:21:53
ジャッジサーバーID
(参考情報)
judge2 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 18 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>

typedef long long ll;

int main() {
    ll n, m;
    std::cin >> n >> m;

    ll fact = 1;
    for (ll i = 1; i <= n; i++) fact *= i;

    std::cout << fact % m << std::endl;
}
0