結果

問題 No.341 沈黙の期間
ユーザー LayCurseLayCurse
提出日時 2016-02-12 22:22:01
言語 PHP
(8.3.4)
結果
AC  
実行時間 47 ms / 5,000 ms
コード長 297 bytes
コンパイル時間 6,028 ms
コンパイル使用メモリ 32,248 KB
実行使用メモリ 32,468 KB
最終ジャッジ日時 2023-10-22 02:44:58
合計ジャッジ時間 6,663 ms
ジャッジサーバーID
(参考情報)
judge13 / judge10
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

<?php

date_default_timezone_set("Asia/Tokyo");
mb_language("japanese");
mb_internal_encoding("UTF-8");

$str = fgets(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