标签:des c style class blog code
Description
Input
Output
Sample Input
1 2 5 klmbbileay
Sample Output
klmbb ileay
#include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; const int MAXN = 1005; char str[MAXN]; int n,m; int main() { int t; scanf("%d", &t); while (t--) { scanf("%d%d%*c", &n ,&m); scanf("%s", str); int cnt = 0; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) printf("%c", str[cnt++]); printf("\n"); } } return 0; }
HDU - 4813 Hard Code (长春赛区水题),布布扣,bubuko.com
标签:des c style class blog code
原文地址:http://blog.csdn.net/u011345136/article/details/27803265