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