Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.     int n, counter = 0, a[100] = { 0 }, i = 0;
  7.     cin >> n;
  8.     while (i < n) {
  9.         cin >> a[i];
  10.         i++;
  11.     }
  12.     i = 0;
  13.     while (i < n) {
  14.         counter ^= a[i] % 7;
  15.         i++;
  16.     }
  17.     if (counter == 0 || counter == 1) cout << "Second";
  18.     else cout << "First";
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement