using System; using System.Collections.Generic; namespace lecture { class MainClass { public static void Main(string[] args) { string[] A = Console.ReadLine().Split(); int x = int.Parse(A[0]); int y = int.Parse(A[1]); // 点pまでの距離 double r = Math.Sqrt(x * x + y * y); // 直径 double d = 2 * r; // 1足しておいて切り捨てる // intにキャストすると切り捨てすることができる int ans = (int)(d+1); Console.WriteLine(ans); } } }