結果

問題 No.282 おもりと天秤(2)
ユーザー tails
提出日時 2016-12-21 18:39:27
言語 Perl
(5.40.0)
結果
AC  
実行時間 2,173 ms / 5,000 ms
コード長 178 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 31,304 KB
平均クエリ数 450.62
最終ジャッジ日時 2024-07-17 00:41:43
合計ジャッジ時間 18,528 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24
権限があれば一括ダウンロードができます
コンパイルメッセージ
Possible unintended interpolation of @q in string at Main.pl line 1.
Smartmatch is deprecated at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

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