Skip to content

Instantly share code, notes, and snippets.

View alexandersazonof's full-sized avatar
🍐
Chill

!ruby alexandersazonof

🍐
Chill
View GitHub Profile
first = [2,4,1,1,1]
second = [4,1,6,7,1]
for i in 0..first.length-1 do
puts "#{i+1} команда #{first.at(i)>second.at(i)? "победила":(first.at(i)<second.at(i)? "проиграла": "ничья")}"
end
@alexandersazonof
alexandersazonof / first.txt
Last active November 20, 2018 08:08
First task
# 1 task
first = [2,4,1,1,1]
second = [4,1,6,7,1]
for i in 0..first.length-1 do
puts "#{i+1} команда #{first.at(i)>second.at(i)? "победила":(first.at(i)<second.at(i)? "проиграла": "ничья")}"
end