結果
| 問題 | No.502 階乗を計算するだけ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-08 17:50:42 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 200 bytes |
| コンパイル時間 | 1,143 ms |
| コンパイル使用メモリ | 135,228 KB |
| 実行使用メモリ | 13,632 KB |
| 最終ジャッジ日時 | 2024-12-28 06:53:07 |
| 合計ジャッジ時間 | 28,426 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 33 WA * 6 TLE * 13 |
ソースコード
#include <cstdio>
#include <immintrin.h>
int main() {
int n = 0;
int m = 1e9 + 7;
scanf("%d", &n);
long long int a = 1;
for (int i = 2; i <= n; ++i) {
a = (a * i) % m;
}
printf("%d\n", a);
}