結果

問題 No.279 木の数え上げ
ユーザー
提出日時 2015-10-09 14:21:39
言語 PHP
(8.3.4)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 185 bytes
コンパイル時間 372 ms
コンパイル使用メモリ 32,144 KB
実行使用メモリ 32,652 KB
最終ジャッジ日時 2024-04-22 16:08:56
合計ジャッジ時間 1,817 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
30,956 KB
testcase_01 AC 41 ms
31,060 KB
testcase_02 AC 40 ms
31,052 KB
testcase_03 AC 40 ms
31,312 KB
testcase_04 AC 40 ms
31,204 KB
testcase_05 AC 42 ms
31,260 KB
testcase_06 AC 40 ms
31,148 KB
testcase_07 AC 41 ms
30,976 KB
testcase_08 AC 40 ms
31,260 KB
testcase_09 AC 40 ms
31,044 KB
testcase_10 AC 43 ms
32,396 KB
testcase_11 AC 42 ms
31,112 KB
testcase_12 AC 42 ms
31,888 KB
testcase_13 AC 41 ms
31,520 KB
testcase_14 AC 44 ms
32,592 KB
testcase_15 AC 44 ms
32,400 KB
testcase_16 AC 43 ms
32,140 KB
testcase_17 AC 44 ms
32,524 KB
testcase_18 AC 43 ms
31,628 KB
testcase_19 AC 43 ms
32,396 KB
testcase_20 AC 44 ms
32,652 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
const S='tree';
$si=trim(fgets(STDIN));
$aS=array_count_values(str_split(S));
$aR=array();
foreach($aS as $k => $v){$aR[] = floor(substr_count($si,$k)/$v);}
print(min($aR)."\n");
0