結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
30,684 KB
testcase_01 AC 35 ms
31,104 KB
testcase_02 AC 35 ms
30,888 KB
testcase_03 AC 36 ms
30,732 KB
testcase_04 AC 36 ms
31,016 KB
testcase_05 AC 36 ms
31,072 KB
testcase_06 AC 37 ms
30,852 KB
testcase_07 AC 37 ms
30,580 KB
testcase_08 AC 36 ms
31,060 KB
testcase_09 AC 35 ms
30,956 KB
testcase_10 AC 39 ms
32,080 KB
testcase_11 AC 35 ms
30,608 KB
testcase_12 AC 36 ms
31,756 KB
testcase_13 AC 35 ms
30,880 KB
testcase_14 AC 40 ms
32,212 KB
testcase_15 AC 39 ms
31,888 KB
testcase_16 AC 43 ms
32,016 KB
testcase_17 AC 43 ms
32,140 KB
testcase_18 AC 40 ms
31,500 KB
testcase_19 AC 42 ms
32,012 KB
testcase_20 AC 43 ms
32,140 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

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

$t = substr_count($input, "t");
$r = substr_count($input, "r");
$e = substr_count($input, "e");

$res = min($t, $r, (int)($e/2));

echo $res;
echo "\n";

0