HDU2500
水题:
#include<iostream>
#include<cstring>
#include<cstdio>
using namespace std;
int main()
{
int n;
cin>>n;
while(n--){
int m,i,j;
cin>>m;
char s[4]="HDU";
for(i=1;i<=3*m;i++){
for(j=1;j<=m;j++)
cout<<s;
cout<<endl;}
}
}
HDU2500
水题:
#include<iostream>
#include<cstring>
#include<cstdio>
using namespace std;
int main()
{
int n;
cin>>n;
while(n--){
int m,i,j;
cin>>m;
char s[4]="HDU";
for(i=1;i<=3*m;i++){
for(j=1;j<=m;j++)
cout<<s;
cout<<endl;}
}
}