回答編集履歴
1
d
answer
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
```python
|
4
4
|
def write(x, img):
|
5
|
-
c1 = tuple(x[1:3].int())
|
5
|
+
c1 = tuple(x[1:3].int()) # 左上の座標 (x, y)
|
6
|
-
c2 = tuple(x[3:5].int())
|
6
|
+
c2 = tuple(x[3:5].int()) # 右下の座標 (x, y)
|
7
7
|
|
8
8
|
if int(x[-1]) != 0:
|
9
9
|
return # ID=0 が人なので、人以外はなにもしない
|