Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Created March 10, 2019 03:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whatalnk/6ed8306c828566fde62463cf2faaaf6c to your computer and use it in GitHub Desktop.
Save whatalnk/6ed8306c828566fde62463cf2faaaf6c to your computer and use it in GitHub Desktop.
AtCoder ABC #121 A - White Cells
H, W = gets.chomp.split(" ").map(&:to_i)
h, w = gets.chomp.split(" ").map(&:to_i)
puts H * W - (h * W + w * H - h * w)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment