From 2b60eb36e555c0973d563e3e96d2281da44f75c5 Mon Sep 17 00:00:00 2001 From: Dmitry Bikulov Date: Fri, 3 Oct 2025 16:24:43 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20app/main.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 0e47195..bb03927 100644 --- a/app/main.py +++ b/app/main.py @@ -78,9 +78,8 @@ class Session: @staticmethod def _generate_questions(n: int) -> List[Dict]: # Build unique unordered pairs (avoid mirrored duplicates like 6×8 and 8×6) - all_pairs = [(a, b) for a in range(2, 10) for b in range(2, 10)] # a <= b + all_pairs = [(a, b) for a in range(2, 5) for b in range(2, 10)] # a <= b count = min(n, len(all_pairs)) - print(count) picked = random.sample(all_pairs, count) questions: List[Dict] = []