Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int n, counter = 0, a[100] = { 0 }, i = 0;
- cin >> n;
- while (i < n) {
- cin >> a[i];
- i++;
- }
- i = 0;
- while (i < n) {
- counter ^= a[i] % 7;
- i++;
- }
- if (counter == 0 || counter == 1) cout << "Second";
- else cout << "First";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement