Skip to content

Commit

Permalink
[skel] Improve testing_tool.py
Browse files Browse the repository at this point in the history
- Remove unnecessary blank line in comment block
- Add colons after language names
- Remove `raise e` in except-block
  • Loading branch information
mpsijm committed Nov 17, 2024
1 parent a9e3d46 commit 07fe59c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions skel/testing_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,21 @@
# The input file should contain three lines:
# - The first line contains the width and height of the image.
# - The second and third line each contain the coordinates of one point on the horizon.
#

# You can compile and run your solution as follows:

# C++:
# g++ solution.cpp
# python3 testing_tool.py -f 1.in ./a.out

# Python3
# Python:
# python3 testing_tool.py -f 1.in python3 ./solution.py

# Java
# Java:
# javac solution.java
# python3 testing_tool.py -f 1.in java solution

# Kotlin
# Kotlin:
# kotlinc solution.kt
# python3 testing_tool.py -f 1.in kotlin solutionKt

Expand Down Expand Up @@ -148,7 +147,6 @@ def point_type(x: int, y: int):
except subprocess.TimeoutExpired:
print("Killing your submission after 2 second timeout.")
p.kill()
raise e

finally:
print(f"Exit code: {p.wait()}\n", flush=True)

0 comments on commit 07fe59c

Please sign in to comment.