Tom数 (C语言代码)(转字符) 摘要:解题思路: 转换为字符串遍历相加参考代码:#include <stdio.h> #include <stdring.h> int main() { char numc[11]…… 题解列表 2018年06月03日 0 点赞 0 评论 1283 浏览 评分:0.0
Tom数 (C++代码) 摘要:#include <iostream> #include <cmath> using namespace std; long long n; int main() { whil…… 题解列表 2018年06月21日 7 点赞 0 评论 1510 浏览 评分:0.0
Tom数 (Java代码) 摘要:解题思路:注意事项:要考虑负数的情况,别被题目迷惑参考代码:import java.util.Scanner;public class Main { public static void main(S…… 题解列表 2018年07月06日 0 点赞 0 评论 1399 浏览 评分:0.0
此解可AC(超简单) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int c, sum; unsigned int N; while (scanf("%u", &N) != EO…… 题解列表 2018年07月16日 3 点赞 0 评论 1266 浏览 评分:0.0
Tom数 C语言 字符串 mirage解题记录 摘要:解题思路:1. 读入数据储存为字符串。2. 挨个字符相加得出结果。注意事项:单个字符相加时减去'0'的ASCLL码值。参考代码:#include<stdio.h> int main(…… 题解列表 2018年08月04日 19 点赞 3 评论 652 浏览 评分:0.0
Tom数 (C++代码) 摘要:解题思路:利用stringstream把字符和数字进行安全的转换注意事项:不考虑超限的话,把a[11]改为a[10000]有非常惊奇的效果参考代码:#include <iostream>#includ…… 题解列表 2018年08月10日 0 点赞 0 评论 1237 浏览 评分:0.0
Tom数 (C语言代码) 摘要:解题思路:注意事项:注意sum重新置为零,注意字符类型为long long参考代码:#include<stdio.h>int main(){ int long long n,m,sum=0; whi…… 题解列表 2018年09月01日 0 点赞 0 评论 808 浏览 评分:0.0
Tom数 (C语言代码)简洁的代码 15行 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char input[10]; while(scanf("%s"…… 题解列表 2018年09月28日 1 点赞 1 评论 556 浏览 评分:0.0
Tom数 (C语言代码) 摘要:解题思路:不用使用数组,每次对10取余,然后累加,再除10;注意事项:这个系统的int 并不是32位(提交了好几次 发现这个原因) ,注意累加结束后 记得置0 参考代码:#include <std…… 题解列表 2018年10月25日 0 点赞 0 评论 506 浏览 评分:0.0
Tom数 (C语言代码) 摘要:参考代码:#include <stdio.h> #include <math.h> int main() { double a; int m,sum; while(…… 题解列表 2018年11月01日 2 点赞 0 评论 585 浏览 评分:0.0