• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
奚政
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 30 下一页

2017年3月19日

hdu2085-2086
摘要: hdu2085 模拟 1 #include<stdio.h> 2 long long a[35][2]; 3 void fun(){ 4 a[0][0]=1; 5 a[0][1]=0; 6 for(int i=1;i<=33;i++){ 7 a[i][0]=3*a[i-1][0]+2*a[i-1][ 阅读全文
posted @ 2017-03-19 04:03 奚政 阅读(183) 评论(0) 推荐(0)
 
hdu2084 数塔 DP
摘要: 数字三角形,DP裸题 1 #include<stdio.h> 2 #include<string.h> 3 #define max(a,b) (a)>(b)?a:b 4 5 int g[101][101],dp[101][101]; 6 7 int max1(int i,int j){ 8 retu 阅读全文
posted @ 2017-03-19 04:01 奚政 阅读(111) 评论(0) 推荐(0)
 
hdu2083 简易版之最短距离 排序水题
摘要: 给出数轴n个坐标,求一个点到所有点距离总和最小。排序后最中间一个点或两个点之间就是最优 1 #include<stdio.h> 2 #include<algorithm> 3 using namespace std; 4 int x[502]; 5 6 int main(){ 7 int M; 8 阅读全文
posted @ 2017-03-19 03:59 奚政 阅读(305) 评论(0) 推荐(0)
 
hdu2082 找单词 母函数
摘要: 给出不同字母的权值,计算有多少种字母组合权值小于50,母函数裸题 1 #include<stdio.h> 2 #include<string.h> 3 4 long long c1[51],c2[51]; 5 6 int main(){ 7 int N; 8 while(scanf("%d",&N) 阅读全文
posted @ 2017-03-19 03:56 奚政 阅读(116) 评论(0) 推荐(0)
 
hdu2080-2081
摘要: hdu2080 计算两点关于原点夹角,数学 1 #include<stdio.h> 2 #include<math.h> 3 double len(double x1,double y1,double x2,double y2){ 4 return sqrt((x1-x2)*(x1-x2)+(y1- 阅读全文
posted @ 2017-03-19 03:54 奚政 阅读(191) 评论(0) 推荐(0)
 
hdu2079 选课时间(题目已修改,注意读题) 母函数
摘要: 计算数的和的种类,母函数裸题 1 #include<stdio.h> 2 #include<string.h> 3 int c1[1000],c2[1000],a,b; 4 5 int main(){ 6 int T; 7 while(scanf("%d",&T)!=EOF){ 8 int n,k; 阅读全文
posted @ 2017-03-19 03:51 奚政 阅读(164) 评论(0) 推荐(0)
 
hdu2073-2078
摘要: hdu2073 数学 1 #include<stdio.h> 2 #include<math.h> 3 double len(double x){ 4 return sqrt(x*x+(x+1)*(x+1)); 5 } 6 7 int main(){ 8 int N; 9 while(scanf(" 阅读全文
posted @ 2017-03-19 03:48 奚政 阅读(384) 评论(0) 推荐(0)
 
hdu2072 单词数 字典树
摘要: 字典树裸题 1 #include<stdio.h> 2 #include<string.h> 3 int next[5000][26]; 4 bool is_e[5000]; 5 int cnt; 6 int ans; 7 8 void Insert(char *word,int s1){ 9 in 阅读全文
posted @ 2017-03-19 03:42 奚政 阅读(1011) 评论(0) 推荐(0)
 
hdu2069-2071
摘要: hdu2069 选取硬币组成定值,暴力 1 #include<stdio.h> 2 int v[6]={0,50,25,10,5,1}; 3 4 int main(){ 5 int n; 6 while(scanf("%d",&n)!=EOF){ 7 int ans=0,ans1=0; 8 for( 阅读全文
posted @ 2017-03-19 03:39 奚政 阅读(326) 评论(0) 推荐(0)
 
hdu2068 RPG的错排 组合数/递推
摘要: 1 #include<stdio.h> 2 long long arr[21]; 3 long long c(int a,int b) 4 { 5 long long i,sum=1,j; 6 for (i=a,j=1;i>=a-b+1,j<=b;i--,j++) sum=sum*i/j; 7 re 阅读全文
posted @ 2017-03-19 03:36 奚政 阅读(176) 评论(0) 推荐(0)
 
 
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 30 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3