結果

問題 No.303 割れません
ユーザー cielciel
提出日時 2015-11-16 19:40:52
言語 Ruby
(3.2.2)
結果
AC  
実行時間 299 ms / 10,000 ms
コード長 114 bytes
コンパイル時間 231 ms
コンパイル使用メモリ 11,392 KB
実行使用メモリ 33,872 KB
最終ジャッジ日時 2023-08-27 00:09:27
合計ジャッジ時間 5,227 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
15,672 KB
testcase_01 AC 97 ms
15,720 KB
testcase_02 AC 100 ms
15,632 KB
testcase_03 AC 185 ms
24,364 KB
testcase_04 AC 299 ms
33,872 KB
testcase_05 AC 295 ms
30,540 KB
testcase_06 AC 298 ms
31,776 KB
testcase_07 AC 245 ms
29,308 KB
testcase_08 AC 251 ms
29,344 KB
testcase_09 AC 249 ms
29,452 KB
testcase_10 AC 98 ms
15,644 KB
testcase_11 AC 294 ms
30,844 KB
testcase_12 AC 250 ms
30,512 KB
testcase_13 AC 225 ms
29,004 KB
testcase_14 AC 149 ms
21,644 KB
testcase_15 AC 143 ms
21,496 KB
testcase_16 AC 96 ms
15,724 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require'matrix';f=->(n){(Matrix[[1,1],[1,0]]**n)[1,0]};puts (n=gets.to_i)==2?[3,:INF]:[n,f[n]-(n%2>0?0:f[n/2]**2)]
0