-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-serv.py
67 lines (52 loc) · 1.62 KB
/
test-serv.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
from flask import Flask
import os
app = Flask(__name__)
@app.route('/')
def hello():
return "Hello, World!"
@app.route('/problem001/')
def problem1():
from problem001.problem import simpleSolution as s
return str(s())
@app.route('/problem002/')
def problem2():
from problem002.problem import simpleSolution as s
return str(s())
@app.route('/problem003/')
def problem3():
from problem003.problem import nuancedSolution as s
return str(s())
@app.route('/problem054/')
def problem54():
from problem054.problem import simpleSolution as s
return str(s(os.sep.join(['problem054','poker.txt'])))
@app.route('/problem058/')
def problem58():
from problem058.problem import simpleSolution as s
return str(s())
@app.route('/problem059/')
def problem59():
from problem059.problem import simpleSolution as s
return str(s(os.sep.join(['problem059','cipher1.txt'])))
@app.route('/problem076/')
def problem76():
from problem076.problem import simpleSolution as s
return str(s())
@app.route('/problem079/')
def problem79():
from problem079.problem import simpleSolution as s
return str(s(os.sep.join(['problem079','keylog.txt'])))
@app.route('/problem082/')
def problem82():
from problem082.problem import simpleSolution as s
return str(s(os.sep.join(['problem082','matrix.txt'])))
@app.route('/problem083/')
def problem83():
from problem083.problem import simpleSolution as s
return str(s(os.sep.join(['problem083','matrix.txt'])))
@app.route('/problem102/')
def problem102():
from problem102.problem import simpleSolution as s
return str(s(os.sep.join(['problem102','triangles.txt'])))
if __name__ == "__main__":
app.run(debug = True)