首页 > 试题广场 >

牛妹数

[编程题]牛妹数
  • 热度指数:433 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 256M,其他语言512M
  • 算法知识视频讲解
\hspace{15pt}如果一个整数是偶数且大于 50,我们称其为牛妹数。给定一个整数 n,判断其是否为牛妹数。

输入描述:
\hspace{15pt}在一行中输入一个整数 n,满足 1 \leqq n \leqq 100


输出描述:
\hspace{15pt}n 是牛妹数,输出 "yes"(不含双引号);否则输出 "no"(不含双引号)。
示例1

输入

50

输出

no

说明

50 为偶数但不大于 50,因此不是牛妹数,输出 no。
示例2

输入

52

输出

yes

说明

52 为偶数且大于 50,因此是牛妹数,输出 yes。
头像 张田懿
发表于 2020-12-14 12:43:28
include<bits/stdc++.h> using namespace std;int main(){ int n; cin>>n; if(n%2==0 && n>50) cout<<"yes"; 展开全文
头像 HUAYI_SUN
发表于 2022-11-06 21:48:34
#include<iostream> using namespace std; int main() {     int a;     cin>>a; &n 展开全文
头像 易烊千玺圈外女友
发表于 2021-05-14 21:02:48
#include <stdio.h> #include <math.h> int main() { int a; scanf("%d",&a); if(a%2==0&&a>50) printf("yes"); 展开全文
头像 洪瑞祥
发表于 2020-02-24 20:26:46
include<bits/stdc++.h> using namespace std;int a;int main() { cin>>a; if(a>50&&a%2==0) cout<<"yes"; else 展开全文
头像 Codecodify
发表于 2023-04-21 17:11:58
#include <stdio.h> int main() { char* str = "no"; int num; scanf("%d", &num); if(num % 2 == 0 && num > 50) { 展开全文
头像 豁达的可乐在思考
发表于 2025-06-05 17:50:06
#include <stdio.h> int main() { int a, b; scanf("%d",&a); if(a>50 && a%2==0) { printf("ye 展开全文
头像 潍坊鲨鱼公园儿童大学
发表于 2021-01-23 16:31:42
#include <iostream> using namespace std; int main() { int num; cin >> num; if (num % 2 == 0 && num > 50) { 展开全文
头像 牛客517072235号
发表于 2020-04-21 19:01:49
#include<bits/stdc++.h> using namespace std; int main() { int a; cin>>a; if(a%2==0&&a>50) cout<<"yes"; el 展开全文
头像 吴桐宇
发表于 2023-01-29 14:11:45
不走寻常路的题解——不用判断写题解! #include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; string word[2]={"no","yes"}; c 展开全文
头像 Ayx03
发表于 2022-02-26 19:39:41
#include<cstdio> int main() { int a; scanf("%d",&a); if(!(a%2)&&a>50) printf("yes"); else printf("no"); }