結果

問題 No.862 XORでX
ユーザー tailstails
提出日時 2019-08-13 13:24:14
言語 Perl
(5.38.2)
結果
AC  
実行時間 143 ms / 2,000 ms
コード長 131 bytes
コンパイル時間 670 ms
コンパイル使用メモリ 19,868 KB
実行使用メモリ 30,144 KB
最終ジャッジ日時 2023-10-19 17:04:36
合計ジャッジ時間 7,362 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
21,468 KB
testcase_01 AC 61 ms
21,464 KB
testcase_02 AC 54 ms
21,472 KB
testcase_03 AC 86 ms
21,464 KB
testcase_04 AC 49 ms
21,464 KB
testcase_05 AC 37 ms
21,468 KB
testcase_06 AC 47 ms
21,464 KB
testcase_07 AC 39 ms
21,472 KB
testcase_08 AC 108 ms
22,524 KB
testcase_09 AC 81 ms
22,528 KB
testcase_10 AC 48 ms
22,524 KB
testcase_11 AC 136 ms
22,528 KB
testcase_12 AC 59 ms
21,468 KB
testcase_13 AC 118 ms
21,468 KB
testcase_14 AC 143 ms
21,464 KB
testcase_15 AC 91 ms
21,468 KB
testcase_16 AC 58 ms
27,952 KB
testcase_17 AC 131 ms
27,952 KB
testcase_18 AC 70 ms
27,960 KB
testcase_19 AC 89 ms
27,956 KB
testcase_20 AC 115 ms
30,140 KB
testcase_21 AC 111 ms
30,140 KB
testcase_22 AC 113 ms
30,140 KB
testcase_23 AC 115 ms
30,140 KB
testcase_24 AC 63 ms
30,140 KB
testcase_25 AC 63 ms
30,144 KB
testcase_26 AC 63 ms
30,140 KB
testcase_27 AC 64 ms
30,140 KB
testcase_28 AC 63 ms
30,140 KB
testcase_29 AC 63 ms
30,140 KB
testcase_30 AC 62 ms
30,140 KB
testcase_31 AC 63 ms
30,140 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($n,$x)=glob<>;@a=(0..2e5);map$x^=$_,1..$n;0while@a[$k,$j]=@a[$j=$j%$n+1,$k=rand(1e5+5-$n)+$n+1],$x^=$a[$j]^$a[$k];print"@a[1..$n]"
0