結果

問題 No.342 一番ワロタww
ユーザー LayCurseLayCurse
提出日時 2016-02-12 23:14:53
言語 PHP
(8.3.4)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 584 bytes
コンパイル時間 3,504 ms
コンパイル使用メモリ 31,892 KB
実行使用メモリ 39,344 KB
最終ジャッジ日時 2024-04-23 13:15:05
合計ジャッジ時間 16,015 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

<?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;
}

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);
}

?>
0