题解:B4053 [语言月赛 202411] Legends Never Die
考察分支结构。
首先输入四个变量,依次判断条件,满足就输出 Yes,否则输出 No,注意换行与大小写。核心代码如下:
int A,B,C,K;
cin>>A>>B>>C>>K;
if(A+B>=K)cout <<"Yes\n";
else cout <<"No\n";
if(___)cout <<"Yes\n";
else cout <<"No\n";
if(___)cout <<"___";
else cout <<"___";//在下划线处填空吧!