結果

問題 No.279 木の数え上げ
ユーザー eses
提出日時 2015-09-20 19:01:15
言語 PHP
(8.3.4)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 152 bytes
コンパイル時間 226 ms
コンパイル使用メモリ 32,404 KB
実行使用メモリ 34,360 KB
最終ジャッジ日時 2024-04-22 16:05:06
合計ジャッジ時間 1,896 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
32,020 KB
testcase_01 AC 37 ms
32,148 KB
testcase_02 AC 37 ms
32,276 KB
testcase_03 AC 36 ms
32,148 KB
testcase_04 AC 38 ms
32,144 KB
testcase_05 AC 39 ms
32,144 KB
testcase_06 AC 38 ms
32,144 KB
testcase_07 AC 38 ms
32,020 KB
testcase_08 AC 36 ms
32,148 KB
testcase_09 AC 38 ms
32,276 KB
testcase_10 AC 40 ms
34,100 KB
testcase_11 AC 39 ms
32,016 KB
testcase_12 AC 39 ms
32,016 KB
testcase_13 AC 40 ms
32,272 KB
testcase_14 AC 40 ms
34,236 KB
testcase_15 AC 41 ms
34,108 KB
testcase_16 AC 38 ms
32,276 KB
testcase_17 AC 40 ms
34,232 KB
testcase_18 AC 40 ms
32,144 KB
testcase_19 AC 42 ms
34,360 KB
testcase_20 AC 41 ms
34,236 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

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