結果

問題 No.934 Explosive energy drink
ユーザー tailstails
提出日時 2020-12-16 11:57:32
言語 Bash
(Bash 5.1.16)
結果
AC  
実行時間 1,781 ms / 2,000 ms
コード長 135 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 5,404 KB
実行使用メモリ 24,228 KB
平均クエリ数 354.79
最終ジャッジ日時 2023-09-24 09:28:07
合計ジャッジ時間 15,541 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
23,544 KB
testcase_01 AC 1,759 ms
23,496 KB
testcase_02 AC 28 ms
23,520 KB
testcase_03 AC 874 ms
23,532 KB
testcase_04 AC 1,781 ms
23,688 KB
testcase_05 AC 32 ms
23,376 KB
testcase_06 AC 25 ms
24,060 KB
testcase_07 AC 25 ms
23,868 KB
testcase_08 AC 27 ms
23,532 KB
testcase_09 AC 26 ms
23,640 KB
testcase_10 AC 26 ms
23,280 KB
testcase_11 AC 31 ms
23,400 KB
testcase_12 AC 46 ms
24,108 KB
testcase_13 AC 75 ms
24,228 KB
testcase_14 AC 85 ms
24,108 KB
testcase_15 AC 570 ms
23,520 KB
testcase_16 AC 164 ms
23,508 KB
testcase_17 AC 302 ms
23,520 KB
testcase_18 AC 307 ms
23,856 KB
testcase_19 AC 674 ms
23,532 KB
testcase_20 AC 1,137 ms
23,652 KB
testcase_21 AC 1,230 ms
23,100 KB
testcase_22 AC 1,774 ms
23,244 KB
testcase_23 AC 1,781 ms
23,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

b=({1..1000})
read n
for((i=1;i<=n;++i)){
	echo \? $[n-1] ${b[@]::i-1} ${b[@]:i:n-i}
	read r
	((r))||a+=($i)
}
echo ! ${#a[@]} ${a[@]}
0