hnu 12436 Force of thrust#水题
来源:互联网 发布:熊片数据库 安卓 编辑:程序博客网 时间:2024/05/16 17:57
/**解方程组,3个方程4个未知量,有spj的关键是可以确定一个每个未知数范围,水题水过*/#include <stdio.h>int main(){ const int LL = -100000000,RR = 100000000; int L,R,H,M,T,V,N; int fL,fR,fU,fD; scanf("%d%d%d",&T,&H,&V); M = (T + H + V) / 2; N = (T - H - V) / 2; L = LL; R = RR; if(LL + H > L) L = LL + H; if(RR + H < R) R = RR + H; if(N + H - RR > L) L = N + H - RR; if(N + H - LL < R) R = N + H - LL; if(M - RR > L) L = M - RR; if(M - LL < R) R = M - LL; fR = R; fL = fR - H; fD = N + H - fR; fU = M - fR; printf("%d %d %d %d\n",fL,fR,fU,fD); // printf("\n%d %d %d\n",fL + fR + fU + fD,fR - fL,fU - fD); return 0;}
- hnu 12436 Force of thrust#水题
- HNU 12844 Arrangement of Contest
- Use thrust reduce_by_key with raw pointers instead of device pointers
- HNU 13365 Circle of digits Input hou
- hnu 12432 Bottom of the sea#矩形交
- A Big Contest of Brute Force
- Integration of Google Drive into Force.com
- pwn工具箱之house of force
- the House of Force技术简单分析
- --force
- Task force to investigate safety of Facebook, MySpace
- midpoint,lobby,points of view,come into force, tearful,schedule
- Annan warns against use of more force in Syria
- Unity3d shader之SWAP Force Depth-of-Field Shader
- CUDA Thrust 规约求和
- 【CUDA开发】Thrust库
- STL和CUDA thrust
- HNU 11877
- 基于hadoop和hbase的youtube简单模拟源码分享
- MySQL的导入导出
- 直接在MFC中用Directshow Transform filter
- 给mac终端iTerm2配色
- 比较字符串
- hnu 12436 Force of thrust#水题
- 修改用户名和用户组名
- 对线性回归,logistic回归和一般回归的认识
- 单链表的C语言实现
- 判别模型、生成模型与朴素贝叶斯方法
- C# 的DllImport
- Tomcat6与NIO配置与修改
- Xilinx Zynq 操作系统的选择
- 28.整数的二进制表示中1 的个数