結果

問題 No.657 テトラナッチ数列 Easy
ユーザー %20%20
提出日時 2018-03-03 00:24:28
言語 Ruby
(3.3.0)
結果
AC  
実行時間 353 ms / 2,000 ms
コード長 86 bytes
コンパイル時間 328 ms
コンパイル使用メモリ 11,496 KB
実行使用メモリ 23,868 KB
最終ジャッジ日時 2023-09-05 04:39:37
合計ジャッジ時間 6,755 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 305 ms
23,092 KB
testcase_01 AC 303 ms
23,152 KB
testcase_02 AC 302 ms
23,204 KB
testcase_03 AC 302 ms
23,128 KB
testcase_04 AC 303 ms
23,084 KB
testcase_05 AC 349 ms
23,804 KB
testcase_06 AC 303 ms
23,144 KB
testcase_07 AC 301 ms
22,996 KB
testcase_08 AC 306 ms
23,100 KB
testcase_09 AC 349 ms
23,868 KB
testcase_10 AC 351 ms
23,588 KB
testcase_11 AC 349 ms
23,700 KB
testcase_12 AC 350 ms
23,628 KB
testcase_13 AC 353 ms
23,784 KB
testcase_14 AC 352 ms
23,868 KB
testcase_15 AC 350 ms
23,580 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

*a=0,0,0,0,1,1,2,4
8.upto(1e6){|i|a[i]=(a[-1]*2-a[-5])%17}
gets
$<.map{|n|p a[n.to_i]}
0