Official
A - ツバメ/swallow Editorial
by
A - ツバメ/swallow Editorial
by
nok0
入力を整数として受け取り、if 文を用いて場合分けを行うことでこの問題を解くことができます。実装例も参考にしてください。
実装例(C++):
#include<bits/stdc++.h>
using namespace std;
int main(){
int m;
cin >> m;
if(4 <= m and m <= 9) cout << "Yes\n";
else cout << "No\n";
}
実装例(Python):
m = int(input())
print("Yes" if 4 <= m <= 9 else "No")
posted:
last update: