自守数问题,简单明了,C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ long s,j; printf("0"); for(long i=1; i<=200000…… 题解列表 2024年08月18日 2 点赞 0 评论 755 浏览 评分:0.0
Hifipsysta-1144-C语言训练-自守数问题(C++)字符串匹配法 摘要: ```cpp #include #include #include #include using namespace std; bool is_self_hold(long n){…… 题解列表 2022年02月04日 0 点赞 0 评论 633 浏览 评分:0.0
编写函数解决问题 摘要:解题思路:注意事项:注意整数溢出,可以使用long long int,不要使用pow参考代码:#include<stdio.h>int f(int n){ int i=0; if(n==0…… 题解列表 2025年11月09日 0 点赞 0 评论 356 浏览 评分:0.0
1144: C语言训练-自守数问题(最长答案) 摘要:解题思路:题目要求:200000以内的自守数(包括0, 数之间用两个空格分开,末尾无空格) 首先求出最后一个自守数,并赋值给a;之后从小到大依次判断0-200000之间的自守数;当自守数不等于a时,及…… 题解列表 2022年01月26日 0 点赞 0 评论 435 浏览 评分:0.0
C语言训练-自守数问题 摘要:解题思路:字符串注意事项:数位与空格参考代码:#include<iostream> #include<cmath> #include<string> using namespace std; …… 题解列表 2024年08月12日 0 点赞 0 评论 633 浏览 评分:0.0
简单输出,有些取巧 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){printf("0 1 5 6 25&nb…… 题解列表 2026年07月21日 0 点赞 0 评论 37 浏览 评分:0.0
C语言解自守数 摘要:解题思路:由自守数的概念可知,数的平方对数的位数求余即尾数。注意事项:最后的输出没有空格参考代码:#include <stdio.h> #include <math.h> int main() …… 题解列表 2024年07月31日 0 点赞 0 评论 646 浏览 评分:0.0
1144自守数问题 摘要:解题思路:这道题给的范围不是很大,所以可以使用 long long 可以存储最后的平方值,我用的是常规思路:先求出它的平方,再求出这个数有几个数字,再从它的平方中提取出来进行比较就行了。注意事项:注意…… 题解列表 2024年07月08日 0 点赞 0 评论 712 浏览 评分:0.0
注意定义的数据类型 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { for(long i=0;…… 题解列表 2024年02月26日 0 点赞 0 评论 640 浏览 评分:0.0
数组存储,高精度相乘比较! 摘要: ``` #include #include #include #include #include #include using namespace std; const int I…… 题解列表 2022年05月13日 0 点赞 0 评论 637 浏览 评分:0.0