上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页
摘要: #include<iostream> using namespace std; int main() { cout<<endl; endl(cout); getchar(); return 0; } #include<iostream> using namespace std; int main() 阅读全文
posted @ 2018-10-13 18:58 CheeseIce 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 转至:https://blog.csdn.net/CallMeQiuqiuqiu/article/details/54743459 http://www.w3school.com.cn/cssref/css_colors_legal.asp 在CSS中怎样修改文字颜色呢? 1.通过英文单词来赋值 2 阅读全文
posted @ 2018-10-12 13:17 CheeseIce 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 地址:https://www.w3schools.com/css/css_units.asp https://www.cnblogs.com/xiaohuochai/p/5485683.html em rem 阅读全文
posted @ 2018-10-11 13:20 CheeseIce 阅读(185) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; void bubblesort(int A[],int n) { for(bool sorted=false;sorted=!sorted;n--) for(int i=1;iA[i]) { swap(A[i-1],... 阅读全文
posted @ 2018-10-09 21:42 CheeseIce 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 题目:http://acm.hdu.edu.cn/showproblem.php?pid=2049 思路: 正难则反。可以反着来求:选对的情况。利用排列组合公式: 然后再求剩下的都选错有多少情况。递推寻找规律: code: 阅读全文
posted @ 2018-10-02 22:22 CheeseIce 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 题目:http://acm.hdu.edu.cn/showproblem.php?pid=2046 思维:与之前有两道题目相似,n可以由n-1和n-2递推过来。f(n)=f(n-1)*1+f(n-2)*1. 也可以在草稿纸上直接画,寻找各项之间的规律。规律很明显。 code: 阅读全文
posted @ 2018-10-02 21:24 CheeseIce 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 题目:http://acm.hdu.edu.cn/showproblem.php?pid=1290 思路:先在草稿纸上画,找规律。 规律: a[n],b[n],c[n],分别代表一条直线分成的段数,二维的块数,三位的块数。 先考虑二维(直线)的情况,n个点把直线分成的份数a[n]=n+1。二维(平面 阅读全文
posted @ 2018-10-01 22:58 CheeseIce 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 题目:http://acm.hdu.edu.cn/showproblem.php?pid=2017 思路:思考字符串和数字的本质区别是什么。 今天先是试着做了一个完全背包的题目,发现自己还是不会做,弄了几个小时还是不会,眼看就要到11点,于是就挑了一个简单的题目来放松哈心情。 结论就是,自己的基础太 阅读全文
posted @ 2018-09-29 23:03 CheeseIce 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 题目:http://acm.hdu.edu.cn/showproblem.php?pid=1171 题意:把商品分成两半,如不能均分,尽可能的让两个数相接近。输出结果:两个数字a,b且a>=b。 思路:01背包。 先把商品的总价值计算出来,sum/2做为背包的容量。 然后讲同种商品的多件,存储为不同 阅读全文
posted @ 2018-09-28 22:04 CheeseIce 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 题目:http://acm.hdu.edu.cn/showproblem.php?pid=2045 思路:明显是找出递归的方程。用高中的排列祝贺算 Code: 阅读全文
posted @ 2018-09-27 21:16 CheeseIce 阅读(277) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页