From beede609f187bc796a651076e89ab746d73929d4 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sun, 8 Sep 2024 04:18:56 +0200 Subject: [PATCH] fix: adjust solutions to new ports and fix solution 2 --- solutions/2.py | 3 ++- solutions/3.py | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/solutions/2.py b/solutions/2.py index c22fe70..eb67a64 100644 --- a/solutions/2.py +++ b/solutions/2.py @@ -2,7 +2,7 @@ from io import BufferedRWPair import socket REMOTE = "127.0.0.1" -PORT = 1337 +PORT = 1338 def main() -> int: s = socket.socket() @@ -12,6 +12,7 @@ def main() -> int: pl = int.to_bytes(1337, 2, "big") _ = send(sf, pl) + _ = recv(sf).decode() sf.close() return 0 diff --git a/solutions/3.py b/solutions/3.py index 5f05bdd..b4a5611 100644 --- a/solutions/3.py +++ b/solutions/3.py @@ -1,9 +1,8 @@ from io import TextIOWrapper import socket -import time REMOTE = "127.0.0.1" -PORT = 1337 +PORT = 1339 MAX_GUARD = 300 def calc(a: int, b: int, op: str) -> int: