結果

問題 No.143 豆
ユーザー SapphireSapphire
提出日時 2019-06-25 17:35:26
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 112 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 11,508 KB
実行使用メモリ 15,316 KB
最終ジャッジ日時 2023-09-05 06:51:17
合計ジャッジ時間 3,035 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,120 KB
testcase_01 AC 82 ms
15,032 KB
testcase_02 AC 79 ms
15,224 KB
testcase_03 AC 78 ms
15,164 KB
testcase_04 AC 80 ms
15,124 KB
testcase_05 AC 79 ms
15,268 KB
testcase_06 AC 79 ms
15,136 KB
testcase_07 AC 79 ms
15,240 KB
testcase_08 AC 79 ms
15,132 KB
testcase_09 WA -
testcase_10 AC 80 ms
15,040 KB
testcase_11 AC 79 ms
15,152 KB
testcase_12 AC 80 ms
15,036 KB
testcase_13 AC 80 ms
15,036 KB
testcase_14 AC 80 ms
15,160 KB
testcase_15 AC 80 ms
15,100 KB
testcase_16 AC 79 ms
15,316 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

k, n = gets.split.map &:to_i
bean = k*n
age = Array.new(gets.split.map &:to_i).sum
puts bean>age ? bean-age : -1
0