forked from jma127/pcu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefaultsettings.py
executable file
·72 lines (57 loc) · 1.75 KB
/
defaultsettings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# User Profile
import getpass
username = getpass.getuser() # Your name
defaultlangext = 'cpp' # Preferred language extension
defaultmode = 'stdio' # Preferred I/O mode (stdio or file)
# Note that USACO uses file I/O, while other competitions
# use stdio
printinput = True # Print test inputs
printoutput = True # Print program outputs
printstdout = True # If stdout output found, print it (file mode only)
printstderr = True # If stderr output found, print it
printexpected = True # If wrong answer found, print expected output
printsummary = True # If true, will print summary of all test results
acceptformatting = False # If true, all "Presentation Error" will be "Correct"
logactions = True # If true, all pcu actions will be recorded in contest logs
# Language Extensions (mapped to language names)
langexts = {
'c': 'C',
'cc': 'C++',
'cpp': 'C++',
'java': 'Java',
'py': 'Python',
'sh': 'Shell'
}
# Time Constraints
compilelimit = 30.0
timeconstraints = {
'C': 2.0,
'C++': 2.0,
'Java': 4.0,
'Python': 4.0,
'Shell': 4.0
}
# Compile Commands
compcommands = {
'C': 'gcc -Wall -Wextra -O2 -o $PROB.exe $SRCFILE',
'C++': 'g++ -Wall -Wextra -O2 -o $PROB.exe $SRCFILE',
'Java': 'javac $SRCFILE',
'Python': None,
'Shell': None,
}
# Execution Commands
execcommands = {
'C': './$PROB.exe',
'C++': './$PROB.exe',
'Java': 'java $PROB',
'Python': 'python $PROB.py',
'Shell': '$SRCFILE',
}
# File Specifications
inputfile = '$PROB.in' # Input file for file problems
outputfile = '$PROB.out' # Output file for file problems
# Formatting
bigdivider = '#' * 80
meddivider = '=' * 64
smalldivider = '-' * 48
eof = '<EOF>' # EOF symbol for console output