結果

問題 No.282 おもりと天秤(2)
ユーザー tailstails
提出日時 2016-12-21 18:22:23
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,977 ms / 5,000 ms
コード長 194 bytes
コンパイル時間 71 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 31,928 KB
平均クエリ数 450.62
最終ジャッジ日時 2023-09-24 00:46:17
合計ジャッジ時間 17,257 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
24,252 KB
testcase_01 AC 33 ms
24,012 KB
testcase_02 AC 29 ms
24,000 KB
testcase_03 AC 25 ms
23,904 KB
testcase_04 AC 23 ms
24,000 KB
testcase_05 AC 30 ms
24,000 KB
testcase_06 AC 35 ms
23,340 KB
testcase_07 AC 24 ms
24,384 KB
testcase_08 AC 35 ms
24,240 KB
testcase_09 AC 21 ms
23,400 KB
testcase_10 AC 390 ms
23,628 KB
testcase_11 AC 1,514 ms
30,160 KB
testcase_12 AC 419 ms
23,780 KB
testcase_13 AC 879 ms
25,464 KB
testcase_14 AC 1,063 ms
28,956 KB
testcase_15 AC 1,955 ms
30,640 KB
testcase_16 AC 105 ms
24,408 KB
testcase_17 AC 706 ms
24,944 KB
testcase_18 AC 1,186 ms
27,700 KB
testcase_19 AC 881 ms
28,476 KB
testcase_20 AC 1,896 ms
31,544 KB
testcase_21 AC 1,977 ms
31,928 KB
testcase_22 AC 1,664 ms
31,640 KB
testcase_23 AC 21 ms
23,496 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Possible unintended interpolation of @q in string at Main.pl line 3.
Main.pl syntax OK

ソースコード

diff #

@a=++$|..<>;
do{
	print"? @q"," 0"x2x(@a-@q),$/;
	/ /,${$`}[$']=getc eq'>'||-1,getc for@q;
	<>;
	@u=@q=();
	@a=sort{$$a[$b]|$u[$a]|$u[$b]||($u[$a]=$u[$b]=push@q,"$a $b")}@a
}while@q;
print"! @a"
0