結果
問題 | No.341 沈黙の期間 |
ユーザー |
![]() |
提出日時 | 2016-02-12 22:22:01 |
言語 | PHP (843.2) |
結果 |
AC
|
実行時間 | 40 ms / 5,000 ms |
コード長 | 297 bytes |
コンパイル時間 | 3,942 ms |
コンパイル使用メモリ | 32,144 KB |
実行使用メモリ | 32,528 KB |
最終ジャッジ日時 | 2024-09-22 04:18:41 |
合計ジャッジ時間 | 2,097 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?phpdate_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";?>