結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
23,628 KB
testcase_01 AC 41 ms
23,508 KB
testcase_02 AC 32 ms
23,628 KB
testcase_03 AC 29 ms
23,988 KB
testcase_04 AC 27 ms
24,012 KB
testcase_05 AC 35 ms
23,988 KB
testcase_06 AC 41 ms
23,628 KB
testcase_07 AC 28 ms
24,024 KB
testcase_08 AC 41 ms
23,364 KB
testcase_09 AC 26 ms
24,384 KB
testcase_10 AC 438 ms
23,520 KB
testcase_11 AC 1,774 ms
30,600 KB
testcase_12 AC 491 ms
23,596 KB
testcase_13 AC 1,019 ms
25,536 KB
testcase_14 AC 1,241 ms
28,704 KB
testcase_15 AC 2,222 ms
31,012 KB
testcase_16 AC 120 ms
24,204 KB
testcase_17 AC 791 ms
25,352 KB
testcase_18 AC 1,342 ms
28,400 KB
testcase_19 AC 1,060 ms
28,092 KB
testcase_20 AC 2,006 ms
31,912 KB
testcase_21 AC 2,098 ms
31,584 KB
testcase_22 AC 1,884 ms
31,036 KB
testcase_23 AC 24 ms
23,616 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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