結果
問題 | No.369 足し間違い |
ユーザー | fshuto |
提出日時 | 2019-04-19 08:24:38 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 92 ms / 2,000 ms |
コード長 | 74 bytes |
コンパイル時間 | 528 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,544 KB |
最終ジャッジ日時 | 2024-09-22 11:21:47 |
合計ジャッジ時間 | 1,602 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 = gets.split.map(&:to_i).inject(:+) puts ans - gets.to_i