結果

問題 No.282 おもりと天秤(2)
ユーザー tails
提出日時 2016-12-21 18:22:23
言語 Perl
(5.40.0)
結果
AC  
実行時間 2,165 ms / 5,000 ms
コード長 194 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 6,812 KB
実行使用メモリ 31,304 KB
平均クエリ数 450.62
最終ジャッジ日時 2024-07-17 00:41:00
合計ジャッジ時間 18,371 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24
権限があれば一括ダウンロードができます
コンパイルメッセージ
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