結果

問題 No.293 4>7の世界
ユーザー 💕💖💞💕💖💞
提出日時 2016-09-11 10:49:40
言語 Go
(1.22.1)
結果
WA  
実行時間 -
コード長 498 bytes
コンパイル時間 12,134 ms
コンパイル使用メモリ 221,956 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-28 10:15:23
合計ジャッジ時間 13,053 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

package main

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

func main() {
  scanner := bufio.NewScanner(os.Stdin)
  hold := []int{}
  for scanner.Scan() {
     for _, num_s := range strings.Split(scanner.Text(), " ") {
     num, _ := strconv.Atoi(num_s)
      hold = append(hold, num)
    }
    break
  }
  nums := hold
  sort.Ints(nums)
  head, tail := nums[0], nums[1]
  if head == 4 && tail == 7 {
    fmt.Println(head)
    os.Exit(0)
  }
  fmt.Println(tail)
}
0