結果
問題 | No.500 階乗電卓 |
ユーザー |
![]() |
提出日時 | 2017-06-25 14:46:39 |
言語 | C (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 199 bytes |
コンパイル時間 | 262 ms |
コンパイル使用メモリ | 28,672 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-10-04 08:39:56 |
合計ジャッジ時間 | 6,657 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | TLE * 1 -- * 19 |
ソースコード
#include <stdio.h> int main(void){ long n; scanf("%ld", &n); long ans = 1; for(long i = 1; i <= n; i++){ ans *= (i%1000000000000); ans %= 1000000000000; } printf("%ld\n", ans); return 0; }