首页
学习
活动
专区
工具
TVP
发布

*坤的Blog

专栏作者
198
文章
206638
阅读量
37
订阅数
大量ECAgent报错
电脑的突然变卡,检查任务管理器发现了大量的ECAgent的进程,而且不断的产生中,很是苦恼!
@坤的
2020-05-12
3.3K0
文件解压缩失败
之前出过一个问题,伙伴发过来的文件莫名打不开,重发依旧,后面查询之后,才弄明白真正的原因在压缩软件上面。
@坤的
2019-05-24
2.3K0
数字递归输出
---- layout: default title: 数字递归输出 category: C/C++ comments: true --- 数字递归输出 一个朋友遇到一个不是很熟悉的问题,对于新手或许有些帮助,没有其他检验操作,只是递归. 详情 题目1要求将一个正整数按序输出,要去使用递归. eg.input 12345 output 1-2-3-4-5 #include <stdio.h> #include <stdlib.h> #include <math.h> int fn
@坤的
2018-06-04
7200
hdu1074
#include <iostream> #include <string> #include <cstring> #include <stack> #include <algorithm> using namespace std; const int inf = 1<<30; struct node { string name; int dead,cost; } a[50]; struct kode { int tim
@坤的
2018-06-04
4230
hdu1075
#include <map> #include <string.h> #include <iostream> using namespace std; #include<stdio.h> int main() { char s1[20],s2[20],s[3005],s3[20],c,a[100]; int k=0,i,j; map<string,string>v; cin>>s; while(cin>>s1) {
@坤的
2018-06-04
3620
hdu1080
#include<iostream> using namespace std; char s1[105],s2[105]; int val[5][5]={ {5,-1,-2,-1,-3}, {-1,5,-3,-2,-4}, {-2,-3,5,-2,-2}, {-1,-2,-2,5,-1}, {-3,-4,-2,-1,-1000000}}; int dp[105][105]; //dp[i][j]表示字符串i和j的最长公
@坤的
2018-06-04
3990
hdu1082
#include<iostream> #include<stack> #include<string> #include<cctype> using namespace std; #define N 30 struct node { char m; int r,c; } a[N]; string s; bool process(int& ans) { int len,i; stack<node> sta;
@坤的
2018-06-04
3630
hdu1058
#include<iostream> #include<string> using namespace std; int const N = 4; int map[N] = {2,3,5,7}; int findMin(int arr[], bool flag[], int len) { int min = arr[0]; int i=0; for(i=0; i<len; i++) if(arr[i] < min)
@坤的
2018-06-04
2100
hdu1047
#include<stdio.h> #include<string> #include<iostream> using namespace std; //高精度加法 //只能是两个正数相加 string add(string str1,string str2)//高精度加法 { string str; int len1=str1.length(); int len2=str2.length(); //前面补0,弄成长度相同 if(len1<len2) {
@坤的
2018-06-04
3440
hdu1048
#include<stdio.h> #include<string.h> #include<iostream> using namespace std; int main() { //freopen("test.in","r",stdin); //freopen("test.out","w",stdout); char a[27]="VWXYZABCDEFGHIJKLMNOPQRSTU"; char str[1000]; int i,len; while(
@坤的
2018-06-04
4090
hdu1041
#include <iostream> #include <string> using namespace std; const int SIZE = 1001; const int BASE = 10; string result[SIZE]; string two("2"); void initial() { int mcarry, temp, carry; int k; string tempResult; result
@坤的
2018-06-04
3070
hdu1043
#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<queue> #include<vector> #include<cmath> #include<map> #include<string> #define inf 1<<30 #define eps 1e-7 #define LD long double #define LL long long #define maxn 1000000005
@坤的
2018-06-04
4190
hdu1025
#include<stdio.h> const int MAXN=500010; int a[MAXN],b[MAXN]; //用二分查找的方法找到一个位置,使得num>b[i-1] 并且num<b[i],并用num代替b[i] int Search(int num,int low,int high) { int mid; while(low<=high) { mid=(low+high)/2; if(num>=b[mid]) low=mid+1;
@坤的
2018-06-04
3910
hdu1015
#include <stdio.h> #include <string.h> #include <stdlib.h> int cmp(void* a, void* b) { return *((char*)a)-*((char*)b); } void solve(int t, char* dic) { int v,w,x,y,z,l; int p[12]; l = strlen(dic); qsort((void*)dic,l,sizeof(char),cmp); for(v=0;v<l;v+
@坤的
2018-06-04
4340
hdu1011
/*比较苦逼的树形DP,慢慢来吧!不着急*/ #include <iostream> #include <vector> using namespace std; const int SIZE = 105; int roomNumber, trooperNumber; int cost[SIZE], brain[SIZE]; int dp[SIZE][SIZE]; /*dp[u][p]表示用 P 个士兵占领以 u 为根节点的子树所能获得的概率最大值*/ vector<int> adj[SIZE];
@坤的
2018-06-04
4550
没有更多了
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档