結果
| 問題 |
No.128 お年玉(1)
|
| コンテスト | |
| ユーザー |
gogotea
|
| 提出日時 | 2015-03-25 16:14:47 |
| 言語 | Go1.4 (1.4.2) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 382 bytes |
| コンパイル時間 | 2,508 ms |
| コンパイル使用メモリ | 32,384 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-01 09:50:50 |
| 合計ジャッジ時間 | 3,201 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func main() {
N := nextLong()
M := nextLong()
ans := N / (1000 * M) * 1000
fmt.Println(ans)
}
var sc = bufio.NewScanner(os.Stdin)
func next() string {
sc.Split(bufio.ScanWords)
sc.Scan()
return sc.Text()
}
func nextLong() int64 {
i, e := strconv.ParseInt(next(), 10, 64)
if e != nil {
panic(e)
}
return i
}
gogotea