結果

問題 No.657 テトラナッチ数列 Easy
ユーザー %20%20
提出日時 2018-03-03 00:23:29
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 82 bytes
コンパイル時間 423 ms
コンパイル使用メモリ 11,260 KB
実行使用メモリ 23,924 KB
最終ジャッジ日時 2023-09-05 04:38:12
合計ジャッジ時間 7,285 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 303 ms
23,244 KB
testcase_03 AC 303 ms
23,036 KB
testcase_04 AC 304 ms
23,176 KB
testcase_05 WA -
testcase_06 AC 303 ms
23,288 KB
testcase_07 WA -
testcase_08 AC 302 ms
23,344 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 352 ms
23,680 KB
testcase_13 AC 351 ms
23,672 KB
testcase_14 AC 348 ms
23,624 KB
testcase_15 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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