关闭

POJ 2027 No Brainer(水~)

274人阅读 评论(0) 收藏 举报
分类:

Description
输入x,y,如果x< y,输出NO BRAINS,否则输出MMM BRAINS
Input
第一行为用例组数,每组用例两个整数x和y
Output
对于每组用例,按题意输出
Sample Input
3
4 5
3 3
4 3
Sample Output
NO BRAINS
MMM BRAINS
MMM BRAINS
Solution
纯净水
Code

#include<stdio.h>
int main()
{
    int n,x,y;
    scanf("%d",&n);
    while(n>0)
    {
        scanf("%d%d",&x,&y);
        if(x>=y)
            printf("MMM BRAINS\n");
        else
            printf("NO BRAINS\n");
        n--;
    }
}
0
0
查看评论

OpenJudge/Poj 2027 No Brainer

1.链接地址: http://bailian.openjudge.cn/practice/2027 http://poj.org/problem?id=2027 2.题目: 总Time Limit:1000msMemory Limit:65536kBDescriptionZombies lo...
  • mobileliker163
  • mobileliker163
  • 2014-12-04 13:06
  • 169

POJ 2027 No Brainer

卖萌题目不解释= =#include <cstdio> using namespace std;int main(){ int n; scanf("%d",&n); while(n--){ int a,b; ...
  • qq_32817311
  • qq_32817311
  • 2016-01-16 10:57
  • 282

poj 2027 No Brainer

#include "iostream" using namespace std; int main() { int tc, eat, alive; cin >> tc; while (tc--) { cin >...
  • yzl_rex
  • yzl_rex
  • 2012-05-11 09:12
  • 264

POJ 2027 - No Brainer

DescriptionZombies love to eat brains. Yum.InputThe first line contains a single integer n indicating the number of data sets. The following n li...
  • Freenm
  • Freenm
  • 2017-02-20 19:38
  • 112

POJ 2027 No Brainer G++

#include #include using namespace std; int main() { int n; cin>>n; int x[n]; memset(x,0,sizeof(x)); int y[n]; memset(y,0,sizeof(y)); fo...
  • woniupengpeng
  • woniupengpeng
  • 2016-11-13 19:19
  • 73

POJ 2027 No Brainer

Problem Description Zombies love to eat brains. Yum.Input The first line contains a single integer n indicating the number of data sets. The followi...
  • qq_26525215
  • qq_26525215
  • 2015-10-26 19:07
  • 578

No Brainer - POJ 2027 水题

No Brainer Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 25220   Accepted: 16459 ...
  • u014733623
  • u014733623
  • 2014-06-03 19:28
  • 532

(Relax ST1.10)POJ 2027 No Brainer()

/* * POJ_2027.cpp * * Created on: 2013年11月26日 * Author: Administrator */ #include #include using namespace std; int main(){ int t; sc...
  • caihongshijie6
  • caihongshijie6
  • 2013-11-30 14:02
  • 1183

POJ2027:No Brainer

Description Zombies love to eat brains. Yum. Input The first line contains a single integer n indicating the number of data sets. The following ...
  • libin56842
  • libin56842
  • 2013-03-12 20:24
  • 1392

POJ 2027 No Brainer(我的水题之路——。。。)

No Brainer Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 18972   Accepted: 12710 ...
  • shiow1991
  • shiow1991
  • 2012-02-01 22:34
  • 479
    个人资料
    • 访问:556681次
    • 积分:24582
    • 等级:
    • 排名:第313名
    • 原创:1943篇
    • 转载:0篇
    • 译文:0篇
    • 评论:69条
    最新评论