#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 H-Code | 为什么要写代码... universal account, you can submit code and join discussions in all online judging services provided by us.
Using your H-Code | 为什么要写代码... universal account