結果

問題 No.533 Mysterious Stairs
ユーザー letrangerjpletrangerjp
提出日時 2017-06-24 09:28:19
言語 Ruby
(3.3.0)
結果
AC  
実行時間 2,644 ms / 5,000 ms
コード長 148 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 74,624 KB
最終ジャッジ日時 2024-04-14 23:35:51
合計ジャッジ時間 12,772 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
12,928 KB
testcase_01 AC 105 ms
13,056 KB
testcase_02 AC 106 ms
12,928 KB
testcase_03 AC 106 ms
12,928 KB
testcase_04 AC 104 ms
13,056 KB
testcase_05 AC 106 ms
13,056 KB
testcase_06 AC 106 ms
13,056 KB
testcase_07 AC 106 ms
12,800 KB
testcase_08 AC 106 ms
12,928 KB
testcase_09 AC 104 ms
13,056 KB
testcase_10 AC 106 ms
12,928 KB
testcase_11 AC 106 ms
12,928 KB
testcase_12 AC 105 ms
12,928 KB
testcase_13 AC 106 ms
12,928 KB
testcase_14 AC 106 ms
12,928 KB
testcase_15 AC 107 ms
13,056 KB
testcase_16 AC 109 ms
13,184 KB
testcase_17 AC 107 ms
13,184 KB
testcase_18 AC 107 ms
13,312 KB
testcase_19 AC 111 ms
13,440 KB
testcase_20 AC 203 ms
19,584 KB
testcase_21 AC 228 ms
21,760 KB
testcase_22 AC 756 ms
34,304 KB
testcase_23 AC 2,591 ms
66,048 KB
testcase_24 AC 2,644 ms
74,624 KB
testcase_25 AC 205 ms
20,224 KB
testcase_26 AC 2,278 ms
54,272 KB
testcase_27 AC 444 ms
28,800 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!ruby -nrmatrix
m=Matrix[*(0..35).map{|i|3759473158[i]}.each_slice(6)]**~-$_.to_i*Matrix[[1],[0],[0],[1],[0],[1]]
p (m[0,0]+m[1,0]+m[2,0]).%10**9+7
0