結果
問題 |
No.500 階乗電卓
|
ユーザー |
![]() |
提出日時 | 2018-09-24 15:48:50 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 301 bytes |
コンパイル時間 | 183 ms |
コンパイル使用メモリ | 29,440 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-22 04:29:58 |
合計ジャッジ時間 | 2,420 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 3 WA * 17 |
ソースコード
#include <stdio.h> int fuc(int n) { if (n > 1) { return n * fuc(n - 1) % 1000000000000; } else if (n == 1){ return 1; } } int main (void) { int N, input; scanf("%d", &input); N = fuc(input); printf("%d\n", N); return 0; }