2787: 有一门课不及格的学生 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d", &a, &b); if (a<60 && b>…… 题解列表 2023年11月13日 0 点赞 0 评论 248 浏览 评分:0.0
2788: 晶晶赴约会 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d", &a); if (1==a || 3==a || 5==…… 题解列表 2023年11月13日 0 点赞 0 评论 163 浏览 评分:0.0
[编程入门]猴子吃桃的问题 (C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,w,a,i; a=1; w=1; i=1; scanf("%d",&N…… 题解列表 2023年11月13日 0 点赞 0 评论 237 浏览 评分:0.0
[编程入门]宏定义之找最大数(数组方法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Max(a,b,c) ((a>b?a:b))>c?(a>b?a:b):cdouble max(double arr[])…… 题解列表 2023年11月13日 0 点赞 0 评论 191 浏览 评分:0.0
深搜dfs,python不容易过 摘要:d=[(-1,-2),(1,-2),(-2,-1),(2,-1),(-2,1),(2,1),(-1,2),(1,2)] def dfs(x,y,s): global res if…… 题解列表 2023年11月13日 0 点赞 0 评论 205 浏览 评分:0.0
3014: 计算星期几 摘要:``` #include using namespace std; int main(){ int a,b,ans=1,x=1; cin>>a>>b; //cout…… 题解列表 2023年11月13日 0 点赞 0 评论 243 浏览 评分:0.0
用c语言以最简短的代码量解决自由落体问题 摘要:解题思路:将第一次下落和第二次上升看为一个整体,这个整体的和为第二次上升距离的三倍,最终求总距离时可以看作是将每一个整体相加,最终再减去最后一次上升的部分即可注意事项:题目想让你解答的是减去最后一次上…… 题解列表 2023年11月13日 0 点赞 0 评论 190 浏览 评分:0.0
c代码记录之自定义函数字符类型统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int zm=0,sz=0,kg=0,qt=0; void kind(char s…… 题解列表 2023年11月13日 0 点赞 0 评论 132 浏览 评分:0.0
1011: [编程入门]最大公约数与最小公倍数 摘要:``` #include using namespace std; int m,n,x,yin,bei; int main(){ cin>>m>>n; x=m*n; for( in…… 题解列表 2023年11月13日 0 点赞 0 评论 215 浏览 评分:0.0
百钱百鸡问题(C语言)(简单易懂) 摘要:解题思路:注意事项:参考代码:#include #include #include int main() { int cock, hen, chicken; // 分别表示公鸡、母鸡、小鸡的…… 题解列表 2023年11月13日 0 点赞 0 评论 284 浏览 评分:0.0