結果

問題 No.862 XORでX
ユーザー tailstails
提出日時 2019-08-13 12:51:08
言語 cLay
(20240104-1)
結果
AC  
実行時間 10 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 1,942 ms
コンパイル使用メモリ 161,740 KB
実行使用メモリ 7,032 KB
最終ジャッジ日時 2023-09-19 00:24:25
合計ジャッジ時間 6,599 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
6,872 KB
testcase_01 AC 5 ms
7,032 KB
testcase_02 AC 4 ms
6,908 KB
testcase_03 AC 7 ms
6,944 KB
testcase_04 AC 6 ms
6,888 KB
testcase_05 AC 9 ms
6,932 KB
testcase_06 AC 3 ms
6,932 KB
testcase_07 AC 4 ms
6,928 KB
testcase_08 AC 4 ms
6,908 KB
testcase_09 AC 3 ms
6,900 KB
testcase_10 AC 10 ms
6,916 KB
testcase_11 AC 5 ms
6,852 KB
testcase_12 AC 4 ms
6,868 KB
testcase_13 AC 4 ms
6,964 KB
testcase_14 AC 3 ms
6,892 KB
testcase_15 AC 5 ms
6,912 KB
testcase_16 AC 5 ms
6,884 KB
testcase_17 AC 7 ms
6,916 KB
testcase_18 AC 6 ms
6,960 KB
testcase_19 AC 5 ms
6,912 KB
testcase_20 AC 10 ms
6,896 KB
testcase_21 AC 6 ms
6,872 KB
testcase_22 AC 7 ms
6,928 KB
testcase_23 AC 6 ms
6,900 KB
testcase_24 AC 4 ms
7,012 KB
testcase_25 AC 6 ms
6,856 KB
testcase_26 AC 5 ms
6,872 KB
testcase_27 AC 6 ms
6,872 KB
testcase_28 AC 5 ms
6,852 KB
testcase_29 AC 4 ms
6,856 KB
testcase_30 AC 4 ms
6,892 KB
testcase_31 AC 4 ms
6,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll a[3d5],n,x,j,k;
Rand r;
{
	rd(n,x);
	a[0..2d5]=(1..);
	x^=(1..n);
	while(swap(a[j=-~j%n],a[k=r.get(1d5+5-n)+n]),x^=a[j]^a[k]);
	wt(a(n));
}
0