ofutonneko

情弱がんばる自分用めも

2018-01-01から1年間の記事一覧

Python3 リスト操作などメモ

AtCoder最初の10問やりながら使ったPython3リスト操作のメモ スペースで区切られた複数個の要素をリストで受け取る # 1 3 4 7 l = [int(i) for i in input().split()] l = list(map(int, input().split())) # 上と同じ # l = [1, 3, 4, 7] スペースで区切ら…