#include<bits/stdc++.h> using namespace std; int a,b; int main(){ cin>>a>>b; for(int i=1;i<=a;i++){ for(int j=1;j<=b;j++){ cout<<i<<"-"<<j<<"\n"; } } return 0; }
By signing up a 启智 | CDEZ OJ universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 启智 | CDEZ OJ universal account