結果

問題 No.500 階乗電卓
ユーザー むらためむらため
提出日時 2019-01-18 16:23:49
言語 Nim
(2.0.2)
結果
WA  
実行時間 -
コード長 867 bytes
コンパイル時間 2,911 ms
コンパイル使用メモリ 68,184 KB
実行使用メモリ 4,388 KB
最終ジャッジ日時 2023-09-14 02:13:03
合計ジャッジ時間 3,440 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 2 ms
4,380 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 AC 1 ms
4,376 KB
testcase_11 AC 1 ms
4,380 KB
testcase_12 AC 2 ms
4,376 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 1 ms
4,376 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils
let n = stdin.readLine().parseInt()
if n >= 50.int: quit("000000000000",0.int)
const answers = [1.int,1.int,2.int,6.int,24.int,120.int,720.int,5040.int,40320.int,362880.int,3628800.int,39916800.int,479001600.int,6227020800.int,87178291200.int,307674368000.int,922789888000.int,687428096000.int,373705728000.int,100408832000.int,8176640000.int,171709440000.int,777607680000.int,884976640000.int,239439360000.int,985984000000.int,635584000000.int,160768000000.int,501504000000.int,543616000000.int,308480000000.int,562880000000.int,12160000000.int,401280000000.int,643520000000.int,523200000000.int,835200000000.int,902400000000.int,291200000000.int,356800000000.int,272000000000.int,152000000000.int,384000000000.int,512000000000.int,528000000000.int,760000000000.int,960000000000.int,120000000000.int,760000000000.int,240000000000.int]
echo answers[n]
0