結果

問題 No.282 おもりと天秤(2)
ユーザー tailstails
提出日時 2016-12-21 18:39:27
言語 Perl
(5.38.2)
結果
AC  
実行時間 2,292 ms / 5,000 ms
コード長 178 bytes
コンパイル時間 244 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 32,008 KB
平均クエリ数 450.62
最終ジャッジ日時 2023-09-24 00:47:00
合計ジャッジ時間 20,790 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
23,364 KB
testcase_01 AC 43 ms
23,784 KB
testcase_02 AC 34 ms
24,204 KB
testcase_03 AC 31 ms
23,976 KB
testcase_04 AC 30 ms
24,312 KB
testcase_05 AC 37 ms
24,288 KB
testcase_06 AC 44 ms
23,364 KB
testcase_07 AC 29 ms
23,364 KB
testcase_08 AC 44 ms
23,916 KB
testcase_09 AC 27 ms
23,592 KB
testcase_10 AC 444 ms
23,508 KB
testcase_11 AC 1,685 ms
30,692 KB
testcase_12 AC 506 ms
24,312 KB
testcase_13 AC 1,064 ms
25,360 KB
testcase_14 AC 1,262 ms
28,540 KB
testcase_15 AC 2,292 ms
31,384 KB
testcase_16 AC 126 ms
24,288 KB
testcase_17 AC 814 ms
25,404 KB
testcase_18 AC 1,396 ms
27,824 KB
testcase_19 AC 1,090 ms
28,004 KB
testcase_20 AC 2,051 ms
31,612 KB
testcase_21 AC 2,144 ms
32,008 KB
testcase_22 AC 2,016 ms
31,292 KB
testcase_23 AC 27 ms
24,432 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Possible unintended interpolation of @q in string at Main.pl line 1.
Smartmatch is experimental 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