1.4_10 有一门不及格的学生
生活随笔
收集整理的這篇文章主要介紹了
1.4_10 有一门不及格的学生
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
題目的鏈接
http://noi.openjudge.cn/ch0104/10/
#include<iostream> using namespace std; int main(){int a,b;cin>>a>>b;int s=0; if(a>=60 && b<60 ){//s=s+1;s++;}if(b>=60 && a<60){s++;}cout<<s;return 0; }?
?
?
python代碼
https://blog.csdn.net/yigezzchengxuyuan/article/details/86651658?
""" 1.4編程基礎之邏輯表達式與條件分支 10 有一門課不及格的學生 http://noi.openjudge.cn/ch0104/10/ https://blog.csdn.net/yigezzchengxuyuan/article/details/86651658""" x, y = map(int, input().split()) if (x < 60 and y > 59) or (x > 59 and y < 60):print("1") else:print("0")總結
以上是生活随笔為你收集整理的1.4_10 有一门不及格的学生的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 1.3编程基础之算术表达式与顺序执行 1
- 下一篇: Python一直报错:SyntaxErr