結果
| 問題 |
No.9001 標準入出力の練習問題(テスト用)
|
| ユーザー |
tookunn_1213
|
| 提出日時 | 2016-12-07 11:10:38 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 1,222 bytes |
| コンパイル時間 | 10,667 ms |
| コンパイル使用メモリ | 238,168 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-28 03:20:10 |
| 合計ジャッジ時間 | 11,168 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 |
ソースコード
package main
import "fmt"
import "os"
import "bufio"
import "bytes"
import "strconv"
const NEW_LINE byte = 10
const SPACE string = " "
type long int64
type float float32
type double float64
var reader *bufio.Reader
var buffer[][]byte
var pointer int
func InitReader() {
reader = bufio.NewReaderSize(os.Stdin,4096)
}
func ReadLine() []byte {
retBytes,_ := reader.ReadBytes(NEW_LINE)
return retBytes
}
func Next() string {
if pointer < len(buffer){
ret := buffer[pointer]
pointer++
return string(ret)
}
bs := ReadLine()
bs = bs[0:len(bs)-1]
buffer = bytes.Split(bs,[]byte(SPACE))
pointer = 0
return Next()
}
func NextLine() string {
b := ReadLine()
return string(bytes.TrimSpace(b))
}
func NextInt() int {
s := Next()
i,_ := strconv.ParseInt(s,10,32)
return int(i)
}
func NextLong() long {
s := Next()
l,_ := strconv.ParseInt(s,10,64)
return long(l)
}
func NextFloat() float {
s := Next()
f,_ := strconv.ParseFloat(s,32)
return float(f)
}
func NextDouble() double {
s := Next()
d,_ := strconv.ParseFloat(s,64)
return double(d)
}
func main() {
InitReader()
A := NextInt()
B := NextInt()
S := Next()
N := A+B
fmt.Println(N,S)
}
tookunn_1213