Submission #1534075


Source Code Expand

#include <bits/stdc++.h>
using namespace std;

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);

  int n;
  long long a;
  int one = 0, two = 0, four = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a % 2 == 0) two++;
    else if (a % 4 == 0) four++;
    else one++;
  }
  one = one - four;
  if (one < 0) one = 0;

  if (one > 0) cout << "No" << endl;
  else cout << "Yes" << endl:

  return 0;
}

Submission Info

Submission Time
Task C - 4-adjacent
User moko_freedom
Language C++14 (GCC 5.4.1)
Score 0
Code Size 454 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:22:29: error: expected ‘;’ before ‘:’ token
   else cout << "Yes" << endl:
                             ^