結果

問題 No.369 足し間違い
ユーザー wonda_t_coffeewonda_t_coffee
提出日時 2020-01-28 23:31:48
言語 Ruby
(3.3.0)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 88 bytes
コンパイル時間 64 ms
コンパイル使用メモリ 11,524 KB
実行使用メモリ 15,532 KB
最終ジャッジ日時 2023-10-13 20:58:21
合計ジャッジ時間 1,580 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,116 KB
testcase_01 AC 80 ms
15,028 KB
testcase_02 AC 80 ms
15,116 KB
testcase_03 AC 77 ms
15,008 KB
testcase_04 AC 80 ms
15,532 KB
testcase_05 AC 80 ms
15,144 KB
testcase_06 AC 81 ms
15,264 KB
testcase_07 AC 82 ms
15,424 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n = gets.chomp.to_i
a = gets.chomp.split.map(&:to_i)
v = gets.chomp.to_i

puts a.sum - v
0