結果

問題 No.342 一番ワロタww
ユーザー papinianuspapinianus
提出日時 2016-09-27 01:29:15
言語 PHP
(8.3.4)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 402 bytes
コンパイル時間 246 ms
コンパイル使用メモリ 31,060 KB
実行使用メモリ 31,508 KB
最終ジャッジ日時 2024-05-01 05:38:24
合計ジャッジ時間 1,701 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 39 ms
31,112 KB
testcase_02 AC 39 ms
31,008 KB
testcase_03 AC 39 ms
31,464 KB
testcase_04 AC 39 ms
31,296 KB
testcase_05 AC 41 ms
30,924 KB
testcase_06 AC 39 ms
31,116 KB
testcase_07 AC 40 ms
31,144 KB
testcase_08 AC 44 ms
31,452 KB
testcase_09 AC 40 ms
31,180 KB
testcase_10 AC 40 ms
31,260 KB
testcase_11 AC 39 ms
31,356 KB
testcase_12 AC 39 ms
31,208 KB
testcase_13 AC 40 ms
31,300 KB
testcase_14 RE -
testcase_15 RE -
testcase_16 AC 40 ms
31,316 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$str = trim(fgets(STDIN));
$pattern = "([^w]+?)([w]+)";
mb_ereg_search_init($str, $pattern);
while(($match = mb_ereg_search_regs()) !== false)
{
    $len = mb_strlen($match[2]);
    $lens[] = $len;
    $substrs[$len][] = $match[1];
}
$max = max($lens);
$string =  implode(PHP_EOL, $substrs[$max]);
echo mb_substr($string, 0);
// echo preg_replace("/\xEF\xBB\xBF/", "", $string);
echo PHP_EOL;
0