class Solution { public: int mod = 1e9 + 7; int n = 0; void func(vector<int>& a, vector<vector<int>>& arr) { for (int i = 0; i < n; ++i) { int temp = a[i]; while (temp > 0 && temp % 2 == 0) { arr[i][0...