結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー Noiri
提出日時 2019-03-15 22:53:52
言語 Go
(1.26.1)
コンパイル:
env GOCACHE=/tmp go build _filename_
実行:
./Main
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 322 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 14,408 ms
コンパイル使用メモリ 283,596 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2026-03-23 00:13:34
合計ジャッジ時間 14,736 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

package main

import (
	"fmt"
	"bufio"
	"os"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)

func read() string {
	sc.Scan()
	return sc.Text()
}

func getInt() int {
	i, _ := strconv.Atoi(read())
	return i
}

func main(){
	sc.Split(bufio.ScanWords)
	a := getInt()
	b := getInt()
	s := read()
	fmt.Print(a + b, " ", s)
}
0