結果

問題 No.279 木の数え上げ
ユーザー papinianuspapinianus
提出日時 2016-06-20 12:29:58
言語 PHP
(8.3.4)
結果
MLE  
実行時間 -
コード長 236 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 32,272 KB
実行使用メモリ 81,468 KB
最終ジャッジ日時 2024-04-19 13:04:38
合計ジャッジ時間 2,000 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
31,080 KB
testcase_01 AC 34 ms
30,888 KB
testcase_02 AC 33 ms
31,540 KB
testcase_03 AC 38 ms
31,172 KB
testcase_04 AC 34 ms
31,212 KB
testcase_05 AC 36 ms
31,212 KB
testcase_06 AC 35 ms
31,168 KB
testcase_07 AC 33 ms
31,556 KB
testcase_08 AC 34 ms
31,252 KB
testcase_09 AC 34 ms
31,048 KB
testcase_10 MLE -
testcase_11 AC 46 ms
40,076 KB
testcase_12 AC 66 ms
60,560 KB
testcase_13 AC 41 ms
35,728 KB
testcase_14 MLE -
testcase_15 MLE -
testcase_16 MLE -
testcase_17 MLE -
testcase_18 AC 57 ms
53,260 KB
testcase_19 MLE -
testcase_20 MLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$strs = str_split(trim(fgets(STDIN)));
$strs = array_count_values($strs);
$ts = isset($strs['t'])? $strs['t']:0;
$rs = isset($strs['r'])? $strs['r']:0;
$es = isset($strs['e'])? (int)($strs['e']/2):0;
echo min($ts,$rs,$es).PHP_EOL;
0