题1006:三个数找最大值 摘要:解题思路:同时满足a>b和a>c用&&注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(…… 题解列表 2024年02月06日 0 点赞 0 评论 761 浏览 评分:0.0
编写题解 2800: 多边形内角和 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,i,sum=0,C; scanf("%d",&n); int a[n-2]; …… 题解列表 2024年02月06日 0 点赞 0 评论 447 浏览 评分:0.0
写题解 2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,n,sum0=0,sum1=0,sum2=0; scanf("%d",&n); …… 题解列表 2024年02月06日 0 点赞 0 评论 421 浏览 评分:0.0
这是一个数学问题 摘要:解题思路:我们易知道,一个数有平方差,那么该数是4的倍数或者该数是奇数,所以我们就只需要求L到R中4的倍数的个数和奇数的个数的和。参考代码:#include<stdio.h> int main() …… 题解列表 2024年02月05日 0 点赞 0 评论 774 浏览 评分:9.9
编写题解 1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c,x1,x2,x3,x4; cin>>a…… 题解列表 2024年02月05日 0 点赞 0 评论 429 浏览 评分:0.0
编写题解 2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin >> n; int sum = …… 题解列表 2024年02月05日 0 点赞 0 评论 513 浏览 评分:0.0
gets和scanf的区别 -注意事项1:scanf()输入字符串时,scanf()遇到空格、回车、Tab结束,但在缓冲区中还留着这些结束符,此后如果使用gets()想去获取下一行字符串,它碰到的却是前面遗留下来的回车(或者回车之前还有空格等空白符),那么这次gets()就直接失效了-注意事项2:gets能读取含有空格的字符串, 题解列表 2024年02月05日 0 点赞 0 评论 680 浏览 评分:9.9
编写题解 1039: [编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:编写题解 1039: [编程入门]宏定义之闰年判断#include<iostream> #define LEAP_YEAR(year) ((year % 4 == 0…… 题解列表 2024年02月05日 0 点赞 0 评论 596 浏览 评分:0.0
编写题解 2791: 计算邮资 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int c = 0; int a; cin>>a; …… 题解列表 2024年02月05日 0 点赞 0 评论 462 浏览 评分:0.0
编写题解 1032: [编程入门]自定义函数之字符串连接 摘要:解题思路:可以调用系统函数解决,鄙人附带了strcat功能实现的代码,可以进行参考注意事项:使用strcat时要调用string.h的文件参考代码:#include<stdio.h>#include<…… 题解列表 2024年02月04日 0 点赞 0 评论 557 浏览 评分:0.0