Submission #19488062


Source Code Expand

Copy
		#include <bits/stdc++.h>
		#define rep(i,n) for(int i = 0; i < (n); ++i)
		using namespace std;
		using ll = long long;
		using P = pair<int,int>;


		int main() {
			int n;
			cin >> n;
			ll ans = 0;
			rep(i, n) {
				int a;
				cin >> a;
				while (a % 2 == 0) {
					a /= 2;
					ans++;
				}
			}
			cout << ans << endl;
		}
	





Submission Info

Submission Time
Task A - Add Sub Mul
User koni60
Language C++ (GCC 9.2.1)
Score 0
Code Size 367 Byte
Status WA
Exec Time 2205 ms
Memory 3576 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
AC × 1
WA × 2
AC × 3
WA × 12
TLE × 1
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All sample_01.txt, sample_02.txt, sample_03.txt, sample_01.txt, sample_02.txt, sample_03.txt, subtask_1_01.txt, subtask_1_02.txt, subtask_1_03.txt, subtask_1_04.txt, subtask_1_05.txt, subtask_1_06.txt, subtask_1_07.txt, subtask_1_08.txt, subtask_1_09.txt, subtask_1_10.txt
Case Name Status Exec Time Memory
sample_01.txt WA 6 ms 3404 KB
sample_02.txt WA 2 ms 3364 KB
sample_03.txt AC 2 ms 3408 KB
subtask_1_01.txt WA 2 ms 3468 KB
subtask_1_02.txt AC 2 ms 3576 KB
subtask_1_03.txt WA 8 ms 3472 KB
subtask_1_04.txt WA 2 ms 3552 KB
subtask_1_05.txt WA 2 ms 3368 KB
subtask_1_06.txt WA 2 ms 3468 KB
subtask_1_07.txt TLE 2205 ms 3312 KB
subtask_1_08.txt WA 11 ms 3504 KB
subtask_1_09.txt WA 2 ms 3576 KB
subtask_1_10.txt WA 2 ms 3572 KB