結果

問題 No.21 平均の差
ユーザー siman
提出日時 2015-11-13 18:44:06
言語 Ruby
(3.4.1)
結果
WA  
実行時間 -
コード長 34 bytes
コンパイル時間 43 ms
コンパイル使用メモリ 7,296 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-09-13 14:34:54
合計ジャッジ時間 1,655 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 8
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:2: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Main.rb:1: warning: assigned but unused variable - a
Main.rb:1: warning: assigned but unused variable - b
Syntax OK

ソースコード

diff #

a,b,*c=$<.map &:to_i
p -c[0]+c[-1]
0