From 099a32bccadfbb1c68388141bb8a9d7b11b264f9 Mon Sep 17 00:00:00 2001 From: 96-LB Date: Sat, 19 Dec 2020 16:22:01 -0500 Subject: [PATCH] fixes --- 05 - Charitable Donation/6.txt | 2 +- 07 - Limiting Factors/main.py | 2 +- judge.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/05 - Charitable Donation/6.txt b/05 - Charitable Donation/6.txt index f372c7f..d6fa9bf 100644 --- a/05 - Charitable Donation/6.txt +++ b/05 - Charitable Donation/6.txt @@ -3,7 +3,7 @@ Sophia 26 Olivia 12 Riley 48 Emma 19 -Ava 25 +Ava 25 Isabella 85 Aria 44 Aaliyah 72 diff --git a/07 - Limiting Factors/main.py b/07 - Limiting Factors/main.py index a57caee..9f4c82d 100644 --- a/07 - Limiting Factors/main.py +++ b/07 - Limiting Factors/main.py @@ -1,7 +1,7 @@ import sys items = sys.stdin.readline() -maximum = 100000 #set the minimum impossibly high +maximum = 10000000 #set the minimum impossibly high factors = [] #the list of limiting factors for i in range(int(items)): #loops over the items diff --git a/judge.py b/judge.py index 2eb37bc..05754d8 100644 --- a/judge.py +++ b/judge.py @@ -12,7 +12,7 @@ def get_args(): if language in ['java']: subprocess.run(['javac', file], capture_output=True, text=True, check=True) if language in ['java', 'class']: - return ['java', '.'.join(file.split('.')[:-1])] + return ['java', os.path.splitext(os.path.basename(file))[1]] if language in ['cpp', 'c++']: subprocess.run(['g++', file], capture_output=True, text=True, check=True) file = 'a.exe'