摘要: #includeint main(){ long long int x; while(~scanf("%lld",&x)) { if(x%2==0) printf("0 0\n"); else printf("2 %lld\n",x+2)... 阅读全文
posted @ 2015-07-14 16:11 xryz 阅读(95) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int dp[35000];int main(){ int i,j,n; memset(dp,0,sizeof(dp)); dp[0]=1; for(i=1;i<=3;i+... 阅读全文
posted @ 2015-07-14 12:23 xryz 阅读(86) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int main(){ int _,n,dp[10000+5],i,j,a[5]; a[1]=150; a[2]=200; a[3]=350; memset(dp,0... 阅读全文
posted @ 2015-07-14 12:21 xryz 阅读(110) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int main(){ int n,m,i,j,w[10000+5]; double k[10000+5],dp[10000+5]; while(~scanf("%d%d",&n... 阅读全文
posted @ 2015-07-14 12:19 xryz 阅读(89) 评论(0) 推荐(0) 编辑