結果

問題 No.1272 珍しい級数
ユーザー yuruhiyayuruhiya
提出日時 2020-10-31 07:42:22
言語 Crystal
(1.11.2)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 217 bytes
コンパイル時間 19,967 ms
コンパイル使用メモリ 258,380 KB
実行使用メモリ 4,960 KB
最終ジャッジ日時 2023-09-13 12:33:15
合計ジャッジ時間 23,762 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 9 ms
4,552 KB
testcase_01 AC 26 ms
4,708 KB
testcase_02 AC 20 ms
4,860 KB
testcase_03 AC 12 ms
4,900 KB
testcase_04 AC 12 ms
4,752 KB
testcase_05 AC 11 ms
4,868 KB
testcase_06 AC 20 ms
4,808 KB
testcase_07 AC 20 ms
4,744 KB
testcase_08 AC 12 ms
4,696 KB
testcase_09 AC 19 ms
4,744 KB
testcase_10 AC 20 ms
4,888 KB
testcase_11 AC 19 ms
4,668 KB
testcase_12 AC 19 ms
4,740 KB
testcase_13 AC 19 ms
4,676 KB
testcase_14 AC 19 ms
4,912 KB
testcase_15 AC 19 ms
4,784 KB
testcase_16 AC 19 ms
4,952 KB
testcase_17 AC 19 ms
4,804 KB
testcase_18 AC 20 ms
4,916 KB
testcase_19 AC 19 ms
4,744 KB
testcase_20 AC 20 ms
4,960 KB
testcase_21 AC 19 ms
4,748 KB
testcase_22 AC 20 ms
4,744 KB
testcase_23 AC 20 ms
4,744 KB
testcase_24 AC 19 ms
4,740 KB
testcase_25 AC 20 ms
4,932 KB
testcase_26 AC 19 ms
4,912 KB
testcase_27 AC 19 ms
4,768 KB
testcase_28 AC 19 ms
4,808 KB
testcase_29 AC 19 ms
4,780 KB
testcase_30 AC 19 ms
4,848 KB
testcase_31 AC 19 ms
4,912 KB
testcase_32 AC 19 ms
4,816 KB
testcase_33 AC 18 ms
4,920 KB
testcase_34 AC 19 ms
4,848 KB
testcase_35 AC 20 ms
4,736 KB
testcase_36 AC 20 ms
4,932 KB
testcase_37 AC 19 ms
4,928 KB
testcase_38 AC 19 ms
4,740 KB
testcase_39 AC 19 ms
4,840 KB
testcase_40 AC 20 ms
4,744 KB
testcase_41 AC 19 ms
4,768 KB
testcase_42 AC 19 ms
4,852 KB
testcase_43 AC 19 ms
4,740 KB
testcase_44 AC 19 ms
4,896 KB
testcase_45 AC 19 ms
4,932 KB
testcase_46 AC 18 ms
4,744 KB
testcase_47 AC 19 ms
4,744 KB
testcase_48 AC 19 ms
4,740 KB
testcase_49 AC 19 ms
4,908 KB
testcase_50 AC 19 ms
4,912 KB
testcase_51 AC 20 ms
4,836 KB
testcase_52 AC 19 ms
4,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

lib C
  fun strtoll(s : UInt8*, p : UInt8**, b : Int32) : Int64
end

class String
  def to_i64
    C.strtoll(self, nil, 10)
  end
end

k = read_line.to_i64
puts (1..100000).sum { |n|
  Math.sin(k * n) / (n.to_f**n)
}
0