Код:
using System;namespace ThisAnswerIsNotMine { class Program { private static int a; private static int b; private static int c; private static int d; private static void Main() { int.TryParse(Console.ReadLine()!, out a); int.TryParse(Console.ReadLine()!, out b); int.TryParse(Console.ReadLine()!, out c); int.TryParse(Console.ReadLine()!, out d); Console.WriteLine((a / c) * (b / d) >= (b / c) * (a / d) ? "Широкая" : "Узкая"); } }}
9. 7
10. 67
Объяснение:
9.
скрин
начало пути (А) всегда равно 1
дальше сумма от входящих путей (стрелок)
Б = А = 1
В = А + Б + Д + Г = 1 + 1 + 1 + 1 = 4
10.
2С₁₆ = 2 * 16¹ + 12 * 16⁰ = 32 + 12 = 44₁₀
156₈ = 1 * 8² + 5 * 8¹ + 6 * 8⁰ = 64 + 40 + 6 = 110₁₀
44 ≤ х ≤ 110
110 - 44 + 1 = 67