結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 506 ms
12,288 KB
testcase_02 AC 568 ms
12,288 KB
testcase_03 AC 305 ms
12,416 KB
testcase_04 AC 273 ms
12,416 KB
testcase_05 AC 231 ms
12,160 KB
testcase_06 AC 351 ms
12,288 KB
testcase_07 AC 159 ms
12,288 KB
testcase_08 AC 226 ms
12,160 KB
testcase_09 AC 506 ms
12,288 KB
testcase_10 WA -
testcase_11 AC 573 ms
12,288 KB
testcase_12 AC 579 ms
12,672 KB
testcase_13 AC 580 ms
12,416 KB
testcase_14 AC 569 ms
12,672 KB
testcase_15 AC 579 ms
12,416 KB
testcase_16 WA -
testcase_17 AC 574 ms
12,160 KB
testcase_18 AC 576 ms
12,288 KB
testcase_19 AC 584 ms
12,416 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
    y = 1/(Math.exp(1)*(Math::PI**2))
    puts (Math.exp(1) + Math.exp(Math.cos(y/a )))/2.0*y
  else
    puts 0.1013211836
  end
end
0