上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 59 下一页
摘要: #includeint main() { int n,p,q,k; while(scanf("%d%d%d",&n,&p,&q)!=EOF) { k=n%(p+q); if(k<=p&&k!=0) printf("LOST\n"); else printf("WIN\n"); }... 阅读全文
posted @ 2014-05-08 21:33 HYDhyd 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 参考http://blog.csdn.net/xingyeyongheng/article/details/8785785#include#define ll long long#define N 20ll dp[N];//dp[N]记录长度为i的一的个数ll power(ll a) {ll sum... 阅读全文
posted @ 2014-05-08 17:35 HYDhyd 阅读(136) 评论(0) 推荐(0) 编辑
摘要: #include#include#define ii 1e-9double f(double x,double y) {return 6*pow(x,7)+8*pow(x,6)+7*pow(x,3)+5*pow(x,2)-y*x;}int main() { int t,n; double sta... 阅读全文
posted @ 2014-05-08 11:34 HYDhyd 阅读(168) 评论(0) 推荐(0) 编辑
摘要: #include#define mi 1e-9#define N 11000struct node{double x,y,z;}a[N];int n;double Max(double a,double b) {return a>b?a:b;}double ff(double h) { d... 阅读全文
posted @ 2014-05-08 11:34 HYDhyd 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http:// www.lydsy.com/JudgeOnline/problem.php?id=1026#include #include #include #include #include #include #include #include using namespace std... 阅读全文
posted @ 2014-05-08 09:25 HYDhyd 阅读(306) 评论(0) 推荐(0) 编辑
摘要: hi.baidu.com/ydlqw/item/120cd21a5afd5becddeeca41?qq-pf-to=pcqq.c2c 阅读全文
posted @ 2014-05-07 22:59 HYDhyd 阅读(98) 评论(0) 推荐(0) 编辑
摘要: #include#includeint a[10];int cmp(const void *a,const void *b) {return *(int *)a-*(int *)b;}int main() { int n,m,i,t; scanf("%d",&t); while(t--) { sc... 阅读全文
posted @ 2014-05-07 22:57 HYDhyd 阅读(120) 评论(0) 推荐(0) 编辑
摘要: #include#define N 20long long dp[N][3];void init(){long long i;dp[0][0]=1;for(i=1;i=1;i--) { j=j+a[i]*dp[i-1][2]; if(flag)j=j+a[i]*dp[i-1][0]; else... 阅读全文
posted @ 2014-05-07 20:43 HYDhyd 阅读(113) 评论(0) 推荐(0) 编辑
摘要: #include//dp[i][0]代表不存在不吉利数字//dp[i][1]代表不存在不吉利数字但是以2开头//dp[i][2]代表存在不吉利数字#define N 10int dp[N][3];void init() {int i;dp[0][0]=1;for(i=1;i0;i--) { j... 阅读全文
posted @ 2014-05-07 18:53 HYDhyd 阅读(161) 评论(0) 推荐(0) 编辑
摘要: #include#define inf 1000000000#define N 110000int a[N];struct node {int start,end;}b[N];int minn[N];int main() { int n,t,i,j,len; scanf("%d",&t); whil... 阅读全文
posted @ 2014-05-06 16:43 HYDhyd 阅读(124) 评论(0) 推荐(0) 编辑
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 59 下一页