結果

問題 No.2442 線形写像
ユーザー MagentorMagentor
提出日時 2023-08-25 22:03:45
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 638 bytes
コンパイル時間 2,102 ms
コンパイル使用メモリ 202,456 KB
実行使用メモリ 4,508 KB
最終ジャッジ日時 2023-08-25 22:04:10
合計ジャッジ時間 24,239 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,924 ms
4,376 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 1,942 ms
4,376 KB
testcase_04 AC 1,919 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 1,931 ms
4,384 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 2 ms
4,380 KB
testcase_09 AC 1,919 ms
4,380 KB
testcase_10 AC 2 ms
4,380 KB
testcase_11 AC 1,925 ms
4,380 KB
testcase_12 AC 1,920 ms
4,376 KB
testcase_13 AC 2 ms
4,380 KB
testcase_14 AC 35 ms
4,388 KB
testcase_15 AC 1,921 ms
4,376 KB
testcase_16 WA -
testcase_17 AC 108 ms
4,376 KB
testcase_18 AC 1,942 ms
4,380 KB
testcase_19 AC 1,920 ms
4,380 KB
testcase_20 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
#define rep2(i, m ,n) for (int i = (m); i < (long long)(n); i++)
#define REP(i, n) for (long long i = 1; i < (long long)(n); i++)
typedef long long ll;

int main() {
int n;cin>>n;
ll t = 1<<n;
double start = clock();
vector<ll> v(t);
rep(i,t){cin>>v[i];}
while(1.89>(double)(clock() - start) / CLOCKS_PER_SEC){
	int i = rand()%t;int j = rand()%t;
if(v[i^j]!=(v[i]^v[j])){cout<<"No"<<endl;return 0;}	
}

cout << "Yes" << endl;return 0;
}
0