fix: adjust solutions to new ports and fix solution 2
cargo devel CI / cargo CI (push) Successful in 1m50s Details

This commit is contained in:
Christoph J. Scherr 2024-09-08 04:18:56 +02:00
parent 5f29c42aeb
commit beede609f1
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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: