結果

問題 No.388 階段 (1)
コンテスト
ユーザー 💕💖💞
提出日時 2016-09-09 14:54:56
言語 Go
(1.27.0 + ACL)
コンパイル:
/usr/bin/go_c
実行:
./Main
結果
AC  
実行時間 1 ms / 2,000 ms
+ 285µs
コード長 483 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 13,365 ms
コンパイル使用メモリ 267,340 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-09-24 09:46:05
合計ジャッジ時間 15,580 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge2_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