![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字符串处理
wangfy_
这个作者很懒,什么都没留下…
展开
-
字符串处理
// 字符串处理 ------------------------------------------Sample Input:12345Sample Output:one five.#include <iostream>#include <cstdio>#include <cstring>using namespace std;int mai...原创 2018-04-25 20:44:30 · 106 阅读 · 0 评论 -
1001 A+B Format (20)
#include <cstdio>#include <cmath>using namespace std;const int MAXN = 10010;int main() { int long long a, b, c; scanf("%lld%lld",&a,&b); c = a + b; if(c < 0) { printf(...原创 2018-05-22 12:24:38 · 156 阅读 · 0 评论 -
1005 Spell It Right (20)
Spell It Right.Given a non-negative(非负) integer N, your task(任务) is to compute(计算) the sum of all the digits of N, and output every digit of the sum in English.Input Specification:Each input fil...原创 2018-06-01 10:20:13 · 153 阅读 · 0 评论 -
1010 Radix (25)
(待)原创 2018-06-10 08:36:27 · 337 阅读 · 0 评论 -
1140 Look-and-say Sequence(20)
//将每个不同的字符存入,初始字符后面的个数为1,//之后下一个时判断是否去前一个字符相同,相同则个数++;//不同的将新字符存入,并且个数初始为1。 #include <cstdio>#include <cstring>int main() { char str[50][10000] = {}; int D, N; scanf("%d %d",&...原创 2018-07-24 23:19:16 · 312 阅读 · 0 评论