結果

問題 No.726 Tree Game
ユーザー fmhrfmhr
提出日時 2018-08-24 21:28:27
言語 Go
(1.22.1)
結果
WA  
実行時間 -
コード長 1,655 bytes
コンパイル時間 14,309 ms
コンパイル使用メモリ 212,028 KB
実行使用メモリ 4,356 KB
最終ジャッジ日時 2023-09-05 10:59:56
合計ジャッジ時間 16,336 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

package main

import (
	"bufio"
	"bytes"
	"fmt"
	"log"
	"os"
	"strconv"
)

// const abcd = "abcdefghijklmnopqrstuvwxyz"
// const ABCD = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
var dr = [...]int{0, 1, 1, 1, 0, -1, -1, -1, 0}
var dc = [...]int{1, 1, 0, -1, -1, -1, 0, 1, 0}

func main() {
	log.SetFlags(log.Lshortfile)
	nextReader = NewScanner()
	Y := nextInt()
	X := nextInt()
	log.Println(Y, X)
	fmt.Println("Second")
}

func max(a ...int) int {
	r := a[0]
	for i := 0; i < len(a); i++ {
		if r < a[i] {
			r = a[i]
		}
	}
	return r
}
func min(a ...int) int {
	r := a[0]
	for i := 0; i < len(a); i++ {
		if r > a[i] {
			r = a[i]
		}
	}
	return r
}
func sum(a []int) (r int) {
	for i := range a {
		r += a[i]
	}
	return r
}
func minmax(a, b int) (int, int) {
	if a > b {
		return b, a
	}
	return a, b
}

func abs(a int) int {
	if a < 0 {
		return -a
	}
	return a
}

func printInts(out []int, str string) {
	var bb bytes.Buffer
	for i := range out {
		bb.WriteString(strconv.Itoa(out[i]))
		bb.WriteString(str)
	}
	fmt.Println(bb.String())
}

var nextReader func() string

func NewScanner() func() string {
	r := bufio.NewScanner(os.Stdin)
	r.Buffer(make([]byte, 1024), int(1e+11))
	r.Split(bufio.ScanWords)
	return func() string {
		r.Scan()
		return r.Text()
	}
}
func nextString() string {
	return nextReader()
}
func nextInt64() int64 {
	v, _ := strconv.ParseInt(nextReader(), 10, 64)
	return v
}
func nextInt() int {
	v, _ := strconv.Atoi(nextReader())
	return v
}
func nextInts(n int) []int {
	r := make([]int, n)
	for i := 0; i < n; i++ {
		r[i] = nextInt()
	}
	return r
}
func nextFloat64() float64 {
	f, _ := strconv.ParseFloat(nextReader(), 64)
	return f
}
0