結果

問題 No.1235 ζ関数
ユーザー 👑 hos.lyrichos.lyric
提出日時 2020-09-21 18:37:49
言語 Ruby
(3.3.0)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 45 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 11,264 KB
実行使用メモリ 15,648 KB
最終ジャッジ日時 2023-09-06 17:28:40
合計ジャッジ時間 2,794 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,320 KB
testcase_01 AC 75 ms
15,488 KB
testcase_02 AC 76 ms
15,508 KB
testcase_03 AC 76 ms
15,392 KB
testcase_04 AC 75 ms
15,636 KB
testcase_05 AC 77 ms
15,584 KB
testcase_06 AC 76 ms
15,432 KB
testcase_07 AC 76 ms
15,564 KB
testcase_08 AC 76 ms
15,384 KB
testcase_09 AC 77 ms
15,616 KB
testcase_10 AC 76 ms
15,388 KB
testcase_11 AC 77 ms
15,512 KB
testcase_12 AC 78 ms
15,468 KB
testcase_13 AC 78 ms
15,376 KB
testcase_14 AC 78 ms
15,648 KB
testcase_15 AC 75 ms
15,508 KB
testcase_16 AC 76 ms
15,512 KB
testcase_17 AC 76 ms
15,428 KB
testcase_18 AC 76 ms
15,492 KB
testcase_19 AC 77 ms
15,616 KB
testcase_20 AC 76 ms
15,520 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i
p (1..99).map{|i|(1.0*i)**-n}.sum
0