-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstants.py
45 lines (40 loc) · 1.17 KB
/
constants.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
'''
'''
uva_headers = {
'Accept-Charset': 'utf-8,ISO-8859-1',
'Accept-Language': 'en-US,en;q=0.8',
'User-Agent' : "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) "+
"AppleWebKit/537.17 (KHTML, like Gecko) "+
"Chrome/24.0.1312.57 Safari/537.17",
"Accept" : "text/html, application/xml, text/xml, */*",
}
udebug_headers = {
'Accept-Charset': 'utf-8,ISO-8859-1',
'Accept-Language': 'en-US,en;q=0.8',
'User-Agent' : "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) "+
"AppleWebKit/537.17 (KHTML, like Gecko) "+
"Chrome/24.0.1312.57 Safari/537.17",
"Accept" : "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
}
verdicts = {
0 : "Pending",
10 : "Submission error",
15 : "Can't be judged",
20 : "In queue",
30 : "Compile error",
35 : "Restricted function",
40 : "Runtime error",
45 : "Output limit",
50 : "Time limit",
60 : "Memory limit",
70 : "Wrong answer",
80 : "Presentation Error",
90 : "Accepted",
}
language = {
1 : "ANSI C",
2 : "Java",
3 : "C++",
4 : "Pascal",
5 : "C++11"
}