結果

問題 No.344 ある無理数の累乗
ユーザー mmmpppmmmppp
提出日時 2017-03-08 12:41:42
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 81 bytes
コンパイル時間 62 ms
コンパイル使用メモリ 11,544 KB
実行使用メモリ 251,992 KB
最終ジャッジ日時 2023-09-05 23:36:58
合計ジャッジ時間 9,698 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,104 KB
testcase_01 AC 82 ms
15,084 KB
testcase_02 AC 81 ms
15,144 KB
testcase_03 AC 81 ms
15,012 KB
testcase_04 AC 80 ms
15,268 KB
testcase_05 AC 81 ms
15,144 KB
testcase_06 AC 79 ms
15,008 KB
testcase_07 AC 81 ms
15,084 KB
testcase_08 AC 79 ms
15,264 KB
testcase_09 AC 79 ms
15,124 KB
testcase_10 AC 80 ms
15,276 KB
testcase_11 AC 79 ms
15,232 KB
testcase_12 AC 79 ms
15,096 KB
testcase_13 AC 78 ms
15,012 KB
testcase_14 AC 79 ms
15,012 KB
testcase_15 AC 82 ms
15,104 KB
testcase_16 AC 82 ms
15,132 KB
testcase_17 AC 81 ms
15,100 KB
testcase_18 AC 78 ms
15,276 KB
testcase_19 AC 79 ms
15,268 KB
testcase_20 AC 78 ms
15,228 KB
testcase_21 AC 80 ms
15,136 KB
testcase_22 AC 81 ms
15,200 KB
testcase_23 AC 82 ms
15,424 KB
testcase_24 AC 107 ms
17,124 KB
testcase_25 AC 334 ms
34,480 KB
testcase_26 TLE -
testcase_27 TLE -
testcase_28 -- -
testcase_29 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a=[2,2]
(2..n=gets.to_i).map{|i|a<<(a[i-1]+a[i-2]<<1)%1000}
p n&1<1?a[-1]-1:a[-1]
0