結果

問題 No.279 木の数え上げ
ユーザー yu2kyu2k
提出日時 2015-11-24 21:59:01
言語 PHP
(8.3.4)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 213 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 30,768 KB
実行使用メモリ 32,524 KB
最終ジャッジ日時 2024-04-22 16:12:42
合計ジャッジ時間 1,950 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
30,840 KB
testcase_01 AC 35 ms
30,912 KB
testcase_02 AC 36 ms
30,976 KB
testcase_03 AC 35 ms
31,144 KB
testcase_04 AC 35 ms
30,992 KB
testcase_05 AC 35 ms
31,252 KB
testcase_06 AC 35 ms
31,092 KB
testcase_07 AC 36 ms
31,000 KB
testcase_08 AC 36 ms
31,024 KB
testcase_09 AC 38 ms
31,028 KB
testcase_10 AC 38 ms
32,400 KB
testcase_11 AC 36 ms
31,012 KB
testcase_12 AC 39 ms
31,884 KB
testcase_13 AC 40 ms
31,252 KB
testcase_14 AC 41 ms
32,400 KB
testcase_15 AC 40 ms
32,268 KB
testcase_16 AC 40 ms
32,012 KB
testcase_17 AC 40 ms
32,400 KB
testcase_18 AC 38 ms
31,504 KB
testcase_19 AC 39 ms
32,268 KB
testcase_20 AC 39 ms
32,524 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
fscanf(STDIN, "%s", $input);

$cnt_t = substr_count($input, 't');
$cnt_r = substr_count($input, 'r');
$cnt_e = substr_count($input, 'e');


$ret = min($cnt_t, $cnt_r, floor($cnt_e/2));

echo $ret;
echo "\n";
0