結果

問題 No.57 ミリオンダイス
ユーザー harhogefooharhogefoo
提出日時 2016-10-06 08:03:34
言語 Ruby
(3.2.2)
結果
AC  
実行時間 86 ms / 5,000 ms
コード長 84 bytes
コンパイル時間 52 ms
コンパイル使用メモリ 11,272 KB
実行使用メモリ 15,336 KB
最終ジャッジ日時 2023-08-13 23:48:30
合計ジャッジ時間 1,905 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,284 KB
testcase_01 AC 83 ms
15,012 KB
testcase_02 AC 85 ms
15,244 KB
testcase_03 AC 86 ms
15,316 KB
testcase_04 AC 83 ms
15,256 KB
testcase_05 AC 83 ms
15,048 KB
testcase_06 AC 82 ms
15,148 KB
testcase_07 AC 83 ms
15,124 KB
testcase_08 AC 83 ms
15,004 KB
testcase_09 AC 83 ms
15,336 KB
testcase_10 AC 83 ms
15,100 KB
testcase_11 AC 82 ms
15,076 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i

expect = 0
6.times do |i|
  expect += (i+1) * n / 6.0
end
puts expect
0