码迷,mamicode.com
首页 >  
搜索关键字:expr bc    ( 3993个结果
switch使用时有哪些注意事项
switch语句用于多分支选择,在使用switch(expr)的时候,expr只能是一个枚举常量(内部也是由整型或字符类型实现)或一个整数表达式,其中整数表达式可以是基本类型int或其对应的包装类Integer,当然也包括不同的长度整型....
分类:其他好文   时间:2014-07-31 23:58:00    阅读次数:709
POJ 1673
可以证明O是三角形ABC的垂心。作图辅助线,一个很重要的技巧是延长中线等中线。可以证明三角形DNA全等于ABC。然后通过角度变换容易证明AQ垂直于BC。#include #include #include using namespace std;struct point{ double x,y;}A...
分类:其他好文   时间:2014-07-29 17:15:32    阅读次数:264
hdu1179Ollivanders: Makers of Fine Wands since 382 BC. (二分最大匹配)
Problem Description In Diagon Alley ,there is only one Wand-seller,peeling gold letters over the door read Ollivanders: Makers of Fine Wands since 382 BC.A single wand lay on a faded purple cushion i...
分类:其他好文   时间:2014-07-29 14:59:59    阅读次数:242
HDU 4883 (BC#2 1001题)TIANKENG’s restaurant(水)
题目地址:HDU 4883 唉。。最近得了一种惯性。。刚学了什么就碰到个类似的就想用刚学的算法。。。原来这题如此简单。。当时真是想多了。。。。 只要在需要变化的点上设置一个值,是增多少还是减多少。然后当遍历过来的时候加上或减去这个值就行了。。。 代码如下: #include #include #include #include #include #include #includ...
分类:其他好文   时间:2014-07-29 14:26:48    阅读次数:195
python技巧
列表解析语法:[exprforiter_variniterable][exprforiter_variniterableifcond_expr]如果是有类的情况下,可以使用classPerson(object):9def__init__(self,name,age=0):10self.name=na...
分类:编程语言   时间:2014-07-29 12:12:06    阅读次数:254
KMP算法细讲(豁然开朗)
一.KMP算法是如何针对传统算法修改的用模式串P去匹配字符串S,在i=6,j=4时发生失配:--------------------------------------------------------------------- i=6S: a b a bc a ...
分类:其他好文   时间:2014-07-27 21:27:05    阅读次数:220
Codeforces 344B Simple Molecules
#include using namespace std; int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); int ab=a+b-c,bc=b+c-a,ac=a+c-b; if(ab>=0&&bc>=0&&ac>=0&&ab%2==0&&bc%2==0&&ac%2==0) printf("%d %d...
分类:其他好文   时间:2014-07-27 11:14:02    阅读次数:194
利用range() 控制循环
s = ['a','b','c','d','e']for i in range(len(s)):... if i < len(s)-1:... print s[i]abcdfor i in range(len(s)):... if i < len(s)-1:... print s[i+1]...bc...
分类:其他好文   时间:2014-07-25 14:20:51    阅读次数:198
查看Mysql表分区语句
SELECT partition_name part, partition_expression expr, partition_description descr, table_rows FROM INFORMATION_SCHEMA.partitions WHERE...
分类:数据库   时间:2014-07-23 20:20:55    阅读次数:258
《以SAP为参照评估OpenERP》摘要
《以SAP为参照评估OpenERP》摘要:http://www.openstone.cn/blogs/%E3%80%8A%E4%BB%A5sap%E4%B8%BA%E5%8F%82%E7%85%A7%E8%AF%84%E4%BC%B0openerp%E3%80%8B%E6%91%98%E8%A6%8...
分类:其他好文   时间:2014-07-23 15:10:06    阅读次数:164
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!