結果

問題 No.388 階段 (1)
コンテスト
ユーザー 💕💖💞
提出日時 2016-09-09 14:54:56
言語 Go
(1.26.1)
コンパイル:
env GOCACHE=/tmp go build _filename_
実行:
./Main
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 483 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 13,626 ms
コンパイル使用メモリ 269,496 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-05-11 14:34:03
合計ジャッジ時間 14,519 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

package main

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


func main() {
	scanner := bufio.NewScanner(os.Stdin)
	th := 0
	tgt := []int{}
	for scanner.Scan() {
	  th += 1
		text := scanner.Text()
		if text == "" { break }
		for _, t := range strings.Split(text, " ") {
		  n, _ := strconv.Atoi(t) 
		  tgt = append(tgt, n)
	  }
		if th == 1 { break }
	}
	head, tail := tgt[0], tgt[1]
	//fmt.Println(head, tail)
	kai := head/tail + 1
	fmt.Println(kai)
}
0