結果

問題 No.1908 Assault for Keys
ユーザー tailstails
提出日時 2022-04-22 21:03:53
言語 Perl
(5.38.2)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 137 bytes
コンパイル時間 525 ms
コンパイル使用メモリ 5,400 KB
実行使用メモリ 6,488 KB
最終ジャッジ日時 2023-09-06 07:16:30
合計ジャッジ時間 3,518 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,288 KB
testcase_01 AC 6 ms
5,116 KB
testcase_02 AC 116 ms
6,324 KB
testcase_03 AC 109 ms
6,324 KB
testcase_04 AC 110 ms
6,324 KB
testcase_05 AC 114 ms
6,416 KB
testcase_06 AC 116 ms
6,488 KB
testcase_07 AC 108 ms
6,276 KB
testcase_08 AC 109 ms
6,340 KB
testcase_09 AC 110 ms
6,324 KB
testcase_10 AC 109 ms
6,484 KB
testcase_11 AC 114 ms
6,388 KB
testcase_12 AC 113 ms
6,200 KB
testcase_13 AC 118 ms
6,336 KB
testcase_14 AC 114 ms
6,436 KB
testcase_15 AC 110 ms
6,384 KB
testcase_16 AC 6 ms
5,112 KB
testcase_17 AC 6 ms
5,408 KB
testcase_18 AC 121 ms
6,328 KB
testcase_19 AC 102 ms
6,324 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::n" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

($n,$m)=glob<>;
@s=<>;
for$i(0..$m-1){
	$x=1;
	for$s(@s){
		if(substr($s,$i,1)eq"x"){
			++$x;
		}
	}
	if($r<$x){
		$r=$x;
	}
}
print$r;
0