結果

問題 No.303 割れません
ユーザー cielciel
提出日時 2015-11-16 19:42:38
言語 Ruby
(3.3.0)
結果
AC  
実行時間 376 ms / 10,000 ms
コード長 116 bytes
コンパイル時間 358 ms
コンパイル使用メモリ 11,264 KB
実行使用メモリ 48,760 KB
最終ジャッジ日時 2023-08-27 06:04:59
合計ジャッジ時間 5,476 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
15,800 KB
testcase_01 AC 89 ms
15,528 KB
testcase_02 AC 89 ms
15,816 KB
testcase_03 AC 213 ms
28,936 KB
testcase_04 AC 364 ms
43,524 KB
testcase_05 AC 365 ms
38,744 KB
testcase_06 AC 365 ms
40,544 KB
testcase_07 AC 350 ms
45,944 KB
testcase_08 AC 370 ms
46,080 KB
testcase_09 AC 370 ms
46,136 KB
testcase_10 AC 89 ms
15,840 KB
testcase_11 AC 371 ms
39,056 KB
testcase_12 AC 376 ms
48,760 KB
testcase_13 AC 267 ms
36,088 KB
testcase_14 AC 183 ms
29,000 KB
testcase_15 AC 155 ms
24,736 KB
testcase_16 AC 91 ms
15,628 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]-f[n/2]**2,f[n]][n%2]]
0