编写题解 2787: 有一门课不及格的学生 摘要:解题思路:两个恰好有一个,联想到异或门,当两变量不同时为一,相同时为零注意事项:参考代码:a,b=map(int,input().strip().split())if (a>=60)^(b>=60)=…… 题解列表 2024年12月22日 0 点赞 0 评论 245 浏览 评分:0.0
2025/7/24刷题记录 摘要:解题思路:if...elseif 如果前面的if成功匹配后面的elseif不管匹配成功不成功都不会执行了 但是if...if前面的if匹配执行后后面的if如果也匹配还会继续执行注意事项:参考代码:#i…… 题解列表 2025年07月24日 0 点赞 0 评论 130 浏览 评分: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 评论 266 浏览 评分: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 评论 248 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:注意将条件考虑完整参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); if(0<=a…… 题解列表 2024年11月11日 0 点赞 0 评论 179 浏览 评分:0.0
2787: 有一门课不及格的学生 摘要:参考代码:#include<iostream> using namespace std; int main() { int a, b; cin >> a >> b; …… 题解列表 2024年03月01日 0 点赞 0 评论 796 浏览 评分:0.0
C语言-有一门课不及格的学生 摘要:解题思路:分支结构-if判断语句注意事项:“恰好”一门及格参考代码:#include<stdio.h>#include <math.h>int main(){ int n,m; scanf…… 题解列表 2024年01月22日 0 点赞 0 评论 171 浏览 评分:0.0
题解 2787: 有一门课不及格的学生 摘要:解题思路:注意事项:参考代码: #include<stdio.h> int main() 题解列表 2023年12月25日 0 点赞 0 评论 115 浏览 评分:0.0
题解 2787: 有一门课不及格的学生 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>//万能头文件using namespace std;int main(){ int a,b; cin>>a>>b;…… 题解列表 2023年12月23日 0 点赞 0 评论 204 浏览 评分:0.0
编写题解 2787: 有一门课不及格的学生 摘要:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; if(a>=60&&b<60||a<6…… 题解列表 2023年12月23日 0 点赞 0 评论 182 浏览 评分:0.0