• [1417] Diagonal

  • 时间限制: 1000 ms 内存限制: 65535 K
  • 问题描述
  • There is a x * y * z cuboid consists of x * y * z numbers of 1 * 1 * 1 cubes. So, its diagonal will pass through how many cubes?
    When the diagonal only passes through one of cube's vertex, we say it does not pass through the cube.

  • 输入
  • Input only contain three positive integers x, y and z (1 <= x, y, z <= 10, 000).
  • 输出
  • Output the answer.
  • 样例输入
  • 1 1 1
    
  • 样例输出
  • 1
    
  • 提示
  • 来源
  • Hungar
  • 操作

显示春菜