結果

問題 No.279 木の数え上げ
ユーザー eses
提出日時 2015-09-20 10:58:11
言語 PHP
(8.3.4)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 161 bytes
コンパイル時間 1,159 ms
コンパイル使用メモリ 18,588 KB
実行使用メモリ 20,748 KB
最終ジャッジ日時 2023-09-26 13:59:57
合計ジャッジ時間 2,023 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
18,604 KB
testcase_01 AC 16 ms
18,688 KB
testcase_02 AC 16 ms
18,600 KB
testcase_03 AC 16 ms
18,460 KB
testcase_04 AC 17 ms
18,456 KB
testcase_05 AC 16 ms
18,624 KB
testcase_06 AC 16 ms
18,716 KB
testcase_07 AC 16 ms
18,664 KB
testcase_08 AC 16 ms
18,700 KB
testcase_09 AC 16 ms
18,616 KB
testcase_10 AC 36 ms
20,704 KB
testcase_11 AC 20 ms
18,604 KB
testcase_12 AC 30 ms
18,480 KB
testcase_13 AC 18 ms
18,604 KB
testcase_14 AC 38 ms
20,500 KB
testcase_15 AC 34 ms
20,720 KB
testcase_16 AC 32 ms
18,604 KB
testcase_17 AC 37 ms
20,700 KB
testcase_18 AC 27 ms
18,664 KB
testcase_19 AC 36 ms
20,748 KB
testcase_20 AC 38 ms
20,660 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$i = fgets(STDIN);
$t = mb_substr_count($i, 't');
$r = mb_substr_count($i, 'r');
$e = mb_substr_count($i, 'e');
echo min($t, $r, floor($e/2)) . PHP_EOL;
?>
0