// Problem: #10002. 「一本通 1.1 例 3」喷水装置 // Contest: LibreOJ // URL: https://loj.ac/p/10002 // Memory Limit: 512 MB // Time Limit: 1000 ms // // Powered by CP Editor (https://cpeditor.org)
#include<bits/stdc++.h> using namespace std; //#define int long long inline int read(){int x=0,f=1;char ch=getchar(); while(ch<'0'||ch>'9'){if(ch=='-')f=-1; ch=getchar();}while(ch>='0'&&ch<='9'){x=(x<<1)+ (x<<3)+(ch^48);ch=getchar();}return x*f;} //#define M //#define mo //#define N struct node { double l, r; }a[15010]; int n, m, i, j, t; double w, l, x, k; double nwmxrght, mnlft; int ans;