码迷,mamicode.com
首页 >  
搜索关键字:le ge lt gt eq ne    ( 256714个结果
杭电2001
#include #include #include using namespace std;int main(){ double x1,y1,x2,y2; double result; while (cin>>x1>>y1>>x2>>y2) { result ...
分类:其他好文   时间:2014-05-14 02:02:49    阅读次数:242
<iframe> 标签
1.所有浏览器都支持。2.iframe 元素会创建包含另外一个文档的内联框架(即行内框架)。
分类:其他好文   时间:2014-05-14 01:54:40    阅读次数:220
HYSBZ 2818 gcd
1 /** 2 大意: 给定整数N,1 gcd(x,y/2) = 1; 8 就是求比y/2小的所有与y/2 互质数的个数。。。y取值为2,4,6,8,10.。。。 9 所以siga(gcd(x,2)=2 + gcd(x,4) =2 + gcd( x,6) =2 + 。。。)= 10 ----->s....
分类:其他好文   时间:2014-05-13 22:38:58    阅读次数:266
二分查找
二分查找的一点思考二分查找算法实现#define LOCAL#include#include#includeint const MAX_N=21) { int mid=(ub+lb)/2; if(a[mid]>=k) { ub=m...
分类:其他好文   时间:2014-05-13 21:53:37    阅读次数:328
day6_python学习笔记_chapter8_条件,循环
1. if elif else 2. 条件表达式:三元操作符: smaller = x if x < y else y == if x < y : smaller =x else : smaller = y3. range(start, end, step=1) 4. xrange(): 当有一个很...
分类:编程语言   时间:2014-05-13 21:48:28    阅读次数:362
socket编程
一、在windows进行socket编程注意:必须添加#pragma comment(lib,"ws2_32.lib"),该库。或者(vs 2010)在:项目>属性->配置属性->链接器->输入 ws2_32.lib:附加依赖项中加入要链接的库即可。ws2_32.lib库对应ws2_32.dll,提...
分类:其他好文   时间:2014-05-13 21:42:16    阅读次数:374
安卓小常识(2)
1)创建一个android项目填写项目信息2)创建一个新Activity右键点击Eclipse左边(默认)你要加入Activity的包,比如,我的包是com.INdroid.layout。然后选New->Class,输入类名后(注意首字母大写),在Superclass的Browse那里点击。最后在C...
分类:移动开发   时间:2014-05-13 20:56:51    阅读次数:473
杭电2007
1 #include 2 using namespace std; 3 4 int ji(int); 5 int ou(int); 6 int main() 7 { 8 int m,n,x,y; 9 while (cin >> m >> n)10 {11 ...
分类:其他好文   时间:2014-05-13 20:24:09    阅读次数:255
poj 2007 Scrambled Polygon 极角排序
1 /** 2 极角排序输出,,, 3 主要atan2(y,x) 容易失精度,,用 4 bool cmp(point a,point b){ 5 if(cross(a-tmp,b-tmp)>0) 6 return 1; 7 if(cross(a-tmp,b-tmp)...
分类:其他好文   时间:2014-05-13 20:05:34    阅读次数:242
杭电 2004
1 #include 2 using namespace std; 3 char grand(int); 4 int main() 5 { 6 int n; 7 while (cin>> n) 8 { 9 if (n>100 || n<0)10 ...
分类:其他好文   时间:2014-05-13 19:58:21    阅读次数:327
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!