結果

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

ソースコード

diff #

@a=++$|..<>;{print"? @q"," 0"x2x(@a-@q),$/;/ /,${$`}[getc,$']=getc eq'>'||-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