Advertisement
Guest User

Untitled

a guest
Feb 14th, 2017
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4. #include <stack>
  5. #include <algorithm>
  6. #include <bits/stdc++.h>
  7. #include <list>
  8. #include <cmath>
  9. #include <sstream>
  10.  
  11. using namespace std;
  12. int main(){
  13. int n;
  14. cin>>n;
  15. string airName;
  16. cin>>airName;
  17. string nextS;
  18. int count=0;
  19. for(int i=0; i<n; i++){
  20. cin>>nextS;
  21. bool w=true;
  22. for(int j=5; j<8; j++){
  23. if(nextS[j] == airName[j]){
  24. w=false;
  25. break;
  26. }
  27. }
  28. if(w){
  29. count++;
  30. }
  31. }
  32. if(count%2==0){
  33. cout<<"home";
  34. }else{
  35. cout<<"contest";
  36. }
  37.  
  38.  
  39.  
  40.  
  41.  
  42. return 0;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement