T1244-和为给定数 摘要:#include<stdio.h>int main(){ int arr[100001]={0}; int n,m; int x; scanf("%d",&n)…… 题解列表 2025年11月05日 0 点赞 0 评论 1 浏览 评分:0.0
T1244-和为给定数 摘要:#include<stdio.h>int main(){ int arr[100001]={0}; int n;  …… 题解列表 2025年11月05日 0 点赞 0 评论 2 浏览 评分:0.0
C++:ctrl c ctrl v 摘要:解题思路:1注意事项:2参考代码:#include<iostream>using namespace std;int main(){ int a,b,c;&nbs…… 题解列表 2025年11月05日 0 点赞 0 评论 1 浏览 评分:0.0
二分法求函数的零点 摘要:#include<stdio.h>#include<math.h>double target = 1e-7;double f(double x){ r…… 题解列表 2025年11月05日 0 点赞 0 评论 6 浏览 评分:0.0
2878:计算矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:一:比较笨的方法#include<stdio.h>int main(){ int arr[100][100]; &nbs…… 题解列表 2025年11月05日 0 点赞 0 评论 14 浏览 评分:0.0
2876:矩阵交换行 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int arr[5][5]={}; for(in…… 题解列表 2025年11月05日 0 点赞 0 评论 10 浏览 评分:0.0
2850:将输入的字符串转变成亲朋字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char arr[101]; //scanf("%s…… 题解列表 2025年11月05日 0 点赞 0 评论 11 浏览 评分:0.0
1029:自定义函数处理素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ void IsPrime(int n); int num; scanf(&…… 题解列表 2025年11月05日 0 点赞 0 评论 10 浏览 评分:0.0
就是数字有点大,我用的long 和%ld 摘要:解题思路:注意事项: 这里我用的是long 用int 的话在后面数值越来越大,会超出int的限定值,从而变成负数。还有要用%ld别搞错了参考代码:#…… 题解列表 2025年11月05日 1 点赞 0 评论 17 浏览 评分:0.0
两次循环和一次判断 摘要:解题思路:两次循环和一次判断注意事项:输出结果时要加1(arr2[1]+1)参考代码:#include<stdio.h>int main(){ int n,cou…… 题解列表 2025年11月05日 0 点赞 0 评论 7 浏览 评分:0.0