
字符串处理
wangfy_
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
字符串处理
// 字符串处理 ------------------------------------------ Sample Input: 12345 Sample Output: one five. #include <iostream> #include <cstdio> #include <cstring> using namespace std; int mai...原创 2018-04-25 20:44:30 · 131 阅读 · 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 · 183 阅读 · 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 · 179 阅读 · 0 评论 -
1010 Radix (25)
(待)原创 2018-06-10 08:36:27 · 414 阅读 · 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 · 347 阅读 · 0 评论