結果

問題 No.305 鍵(2)
ユーザー tailstails
提出日時 2015-11-27 22:39:52
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 218 bytes
コンパイル時間 344 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 24,504 KB
平均クエリ数 53.54
最終ジャッジ日時 2023-09-23 06:42:21
合計ジャッジ時間 3,093 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
23,544 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 26 ms
23,400 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Unquoted string "u" may clash with future reserved word at Main.pl line 4.
Unquoted string "u" may clash with future reserved word at Main.pl line 10.
Main.pl syntax OK

ソースコード

diff #

$|=1;
print 0 x10,$/;
$r=<>;
exit if$r=~u;

for$a(0..9){
	for$d(0..9){
		print'0'x$a,$d,'0'x(9-$a),$/;
		$s=<>;
		exit if$s=~u;
		if($r>$s){
			$a.=0;
			last;
		}
		if($r<$s){
			$a.=$d;
			last;
		}
	}
}
print $a,$/;
0