結果

問題 No.279 木の数え上げ
ユーザー ゆうPゆうP
提出日時 2024-03-24 09:15:01
言語 Go
(1.22.1)
結果
AC  
実行時間 1,078 ms / 2,000 ms
コード長 230 bytes
コンパイル時間 16,137 ms
コンパイル使用メモリ 212,084 KB
実行使用メモリ 7,684 KB
最終ジャッジ日時 2024-03-24 09:15:27
合計ジャッジ時間 22,496 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,676 KB
testcase_01 AC 2 ms
6,676 KB
testcase_02 AC 2 ms
6,676 KB
testcase_03 AC 1 ms
6,676 KB
testcase_04 AC 2 ms
6,676 KB
testcase_05 AC 2 ms
6,676 KB
testcase_06 AC 2 ms
6,676 KB
testcase_07 AC 2 ms
6,676 KB
testcase_08 AC 2 ms
6,676 KB
testcase_09 AC 1 ms
6,676 KB
testcase_10 AC 1,010 ms
7,684 KB
testcase_11 AC 217 ms
6,676 KB
testcase_12 AC 672 ms
7,556 KB
testcase_13 AC 121 ms
6,676 KB
testcase_14 AC 1,078 ms
7,684 KB
testcase_15 AC 882 ms
7,684 KB
testcase_16 AC 840 ms
7,684 KB
testcase_17 AC 1,019 ms
7,684 KB
testcase_18 AC 512 ms
7,556 KB
testcase_19 AC 992 ms
7,684 KB
testcase_20 AC 1,060 ms
7,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

// No.279 木の数え上げ
package main

import (
	"fmt"
	"strings"
)

func main() {
	var s string
	fmt.Scan(&s)

	t, r, e := strings.Count(s, "t"), strings.Count(s, "r"), (strings.Count(s, "e") / 2)
	fmt.Println(min(t, r, e))
}
0