結果

問題 No.850 企業コンテスト2位
ユーザー tailstails
提出日時 2019-07-14 00:34:54
言語 Bash
(Bash 5.1.16)
結果
AC  
実行時間 397 ms / 2,000 ms
コード長 111 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 29,720 KB
平均クエリ数 200.07
最終ジャッジ日時 2023-09-23 17:55:27
合計ジャッジ時間 8,754 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
24,144 KB
testcase_01 AC 32 ms
23,244 KB
testcase_02 AC 26 ms
23,640 KB
testcase_03 AC 28 ms
24,036 KB
testcase_04 AC 24 ms
23,628 KB
testcase_05 AC 24 ms
23,508 KB
testcase_06 AC 25 ms
23,868 KB
testcase_07 AC 117 ms
23,496 KB
testcase_08 AC 175 ms
23,520 KB
testcase_09 AC 177 ms
23,784 KB
testcase_10 AC 397 ms
29,424 KB
testcase_11 AC 385 ms
29,692 KB
testcase_12 AC 388 ms
29,408 KB
testcase_13 AC 359 ms
28,688 KB
testcase_14 AC 376 ms
28,496 KB
testcase_15 AC 333 ms
27,388 KB
testcase_16 AC 331 ms
28,144 KB
testcase_17 AC 396 ms
29,472 KB
testcase_18 AC 330 ms
27,448 KB
testcase_19 AC 364 ms
28,376 KB
testcase_20 AC 387 ms
29,720 KB
testcase_21 AC 385 ms
29,152 KB
testcase_22 AC 383 ms
29,472 KB
testcase_23 AC 390 ms
29,248 KB
testcase_24 AC 378 ms
29,192 KB
testcase_25 AC 378 ms
29,708 KB
testcase_26 AC 395 ms
29,548 KB
testcase_27 AC 30 ms
23,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

f(){
x=$1
$2||{
echo ? $1 $2
read z
a[z]+=$[x^$2^z]\ 
f ${*:3} $z
}
}
read n
eval f {1..$n}
f ${a[x]}
echo ! $x
0