結果
問題 |
No.342 一番ワロタww
|
ユーザー |
|
提出日時 | 2016-09-27 01:01:50 |
言語 | PHP (843.2) |
結果 |
RE
|
実行時間 | - |
コード長 | 380 bytes |
コンパイル時間 | 226 ms |
コンパイル使用メモリ | 32,272 KB |
実行使用メモリ | 33,044 KB |
最終ジャッジ日時 | 2024-11-21 07:04:28 |
合計ジャッジ時間 | 1,365 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 9 WA * 2 RE * 3 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php $str = trim(fgets(STDIN)); $pattern = "([^w]+?)([w]+)"; $str = mb_convert_encoding($str, "UTF-8"); mb_regex_encoding('UTF-8'); 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); echo implode("\r", $substrs[$max]); echo "\r";