結果
問題 |
No.500 階乗電卓
|
ユーザー |
![]() |
提出日時 | 2017-06-16 18:39:05 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 191 bytes |
コンパイル時間 | 123 ms |
コンパイル使用メモリ | 22,400 KB |
実行使用メモリ | 14,920 KB |
最終ジャッジ日時 | 2024-10-01 06:50:09 |
合計ジャッジ時間 | 6,669 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | TLE * 1 -- * 19 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:5:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%ld",&n); | ~~~~~^~~~~~~~~~
ソースコード
#include <stdio.h> int dp[100000000]; int main(void){ unsigned long int n,i,x; scanf("%ld",&n); for(i=1,x=1;i<=n;i++){ x=x*i%1000000000000; } printf("%ld\n",x); }