当前位置: 首页 > news >正文

网站开发属于知识产权吗wordpress 采集评论

网站开发属于知识产权吗,wordpress 采集评论,怎样才能建设网站,辽宁省住房和城乡建设部网站主页瞎搞题啊。找出1 1 0 0这样的序列#xff0c;然后存起来#xff0c;这样的情况下最好的选择是1的个数除以这段的总和。然后从前向后扫一遍。变扫边进行合并。每次合并。合并的是他的前驱。这样到最后从t-1找出的那条链就是最后满足条件的数的大小。Room and Moor Time Limit:… 瞎搞题啊。找出1 1 0 0这样的序列然后存起来这样的情况下最好的选择是1的个数除以这段的总和。然后从前向后扫一遍。变扫边进行合并。每次合并。合并的是他的前驱。这样到最后从t-1找出的那条链就是最后满足条件的数的大小。 Room and Moor Time Limit: 12000/6000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 307    Accepted Submission(s): 90Problem Description PM Room defines a sequence A {A1, A2,..., AN}, each of which is either 0 or 1. In order to beat him, programmer Moor has to construct another sequence B {B1, B2,... , BN} of the same length, which satisfies that: Input The input consists of multiple test cases. The number of test cases T(T100) occurs in the first line of input. For each test case: The first line contains a single integer N (1N100000), which denotes the length of A and B. The second line consists of N integers, where the ith denotes Ai. Output Output the minimal f (A, B) when B is optimal and round it to 6 decimals. Sample Input 4 9 1 1 1 1 1 0 0 1 1 9 1 1 0 0 1 1 1 1 1 4 0 0 1 1 4 0 1 1 1 Sample Output 1.428571 1.000000 0.000000 0.000000 Source 2014 Multi-University Training Contest 6 #include algorithm #include iostream #include stdlib.h #include string.h #include iomanip #include stdio.h #include string #include queue #include cmath #include stack #include ctime #include map #include set #define eps 1e-9 ///#define M 1000100 #define LL __int64 ///#define LL long long ///#define INF 0x7ffffff #define INF 0x3f3f3f3f #define PI 3.1415926535898 #define zero(x) ((fabs(x)eps)?0:x) using namespace std; const int maxn 1000010; int num[maxn]; int sum[maxn][2]; int pre[maxn]; double x[maxn]; int main() { int T; cin T; while(T--) { int n; scanf(%d,n); for(int i 0; i n; i) scanf(%d,num[i]); int t 0; int cnt1 0; int cnt2 0; if(!num[0]) cnt1 1; if(num[0]) cnt2 1; for(int i 1; i n; i) { if(num[i] num[i-1]) { sum[t][0] cnt1; sum[t][1] cnt2; cnt1 cnt2 0; if(!num[i]) cnt1; if(num[i]) cnt2; continue; } if(!num[i]) cnt1; if(num[i]) cnt2; } sum[t][0] cnt1; sum[t][1] cnt2; t; for(int i 0 ; i t; i) x[i] (1.0*sum[i][1]/((sum[i][0]sum[i][1])*1.0)); pre[0] -1; for(int i 1; i t; i) { if(x[i] x[i-1]) { sum[i][0] sum[i-1][0]; sum[i][1] sum[i-1][1]; x[i] 1.0*sum[i][1]/(sum[i][1]sum[i][0])*1.0; pre[i] pre[i-1]; int p pre[i]; while(p ! -1) { if(x[i] x[p]) { sum[i][0] sum[p][0]; sum[i][1] sum[p][1]; x[i] 1.0*sum[i][1]/(sum[i][0]sum[i][1])*1.0; pre[i] pre[p]; p pre[p]; continue; } break; } continue; } pre[i] i-1; } int p pre[t-1]; double ans 0; ans sum[t-1][0]*pow(x[t-1], 2)sum[t-1][1]*pow(x[t-1]-1, 2); while(p ! -1) { ans sum[p][0]*pow(x[p], 2)sum[p][1]*pow(x[p]-1, 2); p pre[p]; } printf(%.6lf\n,ans); } return 0; }
http://wiki.neutronadmin.com/news/242083/

相关文章:

  • 中英文的网站怎么建设中山网站建设 骏域
  • 北京网站排名优化软件wordpress主题 游戏
  • 什么是网页和网站要压实互联网企业的什么责任
  • 如何做网络集资网站wordpress 分类图片尺寸
  • seo网站推广价格模板网站购买
  • 网站使用微信支付做网站用什么语音
  • 建设的网站打开速度很慢十大营销咨询公司
  • 深圳福田网站建设国外 外贸 网站 源码
  • 免费诶网站建设wordpress换空间搬家
  • 南京做网站询南京乐识网站换肤代码
  • 不想让网站保存密码怎么做一元钱购买网站空间
  • 网络广告策划书案例北京网站优化价格
  • 自己建一个网站郑州英语网站建设
  • 靖江做网站的单位外贸英文网站搭建的公司
  • 外贸网站如何推广wordpress分栏插件
  • 大连 网站制作广州网站建设要多少钱
  • 呼和浩特网站建设电话trellis wordpress
  • 企业网站制作运营专业放心关键词优化参考价格
  • 建设行业信息管理系统网站python初学者怎么入门
  • 模板自助建站网站制作网站建设中图片多少钱
  • 中国建设机械教育网官方网站三网合一的模板网站
  • 中国化工建设协会网站福建省公司注册网上核名
  • soho的网站怎么做做网站商城前景怎么样
  • 网站建设类论文格式欧洲网站服务器
  • 知名商业网站有哪些wordpress 模拟登陆
  • 做视频分享网站利用业务时间做的网站与公司有关吗
  • 网站建设+备案什么意思单纯做seo能否提升网站流量
  • 学校网站设计理念办公室装修企业
  • 池州市建设工程质量安全监督局网站网站在线qq代码
  • 珠海网站开发维护科技公司长沙百度网站制作