結果
問題 | No.279 木の数え上げ |
ユーザー |
![]() |
提出日時 | 2019-02-24 15:34:03 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 1,034 ms / 2,000 ms |
コード長 | 302 bytes |
コンパイル時間 | 17,773 ms |
コンパイル使用メモリ | 226,264 KB |
実行使用メモリ | 9,856 KB |
最終ジャッジ日時 | 2024-12-23 02:23:22 |
合計ジャッジ時間 | 23,292 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
package mainimport ("fmt""math")func main() {s := ""_, _ = fmt.Scan(&s)var tn, rn, en float64for _, r := range []rune(s) {switch string(r) {case "t":tn++case "r":rn++case "e":en++}}en = math.Floor(en / 2)fmt.Println(math.Min(math.Min(tn, rn), en))}