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

*坤的Blog

专栏作者
198
文章
207418
阅读量
37
订阅数
hdu1078
#include <stdio.h> #include <string.h> #include <algorithm> using namespace std; int n,k,dp[105][105],a[105][105]; int to[4][2] = {1,0,-1,0,0,1,0,-1}; int check(int x,int y) { if(x<1 || y<1 || x>n || y>n) return 1; re
@坤的
2018-06-04
4630
hdu1079
#include<cstdio> #include<iostream> #include<cstring> using namespace std; int main(){ int y,m,d; int t; scanf("%d",&t); while(t--){ scanf("%d%d%d",&y,&m,&d); if((m+d)%2==0||(d==30&&(m==9
@坤的
2018-06-04
3650
hdu1069
#include <iostream> #include <algorithm> #include <cstring> using namespace std; class Data { public: int S, Height; int upl, uph; }; Data Da[100]; int n; int dp[100]; int cmp(const Data &a, const Data &b) /
@坤的
2018-06-04
6660
hdu1071
#include <iostream> #include <stdio.h> using namespace std; int main() { int t; double x1,y1,x2,y2,x3,y3,a,k,s; cin>>t; while(t--) { cin>>x1>>y1>>x2>>y2>>x3>>y3; a=(y2-y1)/((x2-x1)*(x2-x1)); k=(y2-y3)/(x2-x3
@坤的
2018-06-04
4550
hdu1055
#include<iostream> #include<iomanip> #include<cstdio> #include<cstring> #include<algorithm> #include<cstdlib> #include<cmath> #include<map> #include<stack> #include<set> #include<queue> #include<string> #include<vector> #define eps
@坤的
2018-06-04
3750
hdu1061
#include <iostream> #include <cstdio> using namespace std; int mod_exp(int a, int b, int c) //快速幂取余a^b%c { int res, t; res = 1 % c; t = a % c; while (b) { if (b & 1) { res = res * t % c; }
@坤的
2018-06-04
2600
hdu1050
#include <cstdio> #include <algorithm> using namespace std; #define SIZE 205 struct Data_Type { int from, to; bool flag; }moving[SIZE]; bool Cmp(const Data_Type a, const Data_Type b) { return a.from < b.from; }
@坤的
2018-06-04
3850
hdu1052
#include <iostream> #include<algorithm> #include<queue> #include<stack> #include<cmath> #include<string.h> #include<stdio.h> #include<stdlib.h> using namespace std; #define maxn 2600 int a[maxn],b[maxn]; int main() { int N,i,j,i1,j1,sum; while(scan
@坤的
2018-06-04
3600
hdu1037
#include <iostream> #include <cstdio> using namespace std; int main() { int a,b,c; while (~scanf("%d%d%d",&a,&b,&c)) { if (a>168&&b>168&&c>168) printf ("NO CRASH\n"); if (a<=168)
@坤的
2018-06-04
3380
hdu1040
#include<stdio.h> #include<stdlib.h> int a[100]; int cmp(const void *a,const void *b) { return *(int *)a-*(int *)b; } int main() { int T,n,i; scanf("%d",&T); while(T--) { scanf("%d",&n); for(i=0;i<n;i++) sc
@坤的
2018-06-04
4110
hdu1024
#include <cstdio> #include <iostream> const int MAX = 1000005; using namespace std; int num[MAX], pr
@坤的
2018-06-04
3400
hdu1027
#include<iostream> #include<cstdio> #include<algorithm> using namespace std; const int SIZE=1002; int main() { int n,m; int i,count; int seq[SIZE]; while(scanf("%d %d",&n,&m)!=EOF) { for(i=0;i<SIZE;i++)
@坤的
2018-06-04
3580
hdu1031
#include <cstdio> #include <cstdlib> struct element{ int id; double sa; }e[10000];
@坤的
2018-06-04
2670
hdu1008
//c++ // #include using namespace std; int main(){ int n,j,t,start; while (cin >> n,n){ start =0; t = 0; while(n--){ cin >> j; if (j>start){ t += 6*(j-start); } else if (j < start){ t += 4 *(start-j); } start = j; t +=5; } cout << t <<endl; } return
@坤的
2018-06-04
3850
学校比赛网站设计
  这个是一个比较的一个临时比赛网站,之前是老师让一个在金山实习的室友弄,但是他在那边实习没有时间,就让我这个在这个学校准备考研的我来进行尝试下。实现起来很简单,之前没怎么弄实际的开发,现在弄起来发现实际开发出来还是需要一定的能力的,好久之前了,心血来潮,过来写一笔博客。因为现在比赛已经结束,但是题目还是不透露了,所以只是展示源码,实现的比较简陋,望大神多多拍砖指正。   我的想法很简单,想让所有人都能够访问这个网站,然后填写之后把信息搜集一下就行了。当时老师,没给服务器,只能自己本地用自己的电脑弄了一个,
@坤的
2018-06-04
1.8K0
hdu1003
//c++ //https://github.com/zzdxfei/hduacm/blob/master/1003.cpp #include  #include using namespace std; void ComputeMaxSubstr(const vector& sets, int& max_sum, int& max_left, int& max_right) { max_sum = sets[0]; max_left = 0; max_right = 0; int current_left
@坤的
2018-06-04
3690
没有更多了
社区活动
RAG七天入门训练营
鹅厂大牛手把手带你上手实战
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档