1139求素数问题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin >> n; int k = 2;//1 不是素数…… 题解列表 2024年07月07日 0 点赞 0 评论 448 浏览 评分:0.0
1138求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int N; cin >> N; int arr[15][15]; l…… 题解列表 2024年07月07日 0 点赞 0 评论 663 浏览 评分:0.0
1137求函数值 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a = 10; int n; cin >> n; if (n …… 题解列表 2024年07月07日 1 点赞 0 评论 591 浏览 评分:10.0
1136求具有abcd=(ab+cd)2性质的四位数(直接输出那三个数) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ for (int i = 1000; i…… 题解列表 2024年07月07日 0 点赞 0 评论 507 浏览 评分:0.0
1135求s=a+aa+aaa+aaaa+aa...a的值(while循环) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int a, n; cin >> a >…… 题解列表 2024年07月07日 0 点赞 0 评论 557 浏览 评分:0.0
1134求PI*(while循环) 摘要:解题思路:注意事项:答案是3.141591参考代码:#include<iostream>using namespace std;int main(){ double a = 1.0;//这是分子 do…… 题解列表 2024年07月07日 0 点赞 0 评论 650 浏览 评分:0.0
1133阶乘的和(简单的动态规划) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin >> n; long long arr[25] …… 题解列表 2024年07月07日 0 点赞 0 评论 492 浏览 评分:0.0
1132最大数问题(while循环解决) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin >> a; int b; if (a == -1…… 题解列表 2024年07月07日 0 点赞 0 评论 786 浏览 评分:0.0
1101: 循环 高精度 解题思路:规律:当后K为数字存在循环结的必要条件是,后K-1位数字存在循环结,并且K的最小循环结必定是K-1的最小循环结的整数倍。并且对于当前位数的处理不必要取模,既然已经用了数组高精度保存便可以只考虑当前位数。在比较时,显然后K-1位已经按照之前的循环结递推过来必定相同, 题解列表 2024年07月04日 1 点赞 0 评论 1138 浏览 评分:0.0
运用字符串求解 摘要:解题思路: 用字符串的特点, 使输入的数字转化为字符串存储, 再用length函数限制输入位数, 最后用字符串下标输出注意事项: 参考代码:#include<iostream> usin…… 题解列表 2024年07月04日 2 点赞 0 评论 575 浏览 评分:0.0