1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

paiza.ioでgo

1
Posted at

概要

paiza.ioでgoやってみた。

練習問題

PracticeA - Welcome to AtCoder
3つの整数と1つの文字列が下のような形で入力される. 「3整数の和」と「最後の文字列」を並べて標準出力せよ.

投入するソース数値文字列

1
2 3
hello

期待値

6hello

サンプルコード

package main
import "fmt"
func main() {
	var (
		a, b, c int
		s       string
	)
	fmt.Scan(&a, &b, &c, &s)
	fmt.Println(a + b + c, s)
}

成果物

以上。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?