http://bbs.chinaunix.net/thread-1736485-1-1.html文件中字符串的查找http://www.cnpythoner.com/wiki/string.html顺序输出字典,思路,转换成列表处理http://blog.chinaunix.net/uid-1025...
分类:
其他 时间:
2016-01-24 11:36:23
收藏:
0 评论:
0 赞:
0 阅读:
246
@echo offrem 替换字符串set a=www.baidu.comset a=%a:.=-%echo %a%rem 截取字符串set a=www.baidu.comset a=%a:~4,4%set a=www.baidu.comset a=%a:~-5%echo %a%set a=www....
分类:
其他 时间:
2016-01-24 11:36:03
收藏:
0 评论:
0 赞:
0 阅读:
205
用kruskal算法,利用w[i]给r[i]间接排序,从而r[i]可以按照边大小保存序号,同时要判断是否在一个集合里面#include #include #include using namespace std;#define sf scanf#define pf printf#define deb...
分类:
其他 时间:
2016-01-24 11:35:53
收藏:
0 评论:
0 赞:
0 阅读:
111
环境:win7_x64旗舰版、git-v2.5.1.windows.1、git-gui-v0.2.0.GITGUI一、新建仓库1.点击"Create New Repository"2. 输入仓库路径(C:\text,text目录必须是不存在的,点击"Create"按钮后,git会创建目录)二、修改文...
分类:
其他 时间:
2016-01-24 11:35:43
收藏:
0 评论:
0 赞:
0 阅读:
362
1 #include 2 #include 3 using namespace std; 4 int main() 5 { 6 long long t,n; 7 cin >> t; 8 while(t--){ 9 cin >> n;10 do...
分类:
其他 时间:
2016-01-24 11:35:33
收藏:
0 评论:
0 赞:
0 阅读:
189
试题描述试计算在区间1到n的所有整数中,数字x(0≤x≤9)共出现了多少次?例如,在1到11中,即在1、2、3、4、5、6、7、8、9、10、11 中,数字1出现了4次。输入输入共1行,包含2个整数n、x,之间用一个空格隔开输出输出共1行,包含一个整数,表示x出现的次数。输入示例111输出示例4其他...
分类:
其他 时间:
2016-01-24 11:35:23
收藏:
0 评论:
0 赞:
0 阅读:
248
这道题多了一个检查是否包含所有元素可以设一个cnt表示集合里的数量,再与外面比较#include #include #include using namespace std;#define sf scanf#define pf printf#define debug printf("!\n")#de...
分类:
其他 时间:
2016-01-24 11:34:53
收藏:
0 评论:
0 赞:
0 阅读:
110
枚举两个点作为光线,计算最远的点即可可以把管子一段一段分开来看,计算光线是否在每一段管子内,某一段内出界了,那么算交点坐标注意判断光线不能进入第一个管子#include#include#include#include#include#include#includeusing namespace st...
分类:
其他 时间:
2016-01-24 11:34:43
收藏:
0 评论:
0 赞:
0 阅读:
82
1:无返回结果的页面跳转1>新建一个Activity文件如MainActivity;重写onCreat方法;设置xml文件关联,setContentView(R.layout.activity_main);2>新建xml文件如activity_main.xml;在里面设置控件3>新建一个Activi...
分类:
其他 时间:
2016-01-24 11:34:23
收藏:
0 评论:
0 赞:
0 阅读:
261
寻找字符串中第一个仅仅出现一次打字符代码例如以下:#include #include using namespace std;char findfirstoncechar(string &str){ int arr[255] = {0}; int i; for (i = 0; i<str.size(...
分类:
其他 时间:
2016-01-24 11:33:54
收藏:
0 评论:
0 赞:
0 阅读:
109
matalb具有灵活的图像处理,代码编写起来简洁而高效。而OpenCV具有很多成熟的计算机视觉算法,能够处理很多实时的识别处理等问题,而且代码运行起来效率很高。所以如何结合两者之间的优点,是让很多学术人员、及工程开发者趋之若鹜的事情。本例子,就是为了测试将opencv处理的结果存储入matlab能够...
分类:
其他 时间:
2016-01-24 11:33:44
收藏:
0 评论:
0 赞:
0 阅读:
306
Party LampsIOI 98To brighten up the gala dinner of the IOI'98 we have a set ofN(10 =0), i.e., 1,4,7,...A counter C records the total number of button ...
分类:
其他 时间:
2016-01-24 11:33:33
收藏:
0 评论:
0 赞:
0 阅读:
114
codevs 3115,3116,3117。主要是对于高精度的练习,还不会的同学可以学习下。//加法#include#includestruct hp{ int w[260];};hp jia(hp a,hp b){ hp c; c.w[0]=a.w[0]>b.w[0]?a.w[0]+1:b....
分类:
其他 时间:
2016-01-24 11:33:24
收藏:
0 评论:
0 赞:
0 阅读:
192
题意:有两个点喷水,有很多个点有花,给出坐标。求使得每个花都可以被喷到,两个喷水的半径的平方的和最小是多少。思路:枚举其中一个喷水的最大半径。坑:这题我贪心的思路有很大问题。一开始也是想这样枚举的,但是思路超级混乱,按照r2进行贪心但是最后想想想法很荒谬。顺序和题意一定要搞的很透彻才可以==#inc...
分类:
其他 时间:
2016-01-24 11:33:03
收藏:
0 评论:
0 赞:
0 阅读:
126
1.并排和下拉选项 配置数据源 主机名 ...
分类:
其他 时间:
2016-01-24 11:32:43
收藏:
0 评论:
0 赞:
0 阅读:
260
Controlling CompaniesSome companies are partial owners of other companies because they have acquired part of their total shares of stock. For example,...
分类:
其他 时间:
2016-01-24 11:32:33
收藏:
0 评论:
0 赞:
0 阅读:
222
TPLink 路由器备份文件bin文件测试路由器 WR885,备份文件加密方式DES,密钥:478DA50BF9E3D2CFlinux端:openssl enc -d -des-ecb -nopad -K 478DA50BF9E3D2CF -in config.bin python:python默认...
分类:
其他 时间:
2016-01-24 11:31:56
收藏:
0 评论:
0 赞:
0 阅读:
959
事件就是当对象或类状态发生改变时,对象或类发出的信息或通知。发出信息的对象或类称为"事件源",对事件进行处理的方法称为"接收者",通常事件源在发出状态改变信息时,它并不知道由哪个事件接收者来处理.这就需要一种管理机制来协调事件源和接收者,C++中通过函数指针来完成的.在C#中事件使用委托来为触发时将...
分类:
其他 时间:
2016-01-24 11:31:43
收藏:
0 评论:
0 赞:
0 阅读:
68
Longest PrefixIOI'96The structure of some biological objects is represented by the sequence of their constituents, where each part is denoted by an up...
分类:
其他 时间:
2016-01-24 11:31:03
收藏:
0 评论:
0 赞:
0 阅读:
155
Most routers allow to save and restore configuration from files. This is cool because you can edit the configuration file and upload to the router aga...
分类:
其他 时间:
2016-01-24 11:30:53
收藏:
0 评论:
0 赞:
0 阅读:
1320