9
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

競プロでの標準入力

Posted at

毎回よくわからなくなるのでメモ的記録。

s = input() # <= "abc"
N = int(input()) # <= 3
s1, s2, s3 = input().split() # <= aaa bbb ccc
N1, N2, N3 = map(int, input().split()) # <= 1 2 3
s = [input() for i in range(N)] # <= aaa
                                 #    bbb
                                 #    ccc
n = [int(input()) for i in range(N)] # <= 1
                                      #    2
                                      #    3
s = [input().split() for i in range(N)] # <= aaa ddd
                                         #    bbb eee
                                         #    ccc fff
N = [list(map(int, input().split())) for i in range(3)] # <= 1 1
                                                         #    2 2
                                                         #    3 3
9
10
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
9
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?