ZOJ 3333Guess the Price(模拟)
来源:互联网 发布:舰娘 知乎 编辑:程序博客网 时间:2024/06/14 03:27
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3333
比大小
#include<iostream>#include<cstdio>#include<set>#include<string>#include<string.h>#include<cstring>#include<vector>#include<map>#include<queue>#include<stack>#include<cctype>#include<algorithm>#include<sstream>#include<utility>#include<cmath>#define mt(a) memset(a,0,sizeof (a))#define fl(a,b,c) fill(a,b,c)#define SWAP(a,b,t) (t=a,a=b,b=t)#define inf 1000000000+7using namespace std;int main(){int T;cin >> T;while (T--){int p, p1, p2;cin >> p >> p1 >> p2;char flag = ((abs(p - p1) > abs(p - p2)) ? 'B' : 'A');printf("%c\n", flag);}return 0;}
0 0
- ZOJ 3333Guess the Price(模拟)
- ZOJ 3333 Guess the price
- ZOJ 3333 Guess the Price
- ZOJ 省赛题 Guess the Price
- ZOJ-3333-Guess the Price【7th浙江省赛】
- ZOJ 3333 Guess the Price 3323 Somali Pirates 3322 Who is Older?(超级水)
- ZOJ3333-Guess the Price
- 周赛问题 福州 L - Guess the Price
- ZOJ 3202 Second-price Auction (模拟)
- 2014ACM集训13级PK赛2-Guess the Price
- zoj 1503 - One Person "The Price is Right"
- zoj 1503 One Person "The Price is Right"
- UVA 11995I Can Guess the Data Structure!【模拟】
- 【模拟+数据结构】UVA 11995 I Can Guess the Data Structure!
- CodeForces - 618B Guess the Permutation (模拟)
- UVA11995 I Can Guess the Data Structure!(数据结构,模拟)
- UVA: I Can Guess the Data Structure!(stl模拟)
- zoj Defuse the Bomb (模拟)
- Java Reflection(七):私有变量和私有方法
- Java内存模型
- Can't open file /usr/share/vim/vim73/syntax/syntax.vim
- Tomcat集群之Session复制配置
- ArcEngine数据导入经验(大数据量)
- ZOJ 3333Guess the Price(模拟)
- 随便写写
- 【cocos3.x+tilemap】制作rpg小游戏(二)遮挡与碰撞
- center os 6.5 vnc的安装 已经window和ubuntu客户端的使用
- iOS-NSCoding归档
- NSHashTable 和 NSMapTable的学习
- 自定义ProgressDialog加载图片
- linux 用户与组
- os x + virtualenv + openCV2 + python2.7 环境打造