結果
問題 | No.500 階乗電卓 |
ユーザー | むらため |
提出日時 | 2019-01-18 16:28:29 |
言語 | Nim (2.0.2) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 792 bytes |
コンパイル時間 | 3,065 ms |
コンパイル使用メモリ | 65,740 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-01 10:17:53 |
合計ジャッジ時間 | 3,722 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 2 ms
5,376 KB |
testcase_05 | AC | 2 ms
5,376 KB |
testcase_06 | AC | 2 ms
5,376 KB |
testcase_07 | AC | 1 ms
5,376 KB |
testcase_08 | AC | 2 ms
5,376 KB |
testcase_09 | AC | 1 ms
5,376 KB |
testcase_10 | AC | 2 ms
5,376 KB |
testcase_11 | AC | 1 ms
5,376 KB |
testcase_12 | AC | 1 ms
5,376 KB |
testcase_13 | AC | 1 ms
5,376 KB |
testcase_14 | AC | 1 ms
5,376 KB |
testcase_15 | AC | 2 ms
5,376 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
ソースコード
import strutils let n = stdin.readLine().parseInt() if n >= 50: quit("000000000000",0) const answers = [ "1","1","2","6","24","120","720","5040","40320","362880","3628800","39916800","479001600","6227020800","87178291200","307674368000","922789888000", "687428096000","373705728000","100408832000","008176640000", "171709440000","777607680000","884976640000","239439360000", "985984000000","635584000000","160768000000","501504000000", "543616000000","308480000000","562880000000","012160000000", "401280000000","643520000000","523200000000","835200000000", "902400000000","291200000000","356800000000","272000000000", "152000000000","384000000000","512000000000","528000000000", "760000000000","960000000000","120000000000","760000000000", "240000000000"] echo answers[n]