結果
| 問題 | No.279 木の数え上げ |
| コンテスト | |
| ユーザー |
ebicochineal
|
| 提出日時 | 2016-06-10 20:59:51 |
| 言語 | Go (1.27.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 359 bytes |
| 記録 | |
| コンパイル時間 | 10,321 ms |
| コンパイル使用メモリ | 278,664 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-09-13 18:37:48 |
| 合計ジャッジ時間 | 12,630 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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