結果
| 問題 |
No.46 はじめのn歩
|
| コンテスト | |
| ユーザー |
gogotea
|
| 提出日時 | 2015-03-25 15:41:50 |
| 言語 | Go1.4 (1.4.2) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 374 bytes |
| コンパイル時間 | 389 ms |
| コンパイル使用メモリ | 33,900 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-25 00:11:02 |
| 合計ジャッジ時間 | 687 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func main() {
a := nextInt()
b := nextInt()
ans := b / a
if b%a > 0 {
ans++
}
fmt.Println(ans)
}
var sc = bufio.NewScanner(os.Stdin)
func next() string {
sc.Split(bufio.ScanWords)
sc.Scan()
return sc.Text()
}
func nextInt() int {
i, e := strconv.Atoi(next())
if e != nil {
panic(e)
}
return i
}
gogotea