結果
| 問題 |
No.388 階段 (1)
|
| コンテスト | |
| ユーザー |
💕💖💞
|
| 提出日時 | 2016-09-09 14:54:56 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 483 bytes |
| コンパイル時間 | 14,555 ms |
| コンパイル使用メモリ | 228,732 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-16 08:48:06 |
| 合計ジャッジ時間 | 14,959 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
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)
}
💕💖💞