結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー papinianuspapinianus
提出日時 2016-06-20 15:59:44
言語 PHP
(8.3.4)
結果
AC  
実行時間 39 ms / 1,000 ms
コード長 200 bytes
コンパイル時間 1,389 ms
コンパイル使用メモリ 32,016 KB
実行使用メモリ 31,692 KB
最終ジャッジ日時 2024-04-29 08:06:51
合計ジャッジ時間 2,236 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
31,580 KB
testcase_01 AC 38 ms
31,244 KB
testcase_02 AC 36 ms
31,388 KB
testcase_03 AC 37 ms
31,316 KB
testcase_04 AC 39 ms
31,072 KB
testcase_05 AC 38 ms
31,484 KB
testcase_06 AC 39 ms
31,656 KB
testcase_07 AC 38 ms
31,352 KB
testcase_08 AC 38 ms
31,168 KB
testcase_09 AC 38 ms
31,672 KB
testcase_10 AC 38 ms
31,500 KB
testcase_11 AC 39 ms
31,648 KB
testcase_12 AC 38 ms
31,364 KB
testcase_13 AC 37 ms
31,332 KB
testcase_14 AC 39 ms
30,992 KB
testcase_15 AC 38 ms
31,588 KB
testcase_16 AC 38 ms
31,156 KB
testcase_17 AC 38 ms
31,156 KB
testcase_18 AC 38 ms
31,484 KB
testcase_19 AC 36 ms
31,288 KB
testcase_20 AC 37 ms
31,656 KB
testcase_21 AC 38 ms
31,208 KB
testcase_22 AC 36 ms
31,472 KB
testcase_23 AC 39 ms
31,040 KB
testcase_24 AC 38 ms
31,488 KB
testcase_25 AC 37 ms
31,692 KB
testcase_26 AC 36 ms
31,384 KB
testcase_27 AC 38 ms
31,484 KB
testcase_28 AC 39 ms
31,400 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$str = trim(fgets(STDIN));
$str .= trim(fgets(STDIN));
$max = 0;
preg_match_all('/o+/',$str,$matches);
foreach($matches[0] as $match) {
    $max = max($max, strlen($match));
}
echo $max.PHP_EOL;
0