結果

問題 No.53 悪の漸化式
ユーザー cielciel
提出日時 2014-11-17 17:56:56
言語 Ruby
(3.3.0)
結果
AC  
実行時間 98 ms / 5,000 ms
コード長 133 bytes
コンパイル時間 349 ms
コンパイル使用メモリ 11,336 KB
実行使用メモリ 15,680 KB
最終ジャッジ日時 2023-08-30 20:26:49
合計ジャッジ時間 3,364 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
15,452 KB
testcase_01 AC 78 ms
15,268 KB
testcase_02 AC 78 ms
15,152 KB
testcase_03 AC 98 ms
15,480 KB
testcase_04 AC 77 ms
15,500 KB
testcase_05 AC 78 ms
15,612 KB
testcase_06 AC 78 ms
15,544 KB
testcase_07 AC 78 ms
15,556 KB
testcase_08 AC 77 ms
15,612 KB
testcase_09 AC 77 ms
15,472 KB
testcase_10 AC 77 ms
15,568 KB
testcase_11 AC 77 ms
15,560 KB
testcase_12 AC 77 ms
15,500 KB
testcase_13 AC 78 ms
15,368 KB
testcase_14 AC 77 ms
15,572 KB
testcase_15 AC 77 ms
15,548 KB
testcase_16 AC 77 ms
15,584 KB
testcase_17 AC 77 ms
15,488 KB
testcase_18 AC 76 ms
15,680 KB
testcase_19 AC 76 ms
15,504 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
/usr/bin/ruby: warning: shebang line ending with \r may cause problems
Syntax OK

ソースコード

diff #

#!/usr/bin/ruby
#a=[4.0,3.0]
#2.step(100){|i|a[i]=a[i-1]*19/4-a[i-2]*3}
#puts '%.9f'%a[gets.to_i]
puts '%.9f'%(4*0.75**gets.to_i)
0