Submission #523349


Source Code Expand

Copy
a = gets.split(' ')
ans = ''

a.each do |aa|
    if aa == 'Left'
        ans += '< '
    elsif aa == 'Right'
        ans += '> '
    else
        ans += 'A '
    end
end
puts ans.strip

Submission Info

Submission Time
Task A - スペース高橋君
User brook
Language Ruby (2.1.5p273)
Score 100
Code Size 196 Byte
Status
Exec Time 57 ms
Memory 5264 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 example_0.txt, example_1.txt, example_2.txt
All 100 / 100 corner_0.txt, corner_1.txt, corner_2.txt, example_0.txt, example_1.txt, example_2.txt, maxrand_0.txt, maxrand_1.txt, maxrand_2.txt, random_0.txt, random_1.txt, random_2.txt, random_3.txt, random_4.txt
Case Name Status Exec Time Memory
corner_0.txt 56 ms 5148 KB
corner_1.txt 54 ms 5100 KB
corner_2.txt 54 ms 5100 KB
example_0.txt 55 ms 5092 KB
example_1.txt 55 ms 5076 KB
example_2.txt 56 ms 5096 KB
maxrand_0.txt 57 ms 5192 KB
maxrand_1.txt 55 ms 5096 KB
maxrand_2.txt 57 ms 5096 KB
random_0.txt 57 ms 5264 KB
random_1.txt 56 ms 5144 KB
random_2.txt 56 ms 5100 KB
random_3.txt 55 ms 5096 KB
random_4.txt 57 ms 5096 KB