結果
| 問題 | No.293 4>7の世界 |
| コンテスト | |
| ユーザー |
💕💖💞
|
| 提出日時 | 2016-09-11 10:49:40 |
| 言語 | Go (1.23.4) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 498 bytes |
| 記録 | |
| コンパイル時間 | 12,454 ms |
| コンパイル使用メモリ | 233,468 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-17 00:19:01 |
| 合計ジャッジ時間 | 12,122 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 16 WA * 4 |
ソースコード
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)
}
💕💖💞