結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
23,244 KB
testcase_01 AC 32 ms
24,192 KB
testcase_02 AC 27 ms
23,448 KB
testcase_03 AC 27 ms
23,340 KB
testcase_04 AC 29 ms
23,964 KB
testcase_05 AC 28 ms
23,484 KB
testcase_06 AC 29 ms
23,952 KB
testcase_07 AC 126 ms
23,400 KB
testcase_08 AC 196 ms
23,880 KB
testcase_09 AC 194 ms
23,292 KB
testcase_10 AC 431 ms
29,728 KB
testcase_11 AC 428 ms
29,284 KB
testcase_12 AC 438 ms
29,200 KB
testcase_13 AC 407 ms
28,568 KB
testcase_14 AC 408 ms
29,048 KB
testcase_15 AC 376 ms
27,672 KB
testcase_16 AC 374 ms
27,508 KB
testcase_17 AC 440 ms
29,356 KB
testcase_18 AC 370 ms
27,984 KB
testcase_19 AC 399 ms
28,856 KB
testcase_20 AC 430 ms
29,168 KB
testcase_21 AC 436 ms
29,308 KB
testcase_22 AC 421 ms
29,404 KB
testcase_23 AC 424 ms
28,904 KB
testcase_24 AC 427 ms
29,056 KB
testcase_25 AC 428 ms
29,508 KB
testcase_26 AC 430 ms
29,392 KB
testcase_27 AC 29 ms
23,340 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