結果

問題 No.341 沈黙の期間
ユーザー LayCurseLayCurse
提出日時 2016-02-12 22:26:55
言語 PHP
(8.3.4)
結果
AC  
実行時間 41 ms / 5,000 ms
コード長 276 bytes
コンパイル時間 2,808 ms
コンパイル使用メモリ 31,976 KB
実行使用メモリ 32,468 KB
最終ジャッジ日時 2023-10-22 03:11:35
合計ジャッジ時間 4,098 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
32,464 KB
testcase_01 AC 38 ms
32,464 KB
testcase_02 AC 40 ms
32,464 KB
testcase_03 AC 39 ms
32,464 KB
testcase_04 AC 38 ms
32,464 KB
testcase_05 AC 39 ms
32,464 KB
testcase_06 AC 38 ms
32,464 KB
testcase_07 AC 41 ms
32,464 KB
testcase_08 AC 39 ms
32,464 KB
testcase_09 AC 38 ms
32,464 KB
testcase_10 AC 39 ms
32,464 KB
testcase_11 AC 39 ms
32,468 KB
testcase_12 AC 39 ms
32,464 KB
testcase_13 AC 39 ms
32,464 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php

mb_language("japanese");
mb_internal_encoding("UTF-8");

$str = file_get_contents("php://stdin");
$res = 0;
$cnt = 0;
for($i = 0; $i < mb_strlen($str); $i++){
  if(mb_substr($str,$i,1)==="…") $cnt++; else $cnt = 0;
  if($res < $cnt) $res = $cnt;
}
echo "$res\n";

?>
0