結果
| 問題 |
No.8045 怪文書
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-13 15:32:51 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 216 bytes |
| コンパイル時間 | 2,067 ms |
| コンパイル使用メモリ | 191,912 KB |
| 最終ジャッジ日時 | 2025-01-09 18:03:36 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 13 TLE * 7 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);i++)
using namespace std;
using lint=long long;
int main(){
lint n,m; cin>>n>>m;
lint ans=1;
rep(i,n) ans=ans*(i+1)%m;
cout<<ans<<'\n';
return 0;
}