結果

問題 No.342 一番ワロタww
ユーザー LayCurseLayCurse
提出日時 2016-02-12 22:32:52
言語 PHP
(8.3.4)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 508 bytes
コンパイル時間 3,029 ms
コンパイル使用メモリ 32,260 KB
実行使用メモリ 32,632 KB
最終ジャッジ日時 2023-10-22 03:13:57
合計ジャッジ時間 10,332 ms
ジャッジサーバーID
(参考情報)
judge13 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
32,632 KB
testcase_01 AC 45 ms
32,632 KB
testcase_02 AC 45 ms
32,632 KB
testcase_03 AC 44 ms
32,632 KB
testcase_04 AC 45 ms
32,632 KB
testcase_05 AC 44 ms
32,632 KB
testcase_06 AC 45 ms
32,632 KB
testcase_07 AC 45 ms
32,632 KB
testcase_08 AC 45 ms
32,632 KB
testcase_09 AC 45 ms
32,632 KB
testcase_10 AC 44 ms
32,632 KB
testcase_11 AC 44 ms
32,632 KB
testcase_12 AC 44 ms
32,632 KB
testcase_13 AC 44 ms
32,632 KB
testcase_14 TLE -
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";

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