1005. Spell It Right (20)
PAT 1005解法思路 先求出每个位数的总和,然后按照题目要求输出,输出函数用递归即可。代码如下#include<iostream>#include<string>#include<cstring>using namespace std;string englishTable[10] = {"zero", "one", "two", "three", "four", "five", "si
原创
2015-05-21 10:29:14 ·
219 阅读 ·
0 评论