結果

問題 No.624 Santa Claus and The Last Dungeon
ユーザー tailstails
提出日時 2017-12-24 01:40:37
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 825 bytes
コンパイル時間 148 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 24,520 KB
平均クエリ数 616.69
最終ジャッジ日時 2023-09-23 15:23:29
合計ジャッジ時間 7,085 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
23,884 KB
testcase_01 AC 70 ms
23,920 KB
testcase_02 AC 70 ms
24,268 KB
testcase_03 AC 69 ms
24,124 KB
testcase_04 AC 69 ms
23,692 KB
testcase_05 AC 70 ms
24,376 KB
testcase_06 AC 69 ms
23,908 KB
testcase_07 AC 70 ms
23,644 KB
testcase_08 AC 69 ms
23,536 KB
testcase_09 AC 69 ms
23,524 KB
testcase_10 AC 69 ms
23,500 KB
testcase_11 AC 69 ms
24,076 KB
testcase_12 AC 68 ms
23,248 KB
testcase_13 AC 69 ms
23,584 KB
testcase_14 AC 70 ms
23,548 KB
testcase_15 AC 69 ms
23,416 KB
testcase_16 AC 67 ms
24,220 KB
testcase_17 AC 68 ms
24,088 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$|=<>;
@0=(0)x100;
@1=(0)x100;
for$p(0,1){
	for$d(1..9){
		$t=("$d?","?$d")[$p];
		$n=10;
		$r=110-$d*10;
		$i=-1;
		while($n>0&&$n<$r){
			$k1=$i;
			while($$p[++$k1]){
			}
			if($r>2){
				$k2=$k1;
				while($$p[++$k2]){
				}
				print join($",('??')x$k1,$t,('??')x($k2-$k1-1),$t,('??')x(99-$k2)),$/;
				$b=(glob<>)[1];
				if($b==1){
					print join($",('??')x$k1,$t,('??')x(99-$k1)),$/;
					if((glob<>)[1]==1){
						$$p[$k1]=$d;
					}else{
						$$p[$k2]=$d;
					}
				}
				if($b==2){
					$$p[$k1]=$$p[$k2]=$d;
				}
				$r-=2;
				$i=$k2;
			}else{
				print join($",('??')x$k1,$t,('??')x(99-$k1)),$/;
				$b=(glob<>)[1];
				if($b==1){
					$$p[$k1]=$d;
				}
				$r-=1;
				$i=$k1;
			}
			$n-=$b;
		}
		while($n--){
			while($$p[++$i]){
			}
			$$p[$i]=$d;
		}
	}
}
print join($",map$0[$_].$1[$_],0..99),$/;
0