質問するログイン新規登録

回答編集履歴

1

実行結果追記

2020/07/19 05:24

投稿

shiracamus
shiracamus

スコア5406

answer CHANGED
@@ -36,10 +36,20 @@
36
36
  [2.5, 3.2],
37
37
  ]
38
38
 
39
- print(get_smallest_rect_index(rects))
39
+ print("min index:", get_smallest_rect_index(rects))
40
- print(get_largest_rect_index(rects))
40
+ print("max index:", get_largest_rect_index(rects))
41
- print(get_smallest_rect(rects))
41
+ print("min rect:", get_smallest_rect(rects))
42
- print(get_largest_rect(rects))
42
+ print("max rect:", get_largest_rect(rects))
43
- print(get_smallest_rect_area(rects))
43
+ print("min area:", get_smallest_rect_area(rects))
44
- print(get_largest_rect_area(rects))
44
+ print("man area:", get_largest_rect_area(rects))
45
+ ```
46
+
47
+ 実行結果:
48
+ ```
49
+ min index: 1
50
+ max index: 0
51
+ min rect: [0.5, 1.1]
52
+ max rect: [2.1, 4.1]
53
+ min area: 0.55
54
+ man area: 8.61
45
55
  ```