結果
問題 | No.342 一番ワロタww |
ユーザー |
![]() |
提出日時 | 2016-02-12 22:32:52 |
言語 | PHP (843.2) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 508 bytes |
コンパイル時間 | 203 ms |
コンパイル使用メモリ | 32,532 KB |
実行使用メモリ | 65,188 KB |
最終ジャッジ日時 | 2024-09-22 04:43:02 |
合計ジャッジ時間 | 7,774 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 TLE * 1 -- * 2 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?phpmb_language("japanese");mb_internal_encoding("UTF-8");$str = file_get_contents("php://stdin");$doit = "";$w = "w";for(;;){$chk = mb_strpos($str, $doit.$w);if($chk===false) break;$doit .= $w;}for(;mb_strlen($str);){if(mb_substr($str,0,1)===$w){$str = mb_substr($str,1);continue;}$pos1 = mb_strpos($str, $w);$pos2 = mb_strpos($str, $doit);if($pos2===false) break;if($pos1===$pos2) echo mb_substr($str,0,$pos1)."\n";$str = mb_substr($str,$pos1);}?>