回答編集履歴
1
関数の簡略化
test
CHANGED
@@ -6,21 +6,7 @@
|
|
6
6
|
|
7
7
|
def grad4(x):
|
8
8
|
|
9
|
-
if x <64:
|
10
|
-
|
11
|
-
return 0
|
12
|
-
|
13
|
-
e
|
9
|
+
return ((x+64)//64-1)*85
|
14
|
-
|
15
|
-
return 85
|
16
|
-
|
17
|
-
elif x <192:
|
18
|
-
|
19
|
-
return 170
|
20
|
-
|
21
|
-
else:
|
22
|
-
|
23
|
-
return 255
|
24
10
|
|
25
11
|
|
26
12
|
|