Submission #1407485


Source Code Expand

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

Submission Info

Submission Time
Task C - pushpush
User mayumini
Language Ruby (2.3.3)
Score 0
Code Size 86 Byte
Status

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample1.txt, sample2.txt, sample3.txt, sample4.txt
All 0 / 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
even_1.txt
even_2.txt
even_3.txt
odd_0.txt
odd_1.txt
odd_2.txt
odd_3.txt
sample1.txt 7 ms 1788 KB
sample2.txt 7 ms 1788 KB
sample3.txt 7 ms 1788 KB
sample4.txt 7 ms 1788 KB