結果
| 問題 | No.502 階乗を計算するだけ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-08 17:50:42 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 200 bytes |
| 記録 | |
| コンパイル時間 | 789 ms |
| コンパイル使用メモリ | 168,552 KB |
| 実行使用メモリ | 9,728 KB |
| 最終ジャッジ日時 | 2026-06-02 13:13:17 |
| 合計ジャッジ時間 | 4,143 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 32 TLE * 1 -- * 19 |
ソースコード
#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);
}