結果

問題 No.2442 線形写像
ユーザー t98slidert98slider
提出日時 2023-06-10 09:28:56
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
TLE  
実行時間 -
コード長 550 bytes
コンパイル時間 2,343 ms
コンパイル使用メモリ 182,360 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-30 19:48:00
合計ジャッジ時間 10,259 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 1 ms
4,376 KB
testcase_09 AC 1 ms
4,376 KB
testcase_10 AC 1 ms
4,384 KB
testcase_11 AC 2 ms
4,380 KB
testcase_12 AC 2 ms
4,376 KB
testcase_13 AC 2 ms
4,380 KB
testcase_14 AC 1 ms
4,380 KB
testcase_15 AC 11 ms
4,380 KB
testcase_16 TLE -
testcase_17 TLE -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#pragma GCC optimize ("O3","unroll-loops")
#pragma GCC target("avx512f")
#include <bits/stdc++.h>
using namespace std;
using ull = unsigned long long;

int main(){
    int n;
    cin >> n;
    n = 1 << n;
    vector<ull> a(n);
    for(auto &&v : a) scanf("%llu", &v);
    
    if(a[0]){
        puts("No");
        return 0;
    }

    for(int i = 0; i < n; i++){
        for(int j = i + 1; j < n; j++){
            if(a[i ^ j] != (a[i] ^ a[j])){
                puts("No");
                return 0;
            }
        }
    }

    puts("Yes");
}
0