Submission #8093619


Source Code Expand

input_arr = gets.chomp.split(' ').map(&:to_i);
arr = input_arr.array.each_slice(2).to_a
sum == arr.inject(0){|sum, i| sum + i}
print(sum)

Submission Info

Submission Time
Task A - BBQ Easy
User masayuki031
Language Ruby (2.3.3)
Score 0
Code Size 142 Byte
Status RE
Exec Time 7 ms
Memory 3836 KB

Compile Error

./Main.rb:3: warning: possibly useless use of == in void context

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 200
Status
RE × 2
RE × 12
Set Name Test Cases
Sample sample-01.txt, sample-02.txt
All sample-01.txt, sample-02.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, sample-01.txt, sample-02.txt
Case Name Status Exec Time Memory
01-01.txt RE 7 ms 1788 KB
01-02.txt RE 7 ms 1788 KB
01-03.txt RE 7 ms 1788 KB
01-04.txt RE 7 ms 1788 KB
01-05.txt RE 7 ms 1788 KB
01-06.txt RE 7 ms 1788 KB
01-07.txt RE 7 ms 1788 KB
01-08.txt RE 7 ms 1788 KB
sample-01.txt RE 7 ms 1788 KB
sample-02.txt RE 7 ms 3836 KB