結果
問題 |
No.500 階乗電卓
|
ユーザー |
![]() |
提出日時 | 2017-09-08 21:40:22 |
言語 | C (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 415 bytes |
コンパイル時間 | 738 ms |
コンパイル使用メモリ | 30,848 KB |
実行使用メモリ | 12,160 KB |
最終ジャッジ日時 | 2024-11-07 05:17:09 |
合計ジャッジ時間 | 6,873 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | TLE * 1 -- * 19 |
ソースコード
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define ARRAY_NUM 100000 void factorial_calc(); // No.500 void delete_7(); void check_575(); //void jenga(); // //void poker(); int main(void) { factorial_calc(); return 0; } void factorial_calc() { int n, sum; scanf("%d", &n); while (n--) { // n回ループ sum *= n + 1; } printf("%d\n", sum % (int) pow(10, 12)); }