結果
| 問題 | No.2442 線形写像 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-25 21:40:04 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 13 ms / 2,000 ms |
| コード長 | 416 bytes |
| 記録 | |
| コンパイル時間 | 1,237 ms |
| コンパイル使用メモリ | 211,628 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-02 07:05:57 |
| 合計ジャッジ時間 | 2,290 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int N;
cin>>N;
vector A(1<<N,0ull);
for(auto &i:A)cin>>i;
if(A[0]!=0){
cout<<"No\n";
return 0;
}
for(int i=0;i<N;i++){
for(int j=0;j<1<<N;j++){
if((A[j]^A[1<<i])!=A[(j^(1<<i))]){
cout<<"No\n";
return 0;
}
}
}
cout<<"Yes\n";
}