zoj 2201 No Brainer
No Brainer
Time Limit: 2 Seconds Memory Limit: 65536 KB
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 <iostream>
#include <cstdio>
using namespace std;
int main(){
int x, y;
int n;
cin >> n;
while(n--){
cin >> x >> y;
if(x >= y)
cout << "MMM BRAINS" << endl;
else
cout << "NO BRAINS" << endl;
}
return ;
}
最新文章
- AC日记——中位数 洛谷 P1168
- AFNetwork源码解析
- Vmware玩mac os x分享
- jQuery.last() 函数
- RabbitMQ 工作队列
- 颤抖吧,骚年们,2016年末最牛逼的sql语句
- Spring事务传播、隔离等级
- redis监控状态
- objective-c自学总结(三)---面向对象的封装,继承与多态
- 转载-Linux下svn搭建配置流程
- ActionScript通用开发框架
- 巧妙实现缺角radiogroup控制多个fragment切换和滑动
- PHP函数详细剖析之rtrim函数 By ACReaper
- dsplib使用备忘
- 十二周项目三(4)——出口fibnacci第一序列20的数量
- PMP杂谈--PMP中一些easy忽视的地方
- @ApiModelProperty的用法
- 学习git之路--1
- day05流程控制while循环 流程控制for循环
- MySQL Replication 详解MySQL数据库设置主从同步的方法