zoukankan      html  css  js  c++  java
  • 【Codeforces Round #439 (Div. 2) A】The Artful Expedient

    【链接】 链接
    【题意】

    【题解】

    暴力

    【错的次数】

    在这里输入错的次数

    【反思】

    在这里输入反思

    【代码】

    #include <bits/stdc++.h>
    using namespace std;
    
    const int INF = 2e6;
    const int N = 2e3;
    
    bool bo[INF+10];
    int x[N+10],y[N+10],n;
    
    int main()
    {
        //freopen("F:\rush.txt","r",stdin);
        scanf("%d",&n);
        for (int i = 1;i <= n;i++){
            scanf("%d",&x[i]);
            bo[x[i]] = 1;
        }
        for (int i = 1;i <= n;i++){
            scanf("%d",&y[i]);
            bo[y[i]] = 1;
        }
        int cnt = 0;
        for (int i = 1;i <= n;i++)
            for (int j = 1;j <= n;j++)
            {
                int temp = x[i]^y[j];
                if (temp<=INF)
                {
                    if (bo[temp])
                        cnt++;
                }
            }
        if (cnt&1)
            puts("Koyomi");
        else
            puts("Karen");
        return 0;
    }
    
  • 相关阅读:
    LDAP+Jenkins
    LDAP+SASL+SVN
    Ubuntu下的LDAP服务搭建
    LDAP+Confluence
    LDAP+Nextcloud
    vim -d
    linux默认编辑器
    vim相关调优
    MySQL中的保留字
    RHEL7配置ip地址
  • 原文地址:https://www.cnblogs.com/AWCXV/p/7633441.html
Copyright © 2011-2022 走看看