会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Militant_799
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
下一页
2016年7月28日
Uva 2319
摘要: 理解:区域覆盖。假设该点在勘测半圆的边缘,求出与该点可在一个半圆的坐标范围l,r,然后,for 一次判断
阅读全文
posted @ 2016-07-28 12:34 799
阅读(119)
评论(0)
推荐(0)
2016年7月27日
火柴棍等式
摘要: #include #include using namespace std; int calute(int n) { int num[55]= {6,2,5,5,4,5,6,3,7,6}; int sum=0; if(n==0)sum=6; else while(n) { sum+=num[n%10];...
阅读全文
posted @ 2016-07-27 21:43 799
阅读(136)
评论(0)
推荐(0)
2016年7月22日
罗马数字转化
摘要: IV=4 6=VI
阅读全文
posted @ 2016-07-22 13:17 799
阅读(239)
评论(0)
推荐(0)
2016年7月20日
UVA2037
摘要: #include int Sum(int n) { int sum=0; while(n!=0) { sum+=n%10; n/=10; } return sum; } void Cal(int a,int b) { while(a!=b) { if(a1) printf...
阅读全文
posted @ 2016-07-20 22:21 799
阅读(102)
评论(0)
推荐(0)
Uva 2034
摘要: 求定积分 (结果当时我没看到平均值) //正常多项式求
阅读全文
posted @ 2016-07-20 20:10 799
阅读(106)
评论(0)
推荐(0)
2016年7月5日
Java 的printf(转)
摘要: 出处:http://blog.csdn.net/swandragon/article/details/4653600 public class TestPrintf{public static void main(String[] args){//定义一些变量,用来格式化输出。double d =
阅读全文
posted @ 2016-07-05 14:36 799
阅读(151)
评论(0)
推荐(0)
2016年5月4日
关于cin,getchar(),scanf()的注意事项(转)
摘要: 问题描述一:(分析scanf()和getchar()读取字符) scanf(), getchar()等都是标准输入函数,一般人都会觉得这几个函数非常简单,没什么特殊的。但是有时候却就是因为使用这些函数除了问题,却找不出其中的原因。下面先看一个很简单的程序:程序1: #include <stdio.h
阅读全文
posted @ 2016-05-04 20:36 799
阅读(502)
评论(0)
推荐(0)
2016年4月12日
DP~青蛙过河(hrbust1186)
摘要: #include #include int DP[100000];//表示相应的位置的踩到的石子 int l,s,t,n; int main() { while(~scanf("%d%d%d%d",&l,&s,&t,&n)) { memset(DP,0,sizeof(DP)); for(int i=1; i=0; i--)//找 ...
阅读全文
posted @ 2016-04-12 20:23 799
阅读(178)
评论(0)
推荐(0)
Dp~Hrbust1426( 集训队的晚餐 )
摘要: #include int dp[1005][1005]; void init () { for(int i=0;i<1005;i++) dp[i][0]=1; for(int i=1;i<1005;i++) for(int j=1;j<=i;j++) dp[i][j]=(dp[i-1][j]+dp[i][j-1])%1000000007; } int ...
阅读全文
posted @ 2016-04-12 20:06 799
阅读(119)
评论(0)
推荐(0)
DP~数塔(hrbustoj1004)
摘要: Dp 我的理解就是用不知道去推解不知道 能得到知道 (倒着推)
阅读全文
posted @ 2016-04-12 20:01 799
阅读(175)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
下一页
公告