結果
問題 | No.279 木の数え上げ |
ユーザー |
|
提出日時 | 2015-10-09 14:17:29 |
言語 | PHP (843.2) |
結果 |
AC
|
実行時間 | 44 ms / 2,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 204 ms |
コンパイル使用メモリ | 30,900 KB |
実行使用メモリ | 32,656 KB |
最終ジャッジ日時 | 2024-10-14 15:16:23 |
合計ジャッジ時間 | 1,807 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php const STR = 'tree'; $stdin = trim(fgets(STDIN)); $arrStr = array_count_values(str_split(STR)); $arrResult = array(); foreach ($arrStr as $key => $val) { if ($val === 0) { continue; } $arrResult[] = floor(substr_count($stdin, $key)/$val); } print(min($arrResult).PHP_EOL);