結果

問題 No.279 木の数え上げ
ユーザー 💕💖💞💕💖💞
提出日時 2016-09-11 01:07:48
言語 Go
(1.22.1)
結果
WA  
実行時間 -
コード長 614 bytes
コンパイル時間 11,196 ms
コンパイル使用メモリ 211,908 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-10 16:45:56
合計ジャッジ時間 13,127 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 1 ms
4,380 KB
testcase_09 AC 1 ms
4,376 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import (
  "bufio"
  "fmt"
  "os"
  "sort"
  _ "strconv"
  _ "strings"
  _ "math"
)

func main() {
  scanner := bufio.NewScanner(os.Stdin)
  hold_t := []rune{}
  hold_r := []rune{}
  hold_e := []rune{}
  for scanner.Scan() {
    for _, r := range scanner.Text() {
      if r == rune(116) {
        hold_t = append(hold_t, r)
      }
      if r == rune(114) {
        hold_r = append(hold_r, r)
      }
      if r == rune(101) {
        hold_e = append(hold_e, r)
      }
    }
    break
  }

  may_ans := []int{len(hold_t), len(hold_r), len(hold_e)/2}
  sort.Ints(may_ans)
  fmt.Println(may_ans[0])
}
0