結果

問題 No.73 helloworld
ユーザー finefine
提出日時 2016-03-24 01:05:32
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 292 bytes
コンパイル時間 67 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-04-09 21:15:07
合計ジャッジ時間 1,750 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 72 ms
12,160 KB
testcase_04 AC 72 ms
12,288 KB
testcase_05 WA -
testcase_06 AC 73 ms
12,288 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 73 ms
12,160 KB
testcase_13 AC 73 ms
12,416 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

d,e,h,l,o,r,w = STDIN.map(&:to_i).values_at(3,4,7,11,14,17,22)
if d < 1 || e < 1 || h < 1 || l < 3 || o < 2 || r < 1 || w < 1
    p 0
else
    ans = 0
    2.upto(l - 1){|a|
        ans = [ans, a * (a - 1) / 2 * (99 - a)].max
        }
    p d * e * h * r * w * (o / 2) * (o - o / 2) * ans
end
0