結果
問題 |
No.502 階乗を計算するだけ
|
ユーザー |
![]() |
提出日時 | 2017-06-21 21:52:32 |
言語 | C (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 175 bytes |
コンパイル時間 | 199 ms |
コンパイル使用メモリ | 28,672 KB |
実行使用メモリ | 13,640 KB |
最終ジャッジ日時 | 2024-10-02 11:49:48 |
合計ジャッジ時間 | 3,133 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 32 TLE * 1 -- * 19 |
ソースコード
#include <stdio.h> int main(void){ unsigned long int i=0,n,x=1; scanf("%lu",&n); for(i=1;i<=n;i++){ x=(x*i)%(1000000000+7); } printf("%lu\n",x); }