結果

問題 No.71 そろばん
ユーザー simansiman
提出日時 2015-11-07 20:50:11
言語 Ruby
(3.3.0)
結果
AC  
実行時間 220 ms / 5,000 ms
コード長 47 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 11,504 KB
実行使用メモリ 38,708 KB
最終ジャッジ日時 2023-10-11 15:14:44
合計ジャッジ時間 5,422 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,276 KB
testcase_01 AC 80 ms
15,128 KB
testcase_02 AC 220 ms
38,708 KB
testcase_03 AC 134 ms
24,652 KB
testcase_04 AC 157 ms
28,836 KB
testcase_05 AC 197 ms
34,976 KB
testcase_06 AC 211 ms
37,408 KB
testcase_07 AC 162 ms
29,492 KB
testcase_08 AC 138 ms
25,588 KB
testcase_09 AC 210 ms
36,668 KB
testcase_10 AC 158 ms
28,764 KB
testcase_11 AC 98 ms
18,444 KB
testcase_12 AC 120 ms
22,408 KB
testcase_13 AC 213 ms
37,612 KB
testcase_14 AC 132 ms
24,312 KB
testcase_15 AC 185 ms
32,972 KB
testcase_16 AC 98 ms
18,232 KB
testcase_17 AC 139 ms
25,692 KB
testcase_18 AC 194 ms
33,948 KB
testcase_19 AC 212 ms
37,352 KB
testcase_20 AC 208 ms
36,876 KB
testcase_21 AC 137 ms
25,188 KB
testcase_22 AC 177 ms
31,144 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s=gets.to_i;p [*1..s].map{|n|(n+1)*(s-n)+n}.max
0