HDU-2500 做一个正气的杭电人
1 #include <iostream> 2 #include <stdlib.h> 3 #include <string.h> 4 #include <vector> 5 #include <algorithm> 6 #include <iostream> 7 #include <string> 8 9 using namespace std; 10 int main() 11 { 12 int N; 13 string HDU = "HDU"; 14 while(cin >> N) 15 { 16 int n; 17 while(N --) 18 { 19 cin >> n; 20 int row = 3*n; 21 int col = n; 22 23 for(int i = 0; i < row; i ++) 24 { 25 for(int j = 0; j < col; j ++) 26 { 27 cout << HDU; 28 } 29 cout << endl; 30 } 31 } 32 } 33 return 0; 34 }