結果

問題 No.454 逆2乗和
ユーザー cielciel
提出日時 2016-12-06 00:23:34
言語 Ruby
(3.3.0)
結果
AC  
実行時間 881 ms / 2,000 ms
コード長 69 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 11,272 KB
実行使用メモリ 15,876 KB
最終ジャッジ日時 2023-08-20 03:24:15
合計ジャッジ時間 32,144 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 869 ms
15,680 KB
testcase_01 AC 847 ms
15,648 KB
testcase_02 AC 850 ms
15,652 KB
testcase_03 AC 860 ms
15,588 KB
testcase_04 AC 849 ms
15,656 KB
testcase_05 AC 858 ms
15,600 KB
testcase_06 AC 873 ms
15,696 KB
testcase_07 AC 860 ms
15,820 KB
testcase_08 AC 853 ms
15,532 KB
testcase_09 AC 855 ms
15,808 KB
testcase_10 AC 879 ms
15,788 KB
testcase_11 AC 868 ms
15,628 KB
testcase_12 AC 861 ms
15,664 KB
testcase_13 AC 862 ms
15,876 KB
testcase_14 AC 857 ms
15,644 KB
testcase_15 AC 857 ms
15,788 KB
testcase_16 AC 876 ms
15,784 KB
testcase_17 AC 860 ms
15,584 KB
testcase_18 AC 877 ms
15,580 KB
testcase_19 AC 858 ms
15,656 KB
testcase_20 AC 855 ms
15,776 KB
testcase_21 AC 870 ms
15,740 KB
testcase_22 AC 875 ms
15,812 KB
testcase_23 AC 864 ms
15,584 KB
testcase_24 AC 867 ms
15,644 KB
testcase_25 AC 866 ms
15,744 KB
testcase_26 AC 857 ms
15,792 KB
testcase_27 AC 864 ms
15,656 KB
testcase_28 AC 858 ms
15,744 KB
testcase_29 AC 868 ms
15,588 KB
testcase_30 AC 854 ms
15,772 KB
testcase_31 AC 862 ms
15,656 KB
testcase_32 AC 881 ms
15,700 KB
testcase_33 AC 853 ms
15,656 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

x=gets.to_f
r=Math::PI**2/6
1.upto(999999){|k|r+=(x+k)**-2-k**-2}
p r
0