Official
A - 売れ残るフルーツ / Leftover Fruits Editorial
by
A - 売れ残るフルーツ / Leftover Fruits Editorial
by
kyopro_friends
Editorial for printing
答えが Yes となるための必要十分条件は \(A > B\) となることです。よって if 文などを用いることでこの問題を解くことができます。
実装例 (C++)
#include<bits/stdc++.h>
using namespace std;
int main(){
int a, b;
cin >> a >> b;
if(a > b){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
}
実装例 (Python)
A, B = map(int, input().split())
if A > B:
print("Yes")
else:
print("No")
posted:
last update:
