POJ 2027 No Brainer
2015-10-26 19:07
344 查看
Problem Description
Zombies love to eat brains. Yum.
Input
The first line contains a single integer n indicating the number of data sets.
The following n lines each represent a data set. Each data set will be formatted according to the following description:
A single data set consists of a line “X Y”, where X is the number of brains the zombie eats and Y is the number of brains the zombie requires to stay alive.
Output
For each data set, there will be exactly one line of output. This line will be “MMM BRAINS” if the number of brains the zombie eats is greater than or equal to the number of brains the zombie requires to stay alive. Otherwise, the line will be “NO BRAINS”.
Sample Input
3
4 5
3 3
4 3
Sample Output
NO BRAINS
MMM BRAINS
MMM BRAINS
简单的比大小。。。
Zombies love to eat brains. Yum.
Input
The first line contains a single integer n indicating the number of data sets.
The following n lines each represent a data set. Each data set will be formatted according to the following description:
A single data set consists of a line “X Y”, where X is the number of brains the zombie eats and Y is the number of brains the zombie requires to stay alive.
Output
For each data set, there will be exactly one line of output. This line will be “MMM BRAINS” if the number of brains the zombie eats is greater than or equal to the number of brains the zombie requires to stay alive. Otherwise, the line will be “NO BRAINS”.
Sample Input
3
4 5
3 3
4 3
Sample Output
NO BRAINS
MMM BRAINS
MMM BRAINS
简单的比大小。。。
#include <stdio.h> #include <stdlib.h> int main(){ int c; scanf("%d",&c); while(c--){ int x,y; scanf("%d %d",&x,&y); if(x<y) printf("NO BRAINS\n"); else printf("MMM BRAINS\n"); } return 0; }
相关文章推荐
- 【PAT】1014. Waiting in Line (30)
- 图像滤镜艺术---Photoshop实现Instagram之Mayfair滤镜效果
- .NET 通过SmtpClient发送邮件 提示 4.7.1 service unavailable try again later 解决办法
- IO_COMPLETION Wait Type
- uva10780 - Again Prime? No time
- Could not obtain transaction-synchronized Session for current thread
- Windows 2008 R2 AD系列四:Domain User权限运行软件
- 使用行为树(Behavior Tree)实现游戏AI
- 程序设计师不是那么好当的 (真实案例一起动动脑)
- Daily Scrumming* 2015.10.25(Day 6)
- HDU 2476 String painter(区间DP)
- aixs2客户端调axis1服务
- Handler sendMessage 与 obtainMessage (sendToTarget)比较
- Claim 2
- POJ-3735-Training little cats-构造矩阵+矩阵快速幂+稀疏矩阵乘法优化
- RAID的后台初始化 Background Initialization
- Teradata Explain
- Timus Online Judge 1017 Staircases(记忆化搜索)
- ERROR ITMS-90049:"This bundle is invalid.The bundle identifier contains disallowed characters."
- 全局光照技术解析Global Illumination Explained