2018年7月27日

摘要: You are given three integers a, b and x. Your task is to construct a binary string s of length n=a+b such that there are exactly a zer... 阅读全文
posted @ 2018-07-27 09:26 ~~晨阳 阅读(126) 评论(0) 推荐(0) 编辑

2018年7月26日

摘要: 大佬讲解: https://blog.csdn.net/pengwill97/article/details/77200372 大佬模板: https://blog.csdn.net/pengwill97/article/details/77282328 ... 阅读全文
posted @ 2018-07-26 15:29 ~~晨阳 阅读(149) 评论(0) 推荐(0) 编辑

2018年7月25日

摘要: Train Problem IIAs we all know the Train Problem I, the boss of the Ignatius Train Statio... 阅读全文
posted @ 2018-07-25 20:01 ~~晨阳 阅读(153) 评论(0) 推荐(0) 编辑
 
摘要: 编辑部分:按住Ctrl,滚动鼠标滚轮,放大或缩小字体。Ctrl+Shift+C注释掉当前行或选中部分,Ctrl+Shift+X解除注释。Ctrl+T 和上一行交换位置。按住Ctrl再拖动选中内容,则将这部分内容在新位置复制一遍。按住Alt再方向键上下移动,则将这行上下... 阅读全文
posted @ 2018-07-25 19:41 ~~晨阳 阅读(612) 评论(0) 推荐(0) 编辑
 
摘要: 输入N求N的阶乘的10进制表示的长度。例如6! = 720,长度为3。Input第1行:一个数T,表示后面用作输入测试的数的数量。(1 #include #include #include #include #include #define PI acos(-1)#d... 阅读全文
posted @ 2018-07-25 16:54 ~~晨阳 阅读(187) 评论(0) 推荐(0) 编辑

2018年7月24日

摘要: 连续的子序列: Max SumGiven a sequence a[1],a[2]... 阅读全文
posted @ 2018-07-24 22:02 ~~晨阳 阅读(111) 评论(0) 推荐(0) 编辑
 
摘要: 容斥原理 :点击打开链接莫比乌斯反演: https://blog.csdn.net/litble/article/details/72804050 阅读全文
posted @ 2018-07-24 16:46 ~~晨阳 阅读(90) 评论(0) 推荐(0) 编辑
 
摘要: 某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统.但是这种导弹拦截系统有一个缺陷:虽然它的第一发炮弹能够到达任意的高度,但是以后每一发炮弹都不能超过前一发的高度.某天,雷达捕捉到敌国的导弹来袭.由于该系统还在试用阶段,所以只有一套系统,因此有可能不能拦截所有的导弹.... 阅读全文
posted @ 2018-07-24 16:10 ~~晨阳 阅读(74) 评论(0) 推荐(0) 编辑
 
摘要: 1.关于setC++ STL 之所以得到广泛的赞誉,也被很多人使用,不只是提供了像vector, string, list等方便的容器,更重要的是STL封装了许多复杂的数据结构算法和大量常用数据结构操作。vector封装数组,list封装了链表,map和set封装了二... 阅读全文
posted @ 2018-07-24 15:19 ~~晨阳 阅读(886) 评论(0) 推荐(0) 编辑
 
摘要: 转自 https://blog.csdn.net/ZCY19990813/article/details/81181505一:环排列把一个m个元素的环在m个不同的位置拆开记得到m个不同的线排列。由于n个不同元素中任取m个元素的排列方法为P(n,m)种,所以n个不同... 阅读全文
posted @ 2018-07-24 14:42 ~~晨阳 阅读(421) 评论(0) 推荐(0) 编辑