题目:http://acm.hdu.edu.cn/showproblem.php?pid=2500
AC代码(C++):
#include <iostream> #include <algorithm> #include <stdio.h> #include <vector> #include <queue> #include <map> #include <math.h> #include <string> #include <string.h> #include <bitset> #define INF 0xfffffff #define MAXN 100105 using namespace std; int n; int main(){ int t; cin>>t; while(t--){ cin>>n; for(int i = 0; i < n*3; i++){ for(int j = 0; j < n; j++)cout<<"HDU"; cout<<endl; } } }总结: 这水题过分了吧?