結果

問題 No.341 沈黙の期間
コンテスト
ユーザー LayCurse
提出日時 2016-02-12 22:23:05
言語 PHP
(8.5.4)
コンパイル:
php -l _filename_
実行:
php _filename_
結果
AC  
実行時間 34 ms / 5,000 ms
コード長 256 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,086 ms
コンパイル使用メモリ 36,784 KB
実行使用メモリ 37,036 KB
最終ジャッジ日時 2026-04-10 09:43:54
合計ジャッジ時間 2,460 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #
raw source code

<?php

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