結果
| 問題 |
No.1908 Assault for Keys
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2022-04-22 21:03:53 |
| 言語 | Perl (5.40.0) |
| 結果 |
AC
|
| 実行時間 | 122 ms / 2,000 ms |
| コード長 | 137 bytes |
| コンパイル時間 | 488 ms |
| コンパイル使用メモリ | 6,816 KB |
| 実行使用メモリ | 7,168 KB |
| 最終ジャッジ日時 | 2024-06-24 01:56:53 |
| 合計ジャッジ時間 | 3,312 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
コンパイルメッセージ
Name "main::n" used only once: possible typo at Main.pl line 1. Main.pl syntax OK
ソースコード
($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;
tails