2014年10月18日

【二分答案nlogn/标解O(n)】【UVA1121】Subsequence

摘要: A sequence of N positive integers (10 #include #include #include #include #include #include #include #include #define oo 0x13131313 u... 阅读全文

posted @ 2014-10-18 16:23 DDUPzy 阅读(265) 评论(0) 推荐(0) 编辑

【转换模型+扫描线】【UVA1398】Meteor

摘要: The famous Korean internet company nhn has provided an internet-based photo service which allows The famous Korean internet company users to direct... 阅读全文

posted @ 2014-10-18 15:02 DDUPzy 阅读(214) 评论(0) 推荐(0) 编辑

【错排问题】【HDU2048】神、上帝以及老天爷

摘要: 神、上帝以及老天爷 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Subm... 阅读全文

posted @ 2014-10-18 10:49 DDUPzy 阅读(167) 评论(0) 推荐(0) 编辑

【水题递归】【HDU2044】我大沙茶了

摘要: 有一只经过训练的蜜蜂只能爬向右侧相邻的蜂房,不能反向爬行。请编程计算蜜蜂从蜂房a爬到蜂房b的可能路线数。 其中,蜂房的结构如下所示。 Input 输入数据的第一行是一个整数N,表示测试实例的个数,然后是N 行数据,每行包含两个整数a和b(0 #include #inclu... 阅读全文

posted @ 2014-10-18 09:36 DDUPzy 阅读(195) 评论(0) 推荐(0) 编辑

【小知识+小细节】不断更新ing...

摘要: 1.printf printf("%.0lf",k) 输出的不是floor(k) 而是k四舍五入 。。才发现.xlf 都是四舍五入取x位 2.cin char buff[300] 读入数据 A B C D 用for(int i=1;i>buff[i]读入的话 读入的是ABCD ... 阅读全文

posted @ 2014-10-18 09:06 DDUPzy 阅读(136) 评论(0) 推荐(0) 编辑

【数学三角恒等变幻】【HDU2552】三足鼎立

摘要: Problem Description MCA山中人才辈出,洞悉外界战火纷纷,山中各路豪杰决定出山拯救百姓于水火,曾以题数扫全场的威士忌,曾经高数九十九的天外来客,曾以一剑铸十年的亦纷菲,歃血为盟,盘踞全国各个要塞(简称全国赛)遇敌杀敌,遇佛杀佛,终于击退辽军,暂时平定外患,三人位置也处于稳态。... 阅读全文

posted @ 2014-10-18 09:01 DDUPzy 阅读(211) 评论(0) 推荐(0) 编辑

导航