#include#include #include using namespace std; int main() { int i, t, m, n, a, b; cin >> t; for (i = 1; i <= t; i++) { cin >> n >> m; for (a = 1; a <= m; a++) { cout << ">" << "+"; for (b = 1; b <= n - 2; b++) { cout << "-"; } cout << "+" << ">" << endl; } } return 0; }



