Submission #2239881

Source Code Expand

Copy
n = scanf('%d','C');

a = zeros(n,1);

for i = 1:n
	a(i) = scanf('%d','C'); 
end

ans = 0;

while 1
	ok = true;
	for i = 1:n
		if mod(a(i),2) == 1
			ok = false;
		end
	end

	if ok == false
		break;
	end

	ans = ans + 1;

	for i = 1:n
		a(i) = a(i) /2;
	end
end

printf('%d\n',ans);

Submission Info

Submission Time
Task ABC081B - Shift only
User Hec
Language Octave (4.0.2)
Score 200
Code Size 313 Byte
Status
Exec Time 246 ms
Memory 9420 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 141 ms 9420 KB
2.txt 141 ms 9420 KB
3.txt 217 ms 9412 KB
4.txt 185 ms 9416 KB
5.txt 232 ms 9416 KB
6.txt 246 ms 9416 KB
7.txt 147 ms 9416 KB
sample1.txt 142 ms 9416 KB
sample2.txt 140 ms 9420 KB
sample3.txt 141 ms 9416 KB