結果
| 問題 | No.502 階乗を計算するだけ |
| コンテスト | |
| ユーザー |
y_taira_c
|
| 提出日時 | 2017-06-21 22:58:13 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 294 bytes |
| 記録 | |
| コンパイル時間 | 418 ms |
| コンパイル使用メモリ | 101,108 KB |
| 実行使用メモリ | 9,992 KB |
| 最終ジャッジ日時 | 2026-09-08 22:18:35 |
| 合計ジャッジ時間 | 40,240 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 WA * 6 TLE * 12 |
ソースコード
#include <future>
#include <iostream>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
unsigned long long int x;
cin >> x;
unsigned long long int res = 1;
for (int i = x; i > 0; i--)
{
res *= i;
res %= 1000000007;
}
cout << res << "\n";
return 0;
}
y_taira_c