上一页 1 ··· 7 8 9 10 11 12 13 下一页
摘要: 删除文件 rm -f /var/abc.cpp 删除文件夹 rm -rf /var 查看安装的所有软件 dpkg -l 删除软件 sudo apt-get remove name 编辑 vim a.cpp or gedit a.cpp 编译 g++ a.cpp -o main 运行 ./main 阅读全文
posted @ 2018-05-23 14:44 czh~ 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 参考博客:https://www.byvoid.com/zhs/blog/c-int64 阅读全文
posted @ 2018-05-22 09:28 czh~ 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 题目地址:https://www.icpc.camp/contests/6CP5W4knRaIRgU 比赛的时候知道这题是用主席树+二分,可是当时没有学主席树,就连有模板都不敢套,因为代码实在是太长了。 题意:给你一些数字,要求你某些区间中找到一个h-index。 每次查找h-index复杂度不能超 阅读全文
posted @ 2018-05-16 18:01 czh~ 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 空间大小:n*lgn 复杂度:建树n*lgn 查询lgn 阅读全文
posted @ 2018-05-16 16:23 czh~ 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 参考博客:http://www.cnblogs.com/chendl111/p/6891770.html 题目链接:https://www.icpc.camp/contests/4mYguiUR8k0GKE Parentheses Input The input contains zero or m 阅读全文
posted @ 2018-05-11 18:31 czh~ 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.icpc.camp/contests/4mYguiUR8k0GKE Partial Sum Input The input contains zero or more test cases and is terminated by end-of-file. For ea 阅读全文
posted @ 2018-05-11 16:15 czh~ 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.icpc.camp/contests/4mYguiUR8k0GKE H. Highway The input contains zero or more test cases and is terminated by end-of-file. For each test 阅读全文
posted @ 2018-05-11 09:55 czh~ 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.nowcoder.com/acm/contest/105/G 题意: 给出公式, 题解: 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int mod=1000000007; 4 struct qx 5 阅读全文
posted @ 2018-05-05 08:12 czh~ 阅读(176) 评论(0) 推荐(0) 编辑
摘要: lis:最长递增子序列 复杂度:$O(nlgn)$ 1 #include<iostream> 2 #include<cstdio> 3 using namespace std; 4 int num[55],lis[55],res=0; 5 int solve(int x) 6 { 7 int a=1 阅读全文
posted @ 2018-05-02 14:40 czh~ 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 学习资料:http://www.cnblogs.com/SYCstudio/p/7194315.html 例题1:洛谷3375:https://www.luogu.org/problemnew/lists?name=3375 解: #include <cstdio> #include <iostre 阅读全文
posted @ 2018-04-26 17:32 czh~ 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 学习资料:https://blog.csdn.net/sentimental_dog/article/details/52002608 注意最后一行需要让res/a*(a-1) 因为a本身是可以模a的,但i*i<=a,所以没有枚举到a本身 例题一:http://codeforces.com/gym/ 阅读全文
posted @ 2018-04-24 08:54 czh~ 阅读(139) 评论(0) 推荐(0) 编辑
摘要: J Shopping 链接:http://codeforces.com/gym/101201 题意: 给出一系列商品的价格,下面再给出q个人浏览商品的起点到末尾,和他带上的钱,如果看到能买的商品就买最多个,输出每个人浏览后所剩余的钱 分析: 如果对于每个人都遍历一遍的话,最坏的情况超过了1e9。 由 阅读全文
posted @ 2018-04-23 14:04 czh~ 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 参赛时间:2018.04.21 13:30--16:30 link A 贪玩蓝月 题意 : 签到题 B 大吉大利 题意 :给出一个出生日期,比如:1999-09-09, 问:从出生那一天开始起,到今天2018-04-21为止(包括出生日期和今天),有多少天,年月日都不包含数字4? 题解 : 当时读题 阅读全文
posted @ 2018-04-21 19:07 czh~ 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 链接: 名人堂与代金券 在比赛中这题只得了2分,赛后发现原来strcmp函数并不是只返回-1,0,1三种,而是返回正数负数0 但是在我的电脑上一般就是返回前三种,只是用后面的三种更稳妥点 都怪我基础不扎实 阅读全文
posted @ 2018-04-02 15:20 czh~ 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 参考博客 How Many Answers Are Wrong Problem Description TT and FF are ... friends. Uh... very very good friends -________-bFF is a bad boy, he is always w 阅读全文
posted @ 2018-03-15 17:02 czh~ 阅读(239) 评论(1) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 下一页