結果

問題 No.741 AscNumber(Easy)
ユーザー torikuminotorikumino
提出日時 2018-10-13 23:45:51
言語 Haskell
(9.6.2)
結果
AC  
実行時間 506 ms / 2,000 ms
コード長 163 bytes
コンパイル時間 10,628 ms
コンパイル使用メモリ 187,216 KB
実行使用メモリ 97,780 KB
最終ジャッジ日時 2023-08-02 20:04:38
合計ジャッジ時間 11,143 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,304 KB
testcase_01 AC 2 ms
7,252 KB
testcase_02 AC 3 ms
7,292 KB
testcase_03 AC 2 ms
7,328 KB
testcase_04 AC 3 ms
7,256 KB
testcase_05 AC 3 ms
7,388 KB
testcase_06 AC 2 ms
7,388 KB
testcase_07 AC 2 ms
7,320 KB
testcase_08 AC 2 ms
7,308 KB
testcase_09 AC 2 ms
7,320 KB
testcase_10 AC 2 ms
7,296 KB
testcase_11 AC 2 ms
7,400 KB
testcase_12 AC 3 ms
7,280 KB
testcase_13 AC 2 ms
7,288 KB
testcase_14 AC 2 ms
7,236 KB
testcase_15 AC 2 ms
7,336 KB
testcase_16 AC 2 ms
7,440 KB
testcase_17 AC 3 ms
7,336 KB
testcase_18 AC 2 ms
7,416 KB
testcase_19 AC 3 ms
7,240 KB
testcase_20 AC 3 ms
7,440 KB
testcase_21 AC 2 ms
7,300 KB
testcase_22 AC 3 ms
7,556 KB
testcase_23 AC 3 ms
7,480 KB
testcase_24 AC 3 ms
7,276 KB
testcase_25 AC 2 ms
7,364 KB
testcase_26 AC 3 ms
7,464 KB
testcase_27 AC 3 ms
7,420 KB
testcase_28 AC 3 ms
7,340 KB
testcase_29 AC 3 ms
7,472 KB
testcase_30 AC 3 ms
7,388 KB
testcase_31 AC 3 ms
7,596 KB
testcase_32 AC 2 ms
7,336 KB
testcase_33 AC 3 ms
7,424 KB
testcase_34 AC 3 ms
7,540 KB
testcase_35 AC 475 ms
94,664 KB
testcase_36 AC 192 ms
46,644 KB
testcase_37 AC 232 ms
50,568 KB
testcase_38 AC 232 ms
49,408 KB
testcase_39 AC 192 ms
45,420 KB
testcase_40 AC 273 ms
56,660 KB
testcase_41 AC 435 ms
85,444 KB
testcase_42 AC 212 ms
48,612 KB
testcase_43 AC 152 ms
40,408 KB
testcase_44 AC 325 ms
67,004 KB
testcase_45 AC 354 ms
71,120 KB
testcase_46 AC 445 ms
91,588 KB
testcase_47 AC 63 ms
22,928 KB
testcase_48 AC 445 ms
91,508 KB
testcase_49 AC 364 ms
72,968 KB
testcase_50 AC 53 ms
21,676 KB
testcase_51 AC 163 ms
40,404 KB
testcase_52 AC 494 ms
97,684 KB
testcase_53 AC 499 ms
97,780 KB
testcase_54 AC 506 ms
96,700 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.1/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )
[2 of 2] Linking a.out

ソースコード

diff #

import qualified Data.Vector.Unboxed as V
main = do
  n <- readLn
  print $ V.last $ iterate (V.scanl1 (\x y -> (x+y)`mod`(10^9+7))) (V.replicate 10 (1::Int)) !! n
0