結果

問題 No.2442 線形写像
ユーザー mintmint
提出日時 2024-04-02 23:05:55
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 430 bytes
コンパイル時間 2,190 ms
コンパイル使用メモリ 203,560 KB
実行使用メモリ 6,548 KB
最終ジャッジ日時 2024-04-02 23:06:00
合計ジャッジ時間 4,543 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ull = unsigned long long;

int main(){
    ull n, nn; cin >> n;
    nn = 1 << n;
    vector<ull> a(nn);
    for(auto &e : a) cin >> e;
    for(ull i = 0; i < nn; i++){
        for(ull j = j; j < nn; j++){
            if(a[i^j] != a[i]^a[j]){
                cout << "No" << '\n';
                return 0;
            }
        }
    }
    cout << "Yes" << '\n';
    return 0;
}
0