Submission #2224861
Source Code Expand
function main(input) { var nums = input.split('\n')[1].split(' '); var count = 0; while(nums.every((n) => (n % 2) === 0)) { count++; nums = nums.map((n) => n / 2); } console.log(count); } main(require('fs').readFileSync('/dev/stdin', 'utf8'));
Submission Info
Submission Time | |
---|---|
Task | B - Shift only |
User | mochi8k |
Language | JavaScript (node.js v5.12) |
Score | 200 |
Code Size | 298 Byte |
Status | AC |
Exec Time | 919 ms |
Memory | 21064 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt, sample3.txt |
All | 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 | AC | 919 ms | 21064 KB |
2.txt | AC | 54 ms | 7372 KB |
3.txt | AC | 57 ms | 7372 KB |
4.txt | AC | 55 ms | 7372 KB |
5.txt | AC | 56 ms | 7372 KB |
6.txt | AC | 56 ms | 7372 KB |
7.txt | AC | 54 ms | 7372 KB |
sample1.txt | AC | 54 ms | 7372 KB |
sample2.txt | AC | 54 ms | 7372 KB |
sample3.txt | AC | 54 ms | 7372 KB |