全部评论 3

  • 关注Eason_cyx谢谢喵

    昨天 来自 湖北

    0
  • T2怎么写啊,最高只有60分

    昨天 来自 湖北

    0
  • T1:100分

    #include<bits/stdc++.h>
    using namespace std;
    int n;
    long long b[100005];
    long long a[100005];
    int main(){
        cin >> n;
        for(int i = 1; i <= n; i++) {
            cin >> b[i];
        }
        a[1] = 0;
        for(int i = 2; i <= n; i++) {
            a[i] = a[i-1] ^ b[i];
        }
        for(int i = 1; i <= n; i++) {
            cout << a[i] << "\n";
        }
        return 0;
    }
    

    2天前 来自 湖北

    0

热门讨论