2025/7/24刷题记录 摘要:解题思路:if...elseif 如果前面的if成功匹配后面的elseif不管匹配成功不成功都不会执行了 但是if...if前面的if匹配执行后后面的if如果也匹配还会继续执行注意事项:参考代码:#i…… 题解列表 2025年07月24日 0 点赞 0 评论 49 浏览 评分:0.0
编写题解 2787: 有一门课不及格的学生 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); if((a<60&&b>60)…… 题解列表 2024年12月06日 0 点赞 0 评论 228 浏览 评分:0.0
2787普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a; scanf("%d%d",&n,&a); if (n<60 && a<60) printf(…… 题解列表 2024年11月23日 0 点赞 0 评论 214 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:注意将条件考虑完整参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); if(0<=a…… 题解列表 2024年11月11日 0 点赞 0 评论 156 浏览 评分:0.0
初学布尔表达式,你也可以! 摘要:解题思路: 输出1or0,脱离判断语句,考虑布尔值。 这边用异或运算,一真一假为真。 & 题解列表 2024年01月29日 0 点赞 0 评论 258 浏览 评分:9.9
C语言-有一门课不及格的学生 摘要:解题思路:分支结构-if判断语句注意事项:“恰好”一门及格参考代码:#include<stdio.h>#include <math.h>int main(){ int n,m; scanf…… 题解列表 2024年01月22日 0 点赞 0 评论 147 浏览 评分:0.0
题解 2787: 有一门课不及格的学生 摘要:解题思路:注意事项:参考代码: #include<stdio.h> int main() 题解列表 2023年12月25日 0 点赞 0 评论 96 浏览 评分:0.0
2787: 有一门课不及格的学生 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d", &a, &b); if (a<60 && b>…… 题解列表 2023年11月13日 0 点赞 0 评论 216 浏览 评分:0.0
有一门课不及格的学生(使用||简化) 摘要:参考代码: ```c #include int main() { int a,b; scanf("%d%d",&a,&b); if((a=60)||(b=60))//有一门课不及格…… 题解列表 2023年09月06日 0 点赞 0 评论 243 浏览 评分:0.0
利用逻辑运算来输出 摘要:解题思路:利用逻辑运算来输出,逻辑运算的输出数值只有0和1注意事项: //逻辑运算 //与运算:只要有一个假就为假 //或运算:只要有一个真就可以真 //异或运算:一真一假才为真参考代…… 题解列表 2023年02月15日 0 点赞 0 评论 356 浏览 评分:10.0