結果
| 問題 | No.279 木の数え上げ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-29 22:18:04 |
| 言語 | PHP (843.2) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 268 bytes |
| 記録 | |
| コンパイル時間 | 170 ms |
| コンパイル使用メモリ | 31,252 KB |
| 実行使用メモリ | 33,164 KB |
| 最終ジャッジ日時 | 2024-07-02 15:28:46 |
| 合計ジャッジ時間 | 1,939 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 21 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php
$input = explode(" ", trim(fgets(STDIN)));
$t_count = substr_count($input, "t");
$r_count = substr_count($input, "r");
$e_count = substr_count($input, "e");
$ee_count = floor($e_count / 2);
$answer = min([$t_count, $r_count, $ee_count]);
echo $answer . "\n";