Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
38526 | 奚晨瑞 | 有一门课不及格的学生 | C++ | Accepted | 1 MS | 236 KB | 233 | 2024-01-27 16:15:29 |
#include<iostream> using namespace std; int main() { int Chinese,Math; cin>>Chinese>>Math; bool a=(Chinese>=60); bool b=(Math>=60); if((a==1&&b==0)||(a==0&&b==1)){ cout<<1; } else{ cout<<0; } return 0; }