結果

問題 No.305 鍵(2)
ユーザー %20%20
提出日時 2017-07-08 20:20:16
言語 Perl
(5.38.2)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 153 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 24,300 KB
平均クエリ数 44.08
最終ジャッジ日時 2023-09-24 01:21:44
合計ジャッジ時間 1,449 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
23,616 KB
testcase_01 AC 27 ms
23,952 KB
testcase_02 AC 26 ms
23,460 KB
testcase_03 AC 25 ms
24,240 KB
testcase_04 AC 25 ms
23,328 KB
testcase_05 AC 28 ms
23,616 KB
testcase_06 AC 26 ms
23,424 KB
testcase_07 AC 27 ms
23,520 KB
testcase_08 AC 28 ms
23,376 KB
testcase_09 AC 28 ms
23,916 KB
testcase_10 AC 25 ms
24,300 KB
testcase_11 AC 25 ms
23,388 KB
testcase_12 AC 26 ms
24,108 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$|=1;
print@a=(0)x10,$/;
$Y=$X=<>;
++$a[0];
while($X!=10){
	print@a,$/;
	$X=<>;
	if($X>$Y){
		++$i;
		$Y=$X
	}elsif($X<$Y){
		--$a[$i++]
	}
	++$a[$i];
}
0