LoginSignup
2
1

More than 5 years have passed since last update.

そもそもPython3でinput文を使うようなコーディングを普段しないから覚えてない

Posted at

AtCoder Beginners Selection https://atcoder.jp/contests/abs は良い教材なので試しに使ってみようとしているけど、そもそもPython3でinput文を使うようなコーディングを普段しないから覚えてない。なので

Python3 のコードの例として

# -*- coding: utf-8 -*-
# 整数の入力
a = int(input())
# スペース区切りの整数の入力
b, c = map(int, input().split())
# 文字列の入力
s = input()
# 出力
print("{} {}".format(a+b+c, s))

というのがあったから、ここにメモっておこうと思う。

2
1
1

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
2
1