Submission #2675423


Source Code Expand

Copy
#include <bits/stdc++.h>

using namespace std;

using int64 = long long;

int main() {
  int N, A[10000];
  cin >> N;
  int ret = 0;
  for(int i = 0; i < N; i++) {
    cin >> A[i];
    while(A[i] % 2 == 0) {
      A[i] /= 2;
      ++ret;
    }
  }
  cout << ret << endl;
}

Submission Info

Submission Time
Task C - *3 or /2
User ei13333
Language C++14 (GCC 5.4.1)
Score 300
Code Size 292 Byte
Status
Exec Time 7 ms
Memory 256 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01.txt, sample_02.txt, sample_03.txt
All 300 / 300 in01.txt, in02.txt, in03.txt, in04.txt, in05.txt, in06.txt, in07.txt, in08.txt, in09.txt, in10.txt, in11.txt, in12.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
in01.txt 7 ms 256 KB
in02.txt 7 ms 256 KB
in03.txt 6 ms 256 KB
in04.txt 6 ms 256 KB
in05.txt 7 ms 256 KB
in06.txt 7 ms 256 KB
in07.txt 7 ms 256 KB
in08.txt 7 ms 256 KB
in09.txt 7 ms 256 KB
in10.txt 7 ms 256 KB
in11.txt 7 ms 256 KB
in12.txt 7 ms 256 KB
sample_01.txt 1 ms 256 KB
sample_02.txt 1 ms 256 KB
sample_03.txt 1 ms 256 KB