HDU 4813 Hard Code(水题,2013年长春现场赛A题)
2014-01-05 23:31
435 查看
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4813
签到题。
把一个字符串按照格式输出就可以了,很水
签到题。
把一个字符串按照格式输出就可以了,很水
#include <stdio.h> #include <string.h> #include <iostream> #include <algorithm> #include <queue> #include <map> #include <set> #include <vector> #include <string> #include <math.h> using namespace std; int main() { //freopen("in.txt","r",stdin); //freopen("out.txt","w",stdout); int T,n,m,p; char str[11111]; scanf("%d",&T); while(T--){ scanf("%d %d",&n,&m); scanf("%s",str); p = 0; for(int i = 0;i < n; i ++) { for(int j = 0; j < m; j ++) cout<<str[p++]; cout << endl; } } return 0; }
相关文章推荐
- HDU - 4813 Hard Code (长春赛区水题)
- HDU 4818 RP problem (2013年长春现场赛F题) 高斯消元性质利用
- hdu 4813 Hard Code (字符串水题)
- HDU 4813 Hard Code(2013长春)
- hdu 4813(2013长春现场赛A题)
- hdu 5538 House Building(长春现场赛——水题)
- HDU 5528 Count a * b 2015 长春现场赛(积性函数)
- hdu 5916 Harmonic Value Description 2016ACM/CCPC长春赛区现场赛F
- HDU 5533 2015ACM-ICPC长春赛区现场赛G题
- HDU 5538/ 2015长春区域 L.House Building 水题
- HDU 4816 Bathysphere (2013长春现场赛D题)
- hdu 4813 Hard Code
- hdu 5918 Harmonic Value Description 2016ACM/CCPC长春赛区现场赛H
- HDU 4814 Golden Radio Base(2013 ACM/ICPC 长春赛区现场赛)
- HDU 4818 Golden Radio Base (2013长春现场赛B题)
- HDU 4813——Hard Code
- HDU 4821 String(2013长春现场赛I题)
- HDU-#4813 Hard Code
- HDU 4821 2013长春现场赛hash
- Ugly Problem(hdu 5920 && 2016ICPC长春现场赛模拟题)