https://shiganai-coder.com/19162/pythonのmapとlambdaを使った条件分岐/