Skip to content

Commit d0f4338

Browse files
committed
update lab4 informatics
1 parent 58c40a9 commit d0f4338

File tree

6 files changed

+299
-3
lines changed

6 files changed

+299
-3
lines changed
Binary file not shown.

informatics/sem1/lab4/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ def x100_time(converter: object, inpFile: str = "./timetable.xml") -> float:
2222

2323
if __name__ == "__main__":
2424

25-
main(С1(True).main, outFile = "out1.json")) # ОЗ, ДЗ-3
26-
main(С2(True).main, outFile = "out2.json")) # ДЗ-2
27-
main(C3().main, outFile = "out3.json")) # ДЗ-1
25+
main(С1(True).main, outFile = "out1.json") # ОЗ, ДЗ-3
26+
main(С2(True).main, outFile = "out2.json") # ДЗ-2
27+
main(C3().main, outFile = "out3.json") # ДЗ-1
2828

2929
for i in [С1(True).main, С2(True).main, C3().main]:
3030
print(i.__code__.co_filename, f"{x100_time(i)/10**9:.6f}c ({x100_time(i)}нс)")

informatics/sem1/lab4/out1.json

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"root": {
3+
"schedule": [
4+
{
5+
"weeks": {
6+
"num": [
7+
"1",
8+
"3",
9+
"5",
10+
"7",
11+
"9",
12+
"11",
13+
"13",
14+
"15"
15+
]
16+
},
17+
"lesson": {
18+
"name": "Программирование",
19+
"type": "Лекция",
20+
"format": "Очно-Дистанционный",
21+
"time": {
22+
"start": "8:20",
23+
"end": "9:50"
24+
},
25+
"place": {
26+
"address": "ул.Ломоносова, д.9, лит. М",
27+
"classroom": "Ауд. Актовый зал (1216/0 (усл))"
28+
},
29+
"teacher": "Гаврилов Антон Валерьевич"
30+
}
31+
},
32+
{
33+
"weeks": {
34+
"num": [
35+
"2",
36+
"4",
37+
"6",
38+
"8",
39+
"10",
40+
"12",
41+
"14",
42+
"16"
43+
]
44+
},
45+
"lesson": [
46+
{
47+
"name": "Информатика",
48+
"type": "Лекция",
49+
"format": "Очно",
50+
"time": {
51+
"start": "8:20",
52+
"end": "9:50"
53+
},
54+
"place": {
55+
"address": "ул.Ломоносова, д.9, лит. М",
56+
"classroom": "Ауд. Актовый зал (1216/0 (усл))"
57+
},
58+
"teacher": "Балакшин Павел Валерьевич"
59+
},
60+
{
61+
"name": "Основы профессиональной деятельности",
62+
"type": "Лекция",
63+
"format": "Очно",
64+
"time": {
65+
"start": "10:00",
66+
"end": "11:30"
67+
},
68+
"place": {
69+
"address": "ул.Ломоносова, д.9, лит. М",
70+
"classroom": "Ауд. Актовый зал (1216/0 (усл))"
71+
},
72+
"teacher": "Клименков Сергей Викторович"
73+
}
74+
]
75+
}
76+
]
77+
}
78+
}

informatics/sem1/lab4/out2.json

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"root": {
3+
"schedule": [
4+
{
5+
"weeks": {
6+
"num": [
7+
"1",
8+
"3",
9+
"5",
10+
"7",
11+
"9",
12+
"11",
13+
"13",
14+
"15"
15+
]
16+
},
17+
"lesson": {
18+
"name": "Программирование",
19+
"type": "Лекция",
20+
"format": "Очно-Дистанционный",
21+
"time": {
22+
"start": "8:20",
23+
"end": "9:50"
24+
},
25+
"place": {
26+
"address": "ул.Ломоносова, д.9, лит. М",
27+
"classroom": "Ауд. Актовый зал (1216/0 (усл))"
28+
},
29+
"teacher": "Гаврилов Антон Валерьевич"
30+
}
31+
},
32+
{
33+
"weeks": {
34+
"num": [
35+
"2",
36+
"4",
37+
"6",
38+
"8",
39+
"10",
40+
"12",
41+
"14",
42+
"16"
43+
]
44+
},
45+
"lesson": [
46+
{
47+
"name": "Информатика",
48+
"type": "Лекция",
49+
"format": "Очно",
50+
"time": {
51+
"start": "8:20",
52+
"end": "9:50"
53+
},
54+
"place": {
55+
"address": "ул.Ломоносова, д.9, лит. М",
56+
"classroom": "Ауд. Актовый зал (1216/0 (усл))"
57+
},
58+
"teacher": "Балакшин Павел Валерьевич"
59+
},
60+
{
61+
"name": "Основы профессиональной деятельности",
62+
"type": "Лекция",
63+
"format": "Очно",
64+
"time": {
65+
"start": "10:00",
66+
"end": "11:30"
67+
},
68+
"place": {
69+
"address": "ул.Ломоносова, д.9, лит. М",
70+
"classroom": "Ауд. Актовый зал (1216/0 (усл))"
71+
},
72+
"teacher": "Клименков Сергей Викторович"
73+
}
74+
]
75+
}
76+
]
77+
}
78+
}

informatics/sem1/lab4/out3.json

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"root": {
3+
"schedule": [
4+
{
5+
"weeks": {
6+
"num": [
7+
"1",
8+
"3",
9+
"5",
10+
"7",
11+
"9",
12+
"11",
13+
"13",
14+
"15"
15+
]
16+
},
17+
"lesson": {
18+
"name": "Программирование",
19+
"type": "Лекция",
20+
"format": "Очно-Дистанционный",
21+
"time": {
22+
"start": "8:20",
23+
"end": "9:50"
24+
},
25+
"place": {
26+
"address": "ул.Ломоносова, д.9, лит. М",
27+
"classroom": "Ауд. Актовый зал (1216/0 (усл))"
28+
},
29+
"teacher": "Гаврилов Антон Валерьевич"
30+
}
31+
},
32+
{
33+
"weeks": {
34+
"num": [
35+
"2",
36+
"4",
37+
"6",
38+
"8",
39+
"10",
40+
"12",
41+
"14",
42+
"16"
43+
]
44+
},
45+
"lesson": [
46+
{
47+
"name": "Информатика",
48+
"type": "Лекция",
49+
"format": "Очно",
50+
"time": {
51+
"start": "8:20",
52+
"end": "9:50"
53+
},
54+
"place": {
55+
"address": "ул.Ломоносова, д.9, лит. М",
56+
"classroom": "Ауд. Актовый зал (1216/0 (усл))"
57+
},
58+
"teacher": "Балакшин Павел Валерьевич"
59+
},
60+
{
61+
"name": "Основы профессиональной деятельности",
62+
"type": "Лекция",
63+
"format": "Очно",
64+
"time": {
65+
"start": "10:00",
66+
"end": "11:30"
67+
},
68+
"place": {
69+
"address": "ул.Ломоносова, д.9, лит. М",
70+
"classroom": "Ауд. Актовый зал (1216/0 (усл))"
71+
},
72+
"teacher": "Клименков Сергей Викторович"
73+
}
74+
]
75+
}
76+
]
77+
}
78+
}

informatics/sem1/lab4/out4.proto

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
syntax = "proto3";
2+
3+
message Root{
4+
5+
Schedule0 schedule0 = 1;
6+
message Schedule0{
7+
8+
Weeks0 weeks0 = 1;
9+
message Weeks0{
10+
repeated string num = 1;
11+
}
12+
13+
Lesson1 lesson1 = 2;
14+
message Lesson1{
15+
string name = 1;
16+
string type = 2;
17+
string format = 3;
18+
string teacher = 4;
19+
20+
Time0 time0 = 5;
21+
message Time0{
22+
string start = 1;
23+
string end = 2;
24+
}
25+
26+
Place1 place1 = 6;
27+
message Place1{
28+
string address = 1;
29+
string classroom = 2;
30+
}
31+
}
32+
}
33+
34+
Schedule1 schedule1 = 2;
35+
message Schedule1{
36+
37+
Weeks0 weeks0 = 1;
38+
message Weeks0{
39+
repeated string num = 1;
40+
}
41+
42+
repeated Lesson1 lesson1 = 2;
43+
message Lesson1{
44+
string name = 1;
45+
string type = 2;
46+
string format = 3;
47+
string teacher = 4;
48+
49+
Time0 time0 = 5;
50+
message Time0{
51+
string start = 1;
52+
string end = 2;
53+
}
54+
55+
Place1 place1 = 6;
56+
message Place1{
57+
string address = 1;
58+
string classroom = 2;
59+
}
60+
}
61+
}
62+
}

0 commit comments

Comments
 (0)