結果

問題 No.1539 不可欠な部分
ユーザー そすうぽよそすうぽよ
提出日時 2021-06-06 19:01:06
言語 Ruby
(3.3.0)
結果
AC  
実行時間 579 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 734 ms
コンパイル使用メモリ 11,292 KB
実行使用メモリ 15,624 KB
最終ジャッジ日時 2023-08-15 02:01:57
合計ジャッジ時間 27,065 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,432 KB
testcase_01 AC 504 ms
15,244 KB
testcase_02 AC 567 ms
15,256 KB
testcase_03 AC 294 ms
15,404 KB
testcase_04 AC 264 ms
15,248 KB
testcase_05 AC 222 ms
15,184 KB
testcase_06 AC 330 ms
15,272 KB
testcase_07 AC 142 ms
15,460 KB
testcase_08 AC 212 ms
15,404 KB
testcase_09 AC 492 ms
15,244 KB
testcase_10 AC 526 ms
15,456 KB
testcase_11 AC 573 ms
15,424 KB
testcase_12 AC 577 ms
15,384 KB
testcase_13 AC 576 ms
15,348 KB
testcase_14 AC 569 ms
15,480 KB
testcase_15 AC 571 ms
15,364 KB
testcase_16 AC 570 ms
15,624 KB
testcase_17 AC 560 ms
15,280 KB
testcase_18 AC 572 ms
15,128 KB
testcase_19 AC 579 ms
15,188 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 (2*Math.exp(1) + Math.exp(Math.cos(y/a )))/3.0*y
  else
    puts 0.1013211836
  end
end
0