結果
| 問題 |
No.2054 Different Sequence
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-01-05 15:55:19 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 80 bytes |
| コンパイル時間 | 53 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 31,524 KB |
| 最終ジャッジ日時 | 2024-11-29 06:18:24 |
| 合計ジャッジ時間 | 29,966 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 11 TLE * 9 |
コンパイルメッセージ
Syntax OK
ソースコード
n = gets.to_i
sum = 0.0
n.times do |i|
sum += 1.0 / (i+1)
end
puts sum / 100