結果

問題 No.369 足し間違い
ユーザー quilt-tailsquilt-tails
提出日時 2016-10-01 22:54:37
言語 Ruby
(3.2.2)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 100 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 11,288 KB
実行使用メモリ 15,560 KB
最終ジャッジ日時 2023-08-13 16:41:36
合計ジャッジ時間 1,627 ms
ジャッジサーバーID
(参考情報)
judge10 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,144 KB
testcase_01 AC 78 ms
15,040 KB
testcase_02 AC 77 ms
15,084 KB
testcase_03 AC 77 ms
15,012 KB
testcase_04 AC 80 ms
15,508 KB
testcase_05 AC 79 ms
15,208 KB
testcase_06 AC 80 ms
15,560 KB
testcase_07 AC 82 ms
15,424 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = STDIN.readlines.map(&:chomp)

sum = N[1].split.map(&:to_i).inject(:+)
v = N[2].to_i
puts sum - v
0