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