水题,注意数据范围即可#include #include #include using
namespace std;typedef pair Point;int main(){ int x,y; cin >> x >>y;
Point a,b; if((x>0 && y > ...
分类:
其他好文 时间:
2014-06-16 10:47:47
阅读次数:
226
double interval = (double)1 / (endIndex -
startIndex); interval = Math.Round(interval , 2);
分类:
其他好文 时间:
2014-06-16 06:57:42
阅读次数:
163
从大到小遍历一遍,每次取M个元素,然后求得最小的floor即可 int minimum(int M, vector heights) { sort(heights.begin(),heights.end()); int minFloor = 10000; ...
分类:
其他好文 时间:
2014-06-15 21:48:45
阅读次数:
229
/*abs(n)返回参数n所指定数值的绝对值(如果参数值为NULL,则返回结果为NULL,下同)。*/--SELECT ABS(-3.14) FROM DUAL; --3.14/*round(n[, m])返回对参数n进行四舍五入处理后的结果。参数n可以是任意数字、m则必须为整数。如果省略参数m,....
分类:
数据库 时间:
2014-06-15 16:48:23
阅读次数:
300
水题#include #include #include using namespace std;int main(){ vector a(4); cin >> a[0] >> a[1]>>a[2]>>a[3]; string str; cin >> str; int res = 0; for(in...
分类:
其他好文 时间:
2014-06-14 23:00:14
阅读次数:
249
模拟即可#include #include #include using namespace std;int main(){ vector a(5); for(int i = 0; i > g[i][j]; } } int maxHappiness = 0; ...
分类:
其他好文 时间:
2014-06-14 22:57:10
阅读次数:
207
screen 尺寸为a:bvideo 尺寸为 c:d如果a == c 则 面积比为
cd/ab=ad/cb (ad c/d,则ad/bd > cb/db 则(ad > cb) screen尺寸可为 ad:bd, video的尺寸可为
cb:db 面积比为:cb*db/ad*bd = cb/ad...
分类:
其他好文 时间:
2014-06-13 17:11:40
阅读次数:
236
比赛链接:http://vjudge.net/contest/view.action?cid=47644#overview比赛来源:2012
ACM/ICPC Asia Regional Tianjin Online果然我还是很受外界影响啊~~~这场打得好烂~~~155/175Problem
AHD...