Submission #1207372


Source Code Expand

Copy
a,b,c=gets.split.map &:to_i
puts b-a==c-b ? :YES : :NO

Submission Info

Submission Time
Task A - ι⊥l
User leafmoon
Language Ruby (2.3.3)
Score 100
Code Size 55 Byte
Status
Exec Time 7 ms
Memory 1788 KB

Compile Error

./Main.rb:1: warning: `&' interpreted as argument prefix

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 0_000.txt, 0_001.txt, 0_002.txt
All 100 / 100 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
Case Name Status Exec Time Memory
0_000.txt 7 ms 1788 KB
0_001.txt 7 ms 1788 KB
0_002.txt 7 ms 1788 KB
A.txt 7 ms 1788 KB
fever0.txt 7 ms 1788 KB
fever7.txt 7 ms 1788 KB
kure.txt 7 ms 1788 KB
ma.txt 7 ms 1788 KB
max.txt 7 ms 1788 KB
nhk.txt 7 ms 1788 KB
v.txt 7 ms 1788 KB
xam.txt 7 ms 1788 KB