結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 1,984 ms
4,380 KB
testcase_04 TLE -
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 1,987 ms
4,384 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 2 ms
4,384 KB
testcase_09 AC 1,983 ms
4,380 KB
testcase_10 AC 2 ms
4,376 KB
testcase_11 AC 1,960 ms
4,380 KB
testcase_12 AC 1,959 ms
4,380 KB
testcase_13 AC 2 ms
4,376 KB
testcase_14 AC 38 ms
4,380 KB
testcase_15 AC 1,959 ms
4,380 KB
testcase_16 WA -
testcase_17 AC 117 ms
4,380 KB
testcase_18 AC 1,961 ms
4,432 KB
testcase_19 AC 1,960 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.95>(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