- 博客(14)
- 资源 (1)
- 收藏
- 关注
转载 codeblocks快捷键
==日常编辑==• 按住Ctrl滚滚轮,代码的字体会随你心意变大变小。• 在编辑区按住右键可拖动代码,省去拉(尤其是横向)滚动条之麻烦;相关设置:Mouse Drag Scrolling。• Ctrl+D可复制当前行或选中块。• Ctrl+Shift+C注释掉当前行或选中块,Ctrl+Shift+X则解除注释。• Tab缩进当前行或选中块,Shift+Tab减少缩进。
2013-09-27 00:24:36 693
转载 C++记录某段程序的运行时间
我的模板:#include #include #include using namespace std;int main(){ clock_t start,finish; double total_time; start=clock(); //the place to insert the program fragme
2013-09-26 21:19:36 2370
转载 C++产生随机数
C语言/C++怎样产生随机数:这里要用到的是rand()函数, srand()函数,C语言/C++里没有自带的random(int number)函数。(1) 如果你只要产生随机数而不需要设定范围的话,你只要用rand()就可以了:rand()会返回一随机数值, 范围在0至RAND_MAX 间。RAND_MAX定义在stdlib.h, 其值为2147483647。例如:#include
2013-09-26 21:15:02 1066
原创 ural1100--Final Standings--数据结构--结构体排序
ORZ翁教把URAL的数据结构刷完了,于是也尝试着开始刷URAL的数据结构。。。。FIGHTTING!很囧的在URAL的第一跑就WRONG了,还是跪给了数据结构的第一题。诶,好讨厌= =#。。。以下是题目。。。。。。1100. Final StandingsTime limit: 1.0 secondMemory limit:
2013-09-21 10:46:00 1044
原创 hdu1006--Tick and Tick--时钟角度问题+区间求并求交
Tick and TickTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7811 Accepted Submission(s): 2154Problem DescriptionThe three ha
2013-09-20 16:00:24 1436
原创 poj1442--Black Box--优先队列维护堆&&multiset维护堆
Black BoxTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 6002 Accepted: 2420DescriptionOur Black Box represents a primitive database. It can save an int
2013-09-13 15:19:31 990
原创 poj3903--Stock Exchange--nlogn贪心求最长上升子序列
Stock ExchangeTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 3086 Accepted: 1136DescriptionThe world financial crisis is quite a subject. Some people a
2013-09-12 19:47:24 982
原创 codeforces227B--Effective Approach--想法题
B. Effective Approachtime limit per test2 seconds memory limit per test256 megabytesinputstandard inputoutputstandard outputOnce at a team training Vasya, Petya and Sasha
2013-09-12 19:08:12 946
原创 poj2528--Mayor's posters--离散化&查询区间的不同元素个数
Mayor's postersTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 35431 Accepted: 10286DescriptionThe citizens of Bytetown, AB, could not stand that the ca
2013-09-11 22:35:47 749
原创 Codeforces230C--Shifts--想法题--类似palindrome
C. Shiftstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a table consisting of n rows and m
2013-09-10 22:58:48 962 2
原创 HDU 4611--Balls Rearrangement--数论找出循环节+跳跃求值
Balls RearrangementTime Limit: 9000/3000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1984 Accepted Submission(s): 732Problem Description Bob h
2013-09-09 14:44:26 858
原创 HDU 4135&HDU 4407--容斥原理--质因子分解
HDU4135 Co-primeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1032 Accepted Submission(s): 375Problem DescriptionGiven a
2013-09-08 20:09:48 1240
原创 hdu4288--Coder--线段树--离线处理+离散化+想法!
做过的线段树做到现在收获最大的一题~~~以后还要多做几遍~~~学会了左加右减的位移思想,学会了离线处理数据,学会了用lower_bound或者upper_bound寻找hash中某个数值所在的数组下标~~整道题的思路和注释都写在代码里了。//HDU 4288 线段树离线+离散化#include #include #inc
2013-09-05 22:45:56 784
原创 hdu4278&poj2719--Faulty Odometer--进制转换
先说下poj2719吧,题目链接:http://poj.org/problem?id=2719第一次做进制转换,没做过,非常二货地模拟了好久。实际上非常简单,就是一个9进制的数转成一个10进制的数。以下是代码:#include using namespace std;char a[20];int ans;void cal(int n){ int cnt=
2013-09-01 22:12:18 983
Telelogic TAU 4.3破解版
2014-12-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人