結果
問題 |
No.500 階乗電卓
|
ユーザー |
![]() |
提出日時 | 2017-04-18 00:18:33 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 282 bytes |
コンパイル時間 | 229 ms |
コンパイル使用メモリ | 29,056 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-19 05:40:44 |
合計ジャッジ時間 | 839 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 WA * 2 |
ソースコード
#include<stdio.h> int main(void){ long long int N,ans=1; scanf("%lld",&N); if(N<50){ for(;N>1;N--){ ans*=N; ans%=1000000000000; } printf("%lld\n",ans); } else { printf("000000000000\n"); } return 0; }