2787: 有一门课不及格的学生 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int x,y; cin >> x >>y ;…… 题解列表 2023年12月23日 0 点赞 0 评论 191 浏览 评分:9.9
Java简单版本 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main{ public static void main(String[] args) { …… 题解列表 2023年11月01日 0 点赞 0 评论 212 浏览 评分:9.9
初学布尔表达式,你也可以! 摘要:解题思路: 输出1or0,脱离判断语句,考虑布尔值。 这边用异或运算,一真一假为真。 & 题解列表 2024年01月29日 0 点赞 0 评论 224 浏览 评分:9.9
题解 2787: 有一门课不及格的学生 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; …… 题解列表 2023年12月23日 0 点赞 0 评论 137 浏览 评分:9.9
2787: 有一门课不及格的学生 摘要:解题思路:注意事项:有一门课几个另一门课一定不及格参考代码:#include <iostream>using namespace std;int main(){ int x,y; cin …… 题解列表 2023年12月17日 0 点赞 0 评论 112 浏览 评分:9.9
2787: 有一门课不及格的学生 摘要:```cpp #include using namespace std; int main() { int a,b; cin>>a>>b; if(a>=60&&b…… 题解列表 2023年01月13日 0 点赞 0 评论 381 浏览 评分:9.9
2787: 有一门课不及格的学生 摘要:解题思路:注意事项:参考代码:import sysa , b = map(int,input().strip().split())if a < 0 or a > 100 or b < 0 or b >…… 题解列表 2022年11月29日 0 点赞 2 评论 439 浏览 评分:9.9
这学生难道不得用我的ojbk函数(微笑) 摘要:代码附在下面,函数在下面 根据不及格为假,及格为真,***采用异或***,不同输出真,相同输出假,刚好符合题意。 #include int main(void) {…… 题解列表 2022年11月22日 0 点赞 1 评论 435 浏览 评分:9.9
有一门科目不及格的学生 摘要:解题思路:注意事项:注意这里题目说的是只有一门不及格参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d",&a,&b); i…… 题解列表 2022年11月11日 0 点赞 0 评论 1108 浏览 评分:9.9
编写题解 2787: 有一门课不及格的学生 摘要:解题思路:注意事项:参考代码:score = list(map(int, input().split())) if min(score) < 60: if max(score) >= 60…… 题解列表 2023年12月17日 1 点赞 0 评论 225 浏览 评分:10.0