結果
問題 | No.2442 線形写像 |
ユーザー | t98slider |
提出日時 | 2023-06-10 11:31:55 |
言語 | C++23 (gcc 12.3.0 + boost 1.83.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 590 bytes |
コンパイル時間 | 4,134 ms |
コンパイル使用メモリ | 260,936 KB |
実行使用メモリ | 8,768 KB |
最終ジャッジ日時 | 2023-08-30 20:49:15 |
合計ジャッジ時間 | 10,456 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 7 ms
4,376 KB |
testcase_01 | AC | 7 ms
4,380 KB |
testcase_02 | AC | 7 ms
4,380 KB |
testcase_03 | AC | 7 ms
4,380 KB |
testcase_04 | AC | 7 ms
4,376 KB |
testcase_05 | AC | 7 ms
4,380 KB |
testcase_06 | AC | 7 ms
4,376 KB |
testcase_07 | AC | 7 ms
4,380 KB |
testcase_08 | AC | 7 ms
4,380 KB |
testcase_09 | AC | 7 ms
4,380 KB |
testcase_10 | AC | 7 ms
4,376 KB |
testcase_11 | AC | 7 ms
4,380 KB |
testcase_12 | AC | 7 ms
4,380 KB |
testcase_13 | AC | 8 ms
4,380 KB |
testcase_14 | AC | 7 ms
4,376 KB |
testcase_15 | AC | 442 ms
4,380 KB |
testcase_16 | AC | 1,730 ms
4,376 KB |
testcase_17 | TLE | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
コンパイルメッセージ
main.cpp: 関数 ‘int main()’ 内: main.cpp:19:22: 警告: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 19 | for(register int i = 0; i < n; i++){ | ^ main.cpp:20:22: 警告: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 20 | register ull b = a[i]; | ^ main.cpp:21:26: 警告: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 21 | for(register int j = 0; j < i; j++){ | ^
ソースコード
#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(register int i = 0; i < n; i++){ register ull b = a[i]; for(register int j = 0; j < i; j++){ if(b ^ a[i ^ j] ^ a[j]){ puts("No"); return 0; } } } puts("Yes"); }