結果
問題 |
No.342 一番ワロタww
|
ユーザー |
![]() |
提出日時 | 2016-02-12 23:16:25 |
言語 | PHP (843.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 614 bytes |
コンパイル時間 | 1,521 ms |
コンパイル使用メモリ | 32,404 KB |
実行使用メモリ | 32,656 KB |
最終ジャッジ日時 | 2024-09-22 04:54:23 |
合計ジャッジ時間 | 3,141 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | AC * 3 WA * 11 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php mb_language("japanese"); mb_internal_encoding("UTF-8"); $str = file_get_contents("php://stdin"); $doit = ""; $w = "w"; while(mb_substr($str,0,1)===$w){ $str = mb_substr($str,1); continue; } if(mb_strlen($str)) exit(0); 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); } ?>