結果
| 問題 | No.279 木の数え上げ |
| コンテスト | |
| ユーザー |
ebicochineal
|
| 提出日時 | 2016-06-10 20:59:51 |
| 言語 | Go (1.23.4) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 359 bytes |
| 記録 | |
| コンパイル時間 | 12,809 ms |
| コンパイル使用メモリ | 238,536 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-11 05:12:14 |
| 合計ジャッジ時間 | 13,916 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 11 |
ソースコード
package main
import (
"bufio"
"fmt"
"os"
"strings"
)
func main() {
s := Input()
t := strings.Count(s, "t")
r := strings.Count(s, "r")
e := strings.Count(s, "e")/2
if r < t { t = r }
if e < t { t = e }
fmt.Println(t)
}
var sc = bufio.NewScanner(os.Stdin)
func Input() string {
sc.Scan()
return sc.Text()
}
ebicochineal