ログインしてください。
提出 #1231620
ソースコード 拡げる
a,b,c = gets.split.map{|n| n.to_i}
puts (b-a === c-b) ? 'YES' : 'NO'
提出情報
コンパイルエラー
./Main.cpp:3:22: warning: multi-character character constant [-Wmultichar]
puts (b-a === c-b) ? 'YES' : 'NO'
^
./Main.cpp:3:30: warning: multi-character character constant [-Wmultichar]
puts (b-a === c-b) ? 'YES' : 'NO'
^
./Main.cpp:1:1: error: ‘a’ does not name a type
a,b,c = gets.split.map{|n| n.to_i}
^
./Main.cpp:3:6: error: expected constructor, destructor, or type conversion before ‘(’ token
puts (b-a === c-b) ? 'YES' : 'NO'
^