From 9ea9557466b46fc6baaaedba2d2cfff39ee0b1df Mon Sep 17 00:00:00 2001 From: Nikolay Gagarinov Date: Tue, 1 Sep 2026 23:32:15 +0500 Subject: [PATCH] =?UTF-8?q?fix(priority):=20FEEDBACK-416=20=D1=83=D0=B1?= =?UTF-8?q?=D1=80=D0=B0=D1=82=D1=8C=20=D1=80=D0=B5=D1=88=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=B8=D0=B7=20=D1=83=D1=81=D0=BB=D0=BE=D0=B2=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=BF=D1=80=D0=B0=D0=BA=D1=82=D0=B8=D0=BA=D0=B8=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=20=D0=BF=D1=80=D0=B8=D0=BE=D1=80=D0=B8=D1=82?= =?UTF-8?q?=D0=B5=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit В блоке с примером вторая строка показывала выражение с уже расставленными скобками, то есть готовый ответ. Осталось выражение без скобок с пояснением, почему результат неверный, и ожидаемый вывод. Co-Authored-By: Claude Opus 5 (1M context) --- modules/20-arithmetics/40-priority/en/EXERCISE.md | 5 +++-- modules/20-arithmetics/40-priority/es/EXERCISE.md | 5 +++-- modules/20-arithmetics/40-priority/ru/EXERCISE.md | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/modules/20-arithmetics/40-priority/en/EXERCISE.md b/modules/20-arithmetics/40-priority/en/EXERCISE.md index b7c5b106..1d50da51 100644 --- a/modules/20-arithmetics/40-priority/en/EXERCISE.md +++ b/modules/20-arithmetics/40-priority/en/EXERCISE.md @@ -3,6 +3,7 @@ You and 4 friends (5 people in total) ordered 2 pizzas at 300 each and 4 drinks Write a one-line program with `print()`, placing the parentheses so that the total is calculated first and only then divided among everyone: ```text -without parentheses: 2 * 300 + 4 * 50 / 5 = 640.0 ← wrong -with parentheses: (2 * 300 + 4 * 50) / 5 = 160.0 ← correct +2 * 300 + 4 * 50 / 5 = 640.0 ← without parentheses the division applies only to the drinks ``` + +Expected output: `160.0`. diff --git a/modules/20-arithmetics/40-priority/es/EXERCISE.md b/modules/20-arithmetics/40-priority/es/EXERCISE.md index 2e2c463b..39ad036a 100644 --- a/modules/20-arithmetics/40-priority/es/EXERCISE.md +++ b/modules/20-arithmetics/40-priority/es/EXERCISE.md @@ -3,6 +3,7 @@ Tú y 4 amigos (5 personas en total) pidieron 2 pizzas a 300 cada una y 4 bebida Escribe un programa de una sola línea con `print()`, colocando los paréntesis de modo que primero se calcule el total y solo después se divida entre todos: ```text -sin paréntesis: 2 * 300 + 4 * 50 / 5 = 640.0 ← incorrecto -con paréntesis: (2 * 300 + 4 * 50) / 5 = 160.0 ← correcto +2 * 300 + 4 * 50 / 5 = 640.0 ← sin paréntesis la división se aplica solo a las bebidas ``` + +Salida esperada: `160.0`. diff --git a/modules/20-arithmetics/40-priority/ru/EXERCISE.md b/modules/20-arithmetics/40-priority/ru/EXERCISE.md index f3556632..935de1de 100644 --- a/modules/20-arithmetics/40-priority/ru/EXERCISE.md +++ b/modules/20-arithmetics/40-priority/ru/EXERCISE.md @@ -3,6 +3,7 @@ Запишите программу из одной строки с `print()`, расставив скобки так, чтобы сначала посчиталась общая сумма, а затем делилась на всех: ```text -без скобок: 2 * 300 + 4 * 50 / 5 = 640.0 ← неверно -со скобками: (2 * 300 + 4 * 50) / 5 = 160.0 ← верно +2 * 300 + 4 * 50 / 5 = 640.0 ← без скобок деление применяется только к напиткам ``` + +Ожидаемый вывод: `160.0`.