結果
問題 | No.279 木の数え上げ |
ユーザー |
![]() |
提出日時 | 2021-06-04 01:03:23 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 948 ms / 2,000 ms |
コード長 | 344 bytes |
コンパイル時間 | 13,451 ms |
コンパイル使用メモリ | 224,988 KB |
実行使用メモリ | 5,888 KB |
最終ジャッジ日時 | 2024-11-17 15:23:48 |
合計ジャッジ時間 | 22,266 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
package mainimport ("fmt""strings")func main () {// 入力var text stringfmt.Scan(&text)num_t := strings.Count(text, "t")num_r := strings.Count(text, "r")num_e := strings.Count(text, "e") / 2ans := 0if num_r > num_t {ans = num_t} else {ans = num_r}if ans > num_e {ans = num_e}fmt.Println(ans)}