Format: Submissions must be a .zip
file.
Contents: The .zip
must directly contain the program files with no outer folder.
Size: The .zip
file size must not exceed 100KB.
Will collect .cpp
files in submission root and compile using g++ -O3
(v9.4.0)
Arguments:
-p p
or --initial-life=p
: Sets initial life points (default is 5
if not specified).
-m TOURNAMENT
or --mode=TOURNAMENT
: Mandatory argument to specify the tournament mode.
Input:
At program start, the judge will input six integers via standard input
x0 y0 x1 y1 f0 f1
where:
x0
, y0
: Your tank's starting coordinates.
x1
, y1
: Opponent's starting coordinates.
f0
, f1
: Facing directions (0: Up, 1: Right, 2: Down, 3: Left) of your tank and opponent's tank, respectively.
Output:
Turn 1: Print your action (0
, 1
, or 2
) to standard output within 1 second.
Subsequent Turns:
After each turn, the judge will input the opponent's action for that turn (0
, 1
, or 2
) to your program.
Respond with your next action (0
, 1
, or 2
) within 1 second.
Actions:
0
: Move Straight.
1
: Turn Left + Move.
2
: Turn Right + Move.
Memory Limit: 10MB maximum during execution.
Execution Time: Each move must be determined and printed within 1 second.
File I/O: No file read/write operations are allowed; all interactions must occur via standard input/output.
Security:
Programs must not perform malicious operations such as:
Network access.
Unauthorized system calls.
Exploiting vulnerabilities.
Input (Turn 1):
xxxxxxxxxx
5 5 15 15 0 2
Output (Your Action):
xxxxxxxxxx
1
Input (Opponent’s Action for Turn 1):
xxxxxxxxxx
0
Output (Your Action for Turn 2):
xxxxxxxxxx
2
This ensures a standardized environment for fair tournament execution. Good luck! 🎮