結果

問題 No.1539 不可欠な部分
ユーザー そすうぽよそすうぽよ
提出日時 2021-06-06 18:50:45
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 211 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 12,800 KB
最終ジャッジ日時 2024-05-02 13:41:32
合計ジャッジ時間 18,741 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 452 ms
12,416 KB
testcase_02 AC 510 ms
12,160 KB
testcase_03 AC 260 ms
12,160 KB
testcase_04 AC 249 ms
12,288 KB
testcase_05 AC 207 ms
12,416 KB
testcase_06 AC 297 ms
12,288 KB
testcase_07 AC 133 ms
12,288 KB
testcase_08 AC 194 ms
12,416 KB
testcase_09 AC 446 ms
12,416 KB
testcase_10 RE -
testcase_11 AC 500 ms
12,288 KB
testcase_12 RE -
testcase_13 AC 506 ms
12,160 KB
testcase_14 RE -
testcase_15 AC 507 ms
12,416 KB
testcase_16 RE -
testcase_17 AC 498 ms
12,416 KB
testcase_18 AC 490 ms
12,288 KB
testcase_19 AC 501 ms
12,288 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i
n.times do |i|
  a=gets.to_i
  if a == 1
    puts 0.1012977284
  elsif a <= 100
    puts (Math.exp(1) + Math.exp(Math.cos(1/(Math.exp(1)/(Math.PI**2)/a ))))/2.0
  else
    puts 0.1013211836
  end
end
0