题解 | 被打乱的异或和

被打乱的异或和

https://www.nowcoder.com/practice/116db6858c424fb89b821125053bbc15

#include <stdio.h>

int main(void) {
    int t, n;
    scanf("%d", &t);

    while(t--){
        scanf("%d", &n);

        int a[n];
        for(int i = 0; i < n; i++)
            scanf("%d", &a[i]);

        printf("%d\n", a[0]);
    }

    return 0;
}

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务