题解 3142: 蓝桥杯2023年第十四届省赛真题-平方差(数学证明正解+打表找规律) 摘要:### 数学证明: 对于偶数和奇数分别有如下证明: 对任意偶数可以表示为:2*k,其中k为正整数。假如该偶数满足题目条件:x = y^2-z^2,即2*k = (y + z) * (y -…… 题解列表 2024年11月11日 4 点赞 1 评论 812 浏览 评分:10.0
简单易懂while循环就可以完成 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long int a,n,Tom; while(scanf("%ld",&n)!=EOF) { …… 题解列表 2024年11月11日 0 点赞 0 评论 333 浏览 评分:9.9
看不懂直接喷我 摘要:解题思路:注意事项: 看我评论!!!!!参考代码: #include #include int main() { int i; char a[300]; gets (a); int num=strle…… 题解列表 2024年11月11日 0 点赞 1 评论 337 浏览 评分:9.9
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> struct today getstruct(void); void output(struct today x); struc…… 题解列表 2024年11月11日 1 点赞 0 评论 218 浏览 评分:0.0
The 3n + 1 problem,goto真好用! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量a, b, c和数组d,l用…… 题解列表 2024年11月11日 0 点赞 0 评论 203 浏览 评分:0.0
哥德巴赫猜想做题心得 摘要:解题思路:对称求和以及对素数的判断注意事项:这里我们需要理解题目的目的-输入n是偶数,这使得我们的循环是对称的(既(2-n)这个区间) 所以头尾相加可求得n 此时对题目的理解转变成判断首位数字是否同时…… 题解列表 2024年11月11日 0 点赞 0 评论 187 浏览 评分:0.0
C语言训练-8除不尽的数 摘要:```cpp #include using namespace std; int main() { cout…… 题解列表 2024年11月11日 0 点赞 0 评论 174 浏览 评分:6.0
c语言简单数组解报数问题 摘要:解题思路:注意事项:参考代码:#includeint main(){ int arr[201]; int n,i,j; scanf ("%d",&n); for (i=0;i<n;i++) //…… 题解列表 2024年11月11日 0 点赞 0 评论 117 浏览 评分:0.0
最低通行费 (数字三角形模型dp) 摘要: 二选一:我也不知道为什么限制为什么不同。 方法一: #include using namespace std; const int N=110; i…… 题解列表 2024年11月11日 0 点赞 0 评论 283 浏览 评分:9.9
直接写就行了 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int i,j=0,n,Sn=0; scanf…… 题解列表 2024年11月11日 2 点赞 0 评论 548 浏览 评分:9.9