結果

問題 No.502 階乗を計算するだけ
ユーザー y_taira_c
提出日時 2017-06-21 22:58:13
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 294 bytes
コンパイル時間 823 ms
コンパイル使用メモリ 83,792 KB
実行使用メモリ 13,640 KB
最終ジャッジ日時 2024-10-02 11:53:26
合計ジャッジ時間 3,669 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 32 TLE * 1 -- * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0