Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <vector>
- #include <stack>
- #include <algorithm>
- #include <bits/stdc++.h>
- #include <list>
- #include <cmath>
- #include <sstream>
- using namespace std;
- int main(){
- int n;
- cin>>n;
- string airName;
- cin>>airName;
- string nextS;
- int count=0;
- for(int i=0; i<n; i++){
- cin>>nextS;
- bool w=true;
- for(int j=5; j<8; j++){
- if(nextS[j] == airName[j]){
- w=false;
- break;
- }
- }
- if(w){
- count++;
- }
- }
- if(count%2==0){
- cout<<"home";
- }else{
- cout<<"contest";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement