b
python3
Source:
3
for i in range(15):
print('{:<2}|'.format(i))
Result:
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10|
11|
12|
13|
14|
Size: a a a
b
python3
3
for i in range(15):
print('{:<2}|'.format(i))
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10|
11|
12|
13|
14|
БГ
if ((ax//sx)*(y//sy) > (ax//sy)*(ay//sx)) {
s = (ax//sx)*(y//sy)
} else {
s = (ax//sy)*(ay//sx)
БГ
G
python3
3
for i in range(15):
print('{:<2}|'.format(i))
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10|
11|
12|
13|
14|
БГ
AT
БГ
AT
R3
AT
AT
GS
БГ
AT
AT
БГ
py3
conditions = {
(True, True): lambda v: v-1,
(True, False): lambda v: v+1,
(False, False): lambda v: 0
}
condition = (1>2, 10<=12)
some = conditions.get(condition, lambda v: None)(5)
print(some)
None
БГ
БГ
БГ
P