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

*坤的Blog

专栏作者
198
文章
206575
阅读量
37
订阅数
hdu1095
#include <iostream> using namespace std; int main() { int b,a; while(cin>>a>>b) { cout<<a+b<<endl<<endl; } return 0; }
@坤的
2018-06-04
2970
hdu1096
#include <iostream> using namespace std; int main() { int n,m,a,sum=0; while(cin>>n) { while (n--) { cin>>m; sum=0; while (m--) { cin>>a;
@坤的
2018-06-04
3970
hdu1097
#include <stdio.h> int calc(int a, int b) { if(a==0 || a==1 || a==5 || a==6) return a; if(a==2) { if(b%4==1) return 2; if(b%4==2) return 4; if(b%4==3) return 8; if(b%4==0) return 6;
@坤的
2018-06-04
1760
hdu1098
#include <stdio.h> int main() { int k, a, i, flag; while(~scanf("%d", &k)) { for(i=0; i<66; i++) { if((18+k*i)%65==0) break; } if(i<66) printf("%d\n", i);
@坤的
2018-06-04
3300
hdu1072
#include <iostream> #include <cstdio> #include <cstring> #include <queue> using namespace std; class Data { public: int Etime; int x, y; int count; }; int n, m, sx, sy; int map[9][9]; int direction[4][2] = {1, 0,
@坤的
2018-06-04
3720
hdu1054
/* 【题意】 给定一棵树,标记一节点,则与该节点所连的边都被标记,问最少需要标记多少个节点使得所有边都被标记; 或者说给定一个树型城堡,在交叉路口放一个士兵,则与该路口相连的路都被守住, 问最少需要派遣多少个士兵来守住这个城堡 dp[father].yes= ( min(dp[child].yes,dp[child].no) 之和) dp[father].yes=( min(dp[child].yes,dp[child].no) 之和) */
@坤的
2018-06-04
4890
hdu1060
#include<stdio.h> #include<math.h> int main() { __int64 cas,b,i,d; double a,m,n,c; scanf("%I64d",&cas); for(i=1;i<=cas;i++) { scanf("%lf",&n); a=n*log10(n); b=(__int64)(a); c=a-b; d=(__int64)(pow(
@坤的
2018-06-04
3550
hdu1042
#include"stdio.h" #include"stdlib.h" #include"string.h" #define N 10000 int a[N]; int main() { int i,j,n,len; while(scanf("%d",&n)!=-1) { memset(a,0,sizeof(a)); //初始化数组 a[0]=1; //注意:0!=1
@坤的
2018-06-04
4290
hdu1016
#include <stdio.h> #include <string.h> int prime[38]={0,0,1,1,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1}; int visit[21]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; int result[21]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; void
@坤的
2018-06-04
1920
hdu1007
/* *最近点对的问题 */ #include  #include  #include  using namespace std; const int SIZE = 100005; const int L = -1; const int R = 1; typedef struct { int index; double x; double y; /用于记录坐标点/ }coord; coord num[SIZE], c[SIZE]/用作辅助数组/; double getDistance(coord &bi1,
@坤的
2018-06-04
3820
hdu1012
#include<iostream> #include<stdio.h> using namespace std; int jiechen(int n){     int i;     int ans=1;     for(i=1;i<=n;i++)         ans*=i;     return ans; } int main(){     int n,e;     int i;     cout<<"n e"<<endl;     cout<<"- -----------"<<endl;     
@坤的
2018-06-04
4450
没有更多了
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档