摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1047虽然说这题水,但我也没一次过。第一次没有考虑到一个输入块只包含0的情况。#include <iostream>using namespace std;const int LEN = 200;//图方便,将这些都作为全局变量char aLine[LEN];int oneInput[LEN],res[LEN];//将aLine以逆序转成oneInputvoid toInt(){ int len = strlen(aLine); memset(oneInput,0,sizeof(oneI 阅读全文
posted @ 2012-08-20 21:06 peaceful 阅读(194) 评论(0) 推荐(0)