LoginSignup
9
9

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
9
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
9