Submission #1407486


Source Code Expand

Copy
gets;puts gets.split.each_slice(2).inject([]){|s,(a,b)|s<<a;b ?s.unshift(b):s.reverse}*" "

Submission Info

Submission Time
Task C - pushpush
User mayumini
Language Ruby (2.3.3)
Score 300
Code Size 90 Byte
Status
Exec Time 119 ms
Memory 25468 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample1.txt, sample2.txt, sample3.txt, sample4.txt
All 300 / 300 even_0.txt, even_1.txt, even_2.txt, even_3.txt, odd_0.txt, odd_1.txt, odd_2.txt, odd_3.txt, sample1.txt, sample2.txt, sample3.txt, sample4.txt
Case Name Status Exec Time Memory
even_0.txt 116 ms 23932 KB
even_1.txt 118 ms 23932 KB
even_2.txt 116 ms 23932 KB
even_3.txt 116 ms 23932 KB
odd_0.txt 119 ms 25468 KB
odd_1.txt 117 ms 25468 KB
odd_2.txt 117 ms 25468 KB
odd_3.txt 117 ms 25468 KB
sample1.txt 7 ms 1788 KB
sample2.txt 7 ms 1788 KB
sample3.txt 7 ms 1788 KB
sample4.txt 7 ms 1788 KB