提出 #1208323


ソースコード 拡げる

a, b, c = gets.split(" ").map(&:to_i)

if (a - b) == (b - c)
  puts "YES"
else
  puts "NO"
end

提出情報

提出日時
問題 A - ι⊥l
ユーザ hanaseleb
言語 Ruby (2.3.3)
得点 100
コード長 100 Byte
結果 AC
実行時間 7 ms
メモリ 1788 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 12
セット名 テストケース
Sample 0_000.txt, 0_001.txt, 0_002.txt
All 0_000.txt, 0_001.txt, 0_002.txt, A.txt, fever0.txt, fever7.txt, kure.txt, ma.txt, max.txt, nhk.txt, v.txt, xam.txt
ケース名 結果 実行時間 メモリ
0_000.txt AC 7 ms 1788 KiB
0_001.txt AC 7 ms 1788 KiB
0_002.txt AC 7 ms 1788 KiB
A.txt AC 7 ms 1788 KiB
fever0.txt AC 7 ms 1788 KiB
fever7.txt AC 7 ms 1788 KiB
kure.txt AC 7 ms 1788 KiB
ma.txt AC 7 ms 1788 KiB
max.txt AC 7 ms 1788 KiB
nhk.txt AC 7 ms 1788 KiB
v.txt AC 7 ms 1788 KiB
xam.txt AC 7 ms 1788 KiB