Submission #5658136


Source Code Expand

Copy
# frozen_string_literal: true

input = gets
input = gets.split(' ').map(&:to_i)
count = 0
while input.none?(&:odd?)
  count = count += 1
  input = input.map { |n| n / 2 }
end

p count

Submission Info

Submission Time
Task ABC081B - Shift only
User iteduki
Language Ruby (2.3.3)
Score 200
Code Size 195 Byte
Status
Exec Time 8 ms
Memory 3836 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample1.txt, sample2.txt, sample3.txt
All 200 / 200 sample1.txt, sample2.txt, sample3.txt, 1.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, sample1.txt, sample2.txt, sample3.txt
Case Name Status Exec Time Memory
1.txt 7 ms 1788 KB
2.txt 7 ms 1788 KB
3.txt 8 ms 1788 KB
4.txt 7 ms 1788 KB
5.txt 8 ms 3836 KB
6.txt 8 ms 1788 KB
7.txt 7 ms 1788 KB
sample1.txt 7 ms 1788 KB
sample2.txt 7 ms 1788 KB
sample3.txt 7 ms 1788 KB