結果

問題 No.1959 Prefix MinMax
ユーザー tailstails
提出日時 2022-05-27 22:09:35
言語 Perl
(5.38.2)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 213 bytes
コンパイル時間 773 ms
コンパイル使用メモリ 6,064 KB
実行使用メモリ 24,540 KB
平均クエリ数 26.72
最終ジャッジ日時 2023-10-20 21:07:24
合計ジャッジ時間 5,719 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
24,528 KB
testcase_01 AC 32 ms
24,528 KB
testcase_02 AC 32 ms
24,528 KB
testcase_03 AC 33 ms
24,528 KB
testcase_04 AC 32 ms
24,528 KB
testcase_05 AC 32 ms
24,528 KB
testcase_06 AC 34 ms
24,528 KB
testcase_07 AC 81 ms
24,528 KB
testcase_08 AC 80 ms
24,528 KB
testcase_09 AC 80 ms
24,528 KB
testcase_10 AC 80 ms
24,528 KB
testcase_11 AC 79 ms
24,528 KB
testcase_12 AC 79 ms
24,528 KB
testcase_13 AC 80 ms
24,528 KB
testcase_14 AC 80 ms
24,528 KB
testcase_15 AC 80 ms
24,528 KB
testcase_16 AC 83 ms
24,528 KB
testcase_17 AC 80 ms
24,528 KB
testcase_18 AC 80 ms
24,528 KB
testcase_19 AC 80 ms
24,528 KB
testcase_20 AC 80 ms
24,528 KB
testcase_21 AC 80 ms
24,528 KB
testcase_22 AC 81 ms
24,528 KB
testcase_23 AC 80 ms
24,528 KB
testcase_24 AC 81 ms
24,528 KB
testcase_25 AC 81 ms
24,528 KB
testcase_26 AC 81 ms
24,528 KB
testcase_27 AC 80 ms
24,528 KB
testcase_28 AC 82 ms
24,528 KB
testcase_29 AC 81 ms
24,528 KB
testcase_30 AC 81 ms
24,528 KB
testcase_31 AC 79 ms
24,540 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

sub f{
	print "? @_\n";
	@b=glob<>;
	$p[0]=$b[0];
	for(1..$n-1){
		if($b[$_]!=$b[$_-1]){
			$p[$_]=$b[$_];
		}
	}
}
$|=1;
for(1..<>){
	$n=<>;
	@p=(-1)x$n;
	f map$_&1,0..$n-2;
	f map$_&1,1..$n-1;
	print"! @p\n";
}
0