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
Exec Time 2119 ms
Memory 186456 KB

Judge Result

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 2115 ms 170976 KB
even_1.txt 2117 ms 167296 KB
even_2.txt 2117 ms 156932 KB
even_3.txt 2119 ms 176952 KB
odd_0.txt 2113 ms 167724 KB
odd_1.txt 2118 ms 179196 KB
odd_2.txt 2119 ms 186456 KB
odd_3.txt 2114 ms 164020 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