結果
問題 | No.369 足し間違い |
ユーザー | kazuki |
提出日時 | 2018-12-14 23:47:39 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 95 ms / 2,000 ms |
コード長 | 110 bytes |
コンパイル時間 | 239 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,544 KB |
最終ジャッジ日時 | 2024-09-25 05:27:00 |
合計ジャッジ時間 | 1,496 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n = gets.to_i ans_correct = gets.split.map(&:to_i).inject(:+) ans_yuki = gets.to_i puts ans_correct-ans_yuki