結果
| 問題 |
No.279 木の数え上げ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-24 09:45:51 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 20 ms / 2,000 ms |
| コード長 | 292 bytes |
| コンパイル時間 | 13,304 ms |
| コンパイル使用メモリ | 222,388 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2024-09-30 13:44:31 |
| 合計ジャッジ時間 | 11,645 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
// No.279 木の数え上げ
package main
import (
"bufio"
"fmt"
"os"
"strings"
)
func main() {
var s string
reader := bufio.NewReader(os.Stdin)
fmt.Fscan(reader, &s)
t, r, e := strings.Count(s, "t"), strings.Count(s, "r"), (strings.Count(s, "e") / 2)
fmt.Println(min(t, r, e))
}