Guest User

Untitled

a guest
Oct 6th, 2017
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.02 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3.     #define ll          long long
  4.     #define pb          push_back
  5.     #define mp          make_pair
  6.     #define pii         pair<int,int>
  7.     #define vi          vector<int>
  8.     #define all(a)      (a).begin(),(a).end()
  9.     #define lol        1000000007
  10.     #define endl        '\n'
  11.     #define rep(i,a,b)  for(int i=a;i<b;i++)
  12.     using namespace std;
  13.  
  14.     void MOD(ll &x)
  15.     {
  16.         if (x >= lol) x -= lol;
  17.         if (x < 0) x += lol;
  18.     }
  19.  
  20.     void solve()
  21.     {
  22.         int n;
  23.         cin>>n;
  24.         ll x[n], y[n];
  25.         rep(i,0,n)
  26.         {
  27.             cin>>x[i];
  28.         }
  29.         rep(i,0,n)
  30.         {
  31.             cin>>y[i];
  32.         }
  33.         ll count = 0;
  34.         rep(i,0,n)
  35.         {
  36.             ll c = x[i]^y[i];
  37.             //cout<<c<<" ";
  38.             rep(j,0,n)
  39.             {
  40.                 if(c==x[j]||c==y[j])
  41.                 {
  42.                     count++;
  43.                     goto l;
  44.                 }
  45.             }
  46.             l:;
  47.         }
  48.         //cout<<count<<endl;
  49.         if(count%2==0)
  50.             cout<<"Karen"<<endl;
  51.         else
  52.             cout<<"Koyomi"<<endl;
  53.        
  54.        
  55.     }
  56.  
  57.     int main()
  58.     {
  59.         ios_base::sync_with_stdio(false);
  60.         cin.tie(0);
  61.         cout.tie(0);
  62.         int t=1;
  63.     //  cin>>t;
  64.         while(t--){
  65.             solve();
  66.         }
  67.         return 0;
  68.     }
Add Comment
Please, Sign In to add comment