結果
問題 |
No.8045 怪文書
|
ユーザー |
![]() |
提出日時 | 2019-04-01 23:47:08 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
MLE
|
実行時間 | - |
コード長 | 296 bytes |
コンパイル時間 | 2,089 ms |
コンパイル使用メモリ | 166,228 KB |
実行使用メモリ | 814,976 KB |
最終ジャッジ日時 | 2024-11-27 05:18:35 |
合計ジャッジ時間 | 12,386 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 12 MLE * 8 |
ソースコード
#include "bits/stdc++.h" #define REP(i,n) for(int i=0;i<n;++i) #define put(a) cout << a << "\n" using namespace std; typedef long long ll; ll n,m; ll fact(ll n){ if(n==0){ return 1; } return n*fact(n-1)%m; } int main(){ cin >> n >> m; put(fact(n)); return 0; }