Tom数 (C++代码) 摘要:#include <iostream> #include <cmath> using namespace std; long long n; int main() { whil…… 题解列表 2018年06月21日 7 点赞 0 评论 1028 浏览 评分:0.0
Tom数 (Java代码) 摘要:解题思路:注意事项:要考虑负数的情况,别被题目迷惑参考代码:import java.util.Scanner;public class Main { public static void main(S…… 题解列表 2018年07月06日 0 点赞 0 评论 1016 浏览 评分:0.0
此解可AC(超简单) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int c, sum; unsigned int N; while (scanf("%u", &N) != EO…… 题解列表 2018年07月16日 3 点赞 0 评论 968 浏览 评分:0.0
Tom数 C语言 字符串 mirage解题记录 摘要:解题思路:1. 读入数据储存为字符串。2. 挨个字符相加得出结果。注意事项:单个字符相加时减去'0'的ASCLL码值。参考代码:#include<stdio.h> int main(…… 题解列表 2018年08月04日 19 点赞 3 评论 594 浏览 评分:0.0
Tom数 (C++代码) 摘要:解题思路:利用stringstream把字符和数字进行安全的转换注意事项:不考虑超限的话,把a[11]改为a[10000]有非常惊奇的效果参考代码:#include <iostream>#includ…… 题解列表 2018年08月10日 0 点赞 0 评论 900 浏览 评分: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 评论 645 浏览 评分:0.0
Tom数 (C语言代码)简洁的代码 15行 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char input[10]; while(scanf("%s"…… 题解列表 2018年09月28日 1 点赞 1 评论 458 浏览 评分:0.0
Tom数 (C语言代码) 摘要:解题思路:不用使用数组,每次对10取余,然后累加,再除10;注意事项:这个系统的int 并不是32位(提交了好几次 发现这个原因) ,注意累加结束后 记得置0 参考代码:#include <std…… 题解列表 2018年10月25日 0 点赞 0 评论 413 浏览 评分:0.0
Tom数 (C语言代码) 摘要:参考代码:#include <stdio.h> #include <math.h> int main() { double a; int m,sum; while(…… 题解列表 2018年11月01日 2 点赞 0 评论 409 浏览 评分:0.0
Tom数 (C语言代码)不要开数组!!!! 摘要:解题思路: 由于数据量非常大,如果你要利用一个数组读取得话,可能会有各种问题,请使用while循环进行输入+一个字符+一个整形就可以完成全部得运算了!参考代码:【C语言版】#includ…… 题解列表 2018年11月30日 0 点赞 0 评论 478 浏览 评分:0.0