結果
| 問題 | No.2442 線形写像 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-10 09:31:24 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 550 bytes |
| 記録 | |
| コンパイル時間 | 2,549 ms |
| コンパイル使用メモリ | 184,152 KB |
| 実行使用メモリ | 13,636 KB |
| 最終ジャッジ日時 | 2025-01-02 15:22:32 |
| 合計ジャッジ時間 | 19,934 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 18 TLE * 4 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:12:28: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
12 | for(auto &&v : a) scanf("%llu", &v);
| ~~~~~^~~~~~~~~~~~
ソースコード
#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;
array<ull, 131072> a;
for(auto &&v : a) scanf("%llu", &v);
if(a[0]){
puts("No");
return 0;
}
for(int i = 0; i < n; i++){
for(int j = 0; j < i; j++){
if(a[i ^ j] != (a[i] ^ a[j])){
puts("No");
return 0;
}
}
}
puts("Yes");
}