Premium problem51. Position + Color Struct

Medium Locked

Create a structured array of size n holding:

  • a position (x, y)
  • a color (r, g, b)

Return a tuple (length, num_fields), where num_fields counts the leaf fields across both groups (5 in total).

Input

10

Output

(10, 5)

Premium problem

This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.

Implement solve(...)