随笔分类 -  -----其他算法 1.二分

摘要:题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=2446 题意:题面很大,有用的就那么几句,意思就是用自然数来堆它画的那个金字塔,比如第一个金字塔的第一个数为1,第二个金字塔的第一个数为2,第三个金字塔的第一个数为5……。 题解:可以打表,最多有381W 阅读全文
posted @ 2016-05-12 09:07 bin_gege 阅读(200) 评论(0) 推荐(0)
摘要:题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=2141 题意:叫你找三个数,使得这三个数的值为X,如果找得到就输出YES否则输出NO,注意两个32位数相加会爆int 1 #include<cstdio> 2 #include<algorithm> 3 阅读全文
posted @ 2016-05-11 22:29 bin_gege 阅读(121) 评论(0) 推荐(0)
摘要:题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=2899 题意:让你解方程 题解:对于只有一个凸或者没有凸的图像,可以直接上三分解决、 1 #include<cstdio> 2 #include<cmath> 3 double eps=1e-7; 4 i 阅读全文
posted @ 2016-05-11 20:46 bin_gege 阅读(195) 评论(0) 推荐(0)
摘要:D2. Magic Powder - 2 time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output The term of this pro 阅读全文
posted @ 2016-05-06 18:54 bin_gege 阅读(142) 评论(0) 推荐(0)