' P '

whatever I will forget

Entries from 2022-10-09 to 1 day

python 入力値のパターン

標準入力 文字列 (例: "abc") a = input() 数値 (例: 123) a = int(input()) 整数と文字列 例: 123 abc num = int(input()) str = input() 複数行の複数数値 例: 3 1 2 3 n = int(input()) a = list(map(int, input().split())) 複数の数値 (例: 10 123) n, …