首页 > 其他 > 详细

LOJ 10002 喷水装置 未完

时间:2019-04-27 23:37:53      阅读:155      评论:0      收藏:0      [点我收藏+]
#include<bits/stdc++.h>
using namespace std;
int T,n,l,w;
const int maxn = 1e4+5;
struct S{
    double s,t;
}a[maxn];
bool cmp(const S &a,const S &b){
    return a.s<b.s;
}
void work(){
    scanf("%d%d%d",&n,&l,&w);
    int o=0;
    for(int i=1;i<=n;i++){
        int mid,r;
        scanf("%d%d",&mid,&r);
        if(r*2<w)continue;o++;
        a[o].s=a[o].mid-sqrt(r*r-h*h/4.0);
        a[o].t=a[o].mid+sqrt(r*r-h*h/4.0);
    }
    sort(a+1,a+1+n,cmp);
    n=o;
    double f;
    int ans=0,opt=1,i=1;
    while(f<l){
        ans++;
        double t=f;
    }
}
int main(){
    scanf("%d",&T);
    while(T--){
        work();
    }
    return 0;
}

 

LOJ 10002 喷水装置 未完

原文:https://www.cnblogs.com/yangxuejian/p/10780965.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!