此博客链接:https://www.cnblogs.com/ping2yingshi/p/12246707.html 1.平方和与立方和(21min) 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2007 Problem Description 给定 ...
分类:
其他好文 时间:
2020-01-31 22:46:41
阅读次数:
65
题目链接(点击直达) 问题 B: X额宝 时间限制: 1 Sec 内存限制: 256 MB提交: 46 解决: 33[状态] [提交] [命题人:外部导入] 题目描述 【理财有风险,投资需谨慎】Alice计划将自己的所有红包拿去投资。在粗略预测了该理财产品的各日收益后,Alice希望通过一次买卖获得 ...
分类:
其他好文 时间:
2020-01-30 23:14:30
阅读次数:
90
免费馅饼 数字三角形变形: AC_Code 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <string> 5 #include <cmath> 6 #include <algorithm> 7 u ...
分类:
其他好文 时间:
2020-01-30 22:38:59
阅读次数:
64
1.两点间距离(10min) 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2001 Problem Description 输入两点坐标(X1,Y1),(X2,Y2),计算并输出两点间的距离。 Input 输入数据有多组,每组占一行,由4个实数组成, ...
分类:
其他好文 时间:
2020-01-30 17:15:24
阅读次数:
49
lowbit(x) : 返回x的最后一位1 lowbit(100010) = 10 lowbit(11011000) = 1000 lowbit(x) = x&(-x) = x & (~x+1) : -x x的补码 = x 取反+1 给定一个长度为n的数列,请你求出数列中每个数的二进制表示中1的个数 ...
分类:
编程语言 时间:
2020-01-29 21:52:22
阅读次数:
53
题目链接:https://ac.nowcoder.com/acm/contest/3570/H #include <iostream> #include <algorithm> #include <string> #include <string.h> #include <vector> #incl ...
分类:
其他好文 时间:
2020-01-29 21:19:01
阅读次数:
132
http://acm.hdu.edu.cn/showproblem.php?pid=1541 题意:二维平面坐标上,给出n个星星的坐标,规定每个星星的左下方向的星星数量为该星星的等级。 统计1-n-1等级的数量。 解法:因为给出顺序的特殊性,可以用树状数组统计各星星的等级。 注意两点:1、该题为多组 ...
分类:
其他好文 时间:
2020-01-28 21:30:23
阅读次数:
69
Hey Guys I am back to my path of training, I am currently studying at UNSW and i am preparing to do ACM-ICPC in my uni life. I will be recording my tr ...
分类:
其他好文 时间:
2020-01-28 21:06:35
阅读次数:
69
题目链接:https://vjudge.net/problem/POJ-3436 Sample input 1 3 4 15 0 0 0 0 1 0 10 0 0 0 0 1 1 30 0 1 2 1 1 1 3 0 2 1 1 1 1 题目:P —— 一台电脑由p个零件组成 N —— 工厂有n台加 ...
分类:
其他好文 时间:
2020-01-28 20:56:06
阅读次数:
82
http://acm.hdu.edu.cn/showproblem.php?pid=1066 转自:https://blog.csdn.net/fengyu0556/article/details/5615129 hdu1066改进的思路和对于大数的处理:(转) 为了把0去掉,我们把所有的因数2和5 ...
分类:
其他好文 时间:
2020-01-28 19:24:40
阅读次数:
79