Official
A - 粗大ゴミ / bulky garbage Editorial
by
A - 粗大ゴミ / bulky garbage Editorial
by
kyopro_friends
この問題は、以下の3つの処理を順に行うことで解けます。
- 標準入力から値を読み込む
- if 文による条件分岐を行う
- 標準出力へ文字列を出力する
ここではPythonとC++による実装例を掲載します。
実装例(Python)
X, Y, Z, S = map(int,input().split())
if X>=S or Y>=S or Z>=S:
print("Yes")
else:
print("No")
実装例(C++)
#include<bits/stdc++.h>
using namespace std;
int main(){
int X, Y, Z, S;
cin >> X >> Y >> Z >> S;
if(X>=S || Y>=S || Z>=S){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
}
posted:
last update:
