- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 Bestcoder Round 84 解题+补题记录
## 题目链接:### [A.Aaronson](http://acm.hdu.edu.cn/showproblem.php?pid=5747)### [B.Bellovin](http://acm.hdu.edu.cn/showproblem.php?pid=5748)### [C.Colmerauer](http://acm.hdu.edu.cn/showproblem.php?pid=...
2018-07-23 12:30:32
259
原创 codeforces 920c
#include #include #include using namespace std;const int maxn = 2e5 + 7;int nums[maxn];bool mark[maxn];int sums[maxn << 2];int n;int lowbit(int i) { return i & (-i);}void update(int o)
2018-02-05 23:59:32
434
原创 人生第一道 DP
#POJ 1163 题面:7 3 8 8 1 0 2 7 4 4 4 5 2 6 5(Figure 1)Figure 1 shows a number triangle. Write a program that calculates the highest sum of numbers passed on a route that starts a
2017-06-10 20:17:43
273
原创 C++ 数学小点
#求一个数的位数个数:# 直接对这个数字求log10+1 比如 #include #Include using namespace std; int main(){ int testnumber; cin>>testnumber; int counts=log10(testnumber)+1;
2017-06-10 20:10:13
278
原创 学习时遇到的头文件
智能指针(shared_ptr,unique_ptr)的头文件: //new,delete 不用头文件占位符(_1,_2 .......) : using namespace std::placeholders关联容器:map,multi_map set, multi_set unordered_map unordered_set bad_alloc,nothrow
2017-02-15 00:03:33
230
原创 将string类型的对象重新作为“输入”使用
#include#include#includeusing namespace std;int main(){string test,word;getline(cin,test);istringstream tem(test); //stream不能重新被赋值 即tem=test无法通过编译while(tem>>word) //重新将test作为流对象处理
2017-02-14 00:42:30
422
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅