编写题解 2814: 正常血压c++ 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d,sum=0,sum1=0,aa…… 题解列表 2023年07月01日 0 点赞 0 评论 400 浏览 评分:9.9
感谢支持,谢谢你们的支持 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,s=0,t=0; cin>>n; for(in…… 题解列表 2023年07月01日 0 点赞 0 评论 414 浏览 评分:9.9
偶数求和利用数组解决 摘要:解题思路:利用数组的思路,通过索引注意事项:参考代码:#include <stdio.h> int main() { int n, m,i,j; while (scanf("%d…… 题解列表 2023年07月01日 0 点赞 0 评论 269 浏览 评分:9.9
fgets解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main() { char str[100]; int i; fg…… 题解列表 2023年07月03日 0 点赞 0 评论 282 浏览 评分:9.9
素数判断--开方小于num 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int isPrime(int num) { if (num <= 1) { return 0; } …… 题解列表 2023年07月03日 0 点赞 0 评论 283 浏览 评分:9.9
分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int x,a; cin >> x; while(…… 题解列表 2023年07月03日 0 点赞 0 评论 568 浏览 评分:9.9
[编程入门]自定义函数之数字分离(超级简单版只需十一步) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a, b, c, d, e; printf("请输入一个四位数的数字:"); …… 题解列表 2023年07月03日 0 点赞 0 评论 324 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c,i; scanf("%d %d %d", &a, &b, &c); for (i = 2…… 题解列表 2023年07月04日 0 点赞 0 评论 535 浏览 评分:9.9
蛇形矩阵简单易懂 摘要:解题思路:先理解下标的变换,再根据变换的规律依次将递增的自然数写入数组注意事项:备用一个变量t,避免最后遍历数组的时候,条件被改变参考代码:#include <stdio.h>int main(){ …… 题解列表 2023年07月04日 0 点赞 0 评论 335 浏览 评分:9.9
[递归]母牛的故事(c语言) 摘要:解题思路:首先就先列一些值,便于发现规律,更加直观年12345678牛的数量f[n]12346913191、找规律,有些小伙伴可能已经发现了f[n]=f[n-1]+f[n-3]2、对题目进行分析,根据…… 题解列表 2023年07月04日 0 点赞 0 评论 404 浏览 评分:9.9