結果
| 問題 |
No.2442 線形写像
|
| コンテスト | |
| ユーザー |
mint
|
| 提出日時 | 2024-04-02 23:05:55 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 430 bytes |
| コンパイル時間 | 2,086 ms |
| コンパイル使用メモリ | 194,392 KB |
| 最終ジャッジ日時 | 2025-02-20 19:42:27 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 WA * 10 |
ソースコード
#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;
}
mint