BZOJ1067: [SCOI2007] Rainfall

Source: Internet
Author: User

1067: [SCOI2007] Rainfall time limit:1 Sec Memory limit:162 MB
submit:4185 solved:1119
[Submit] [Status] [Discuss]
Description

We often say this: "X year is the most rainfall since y years." It means that the rainfall in x years does not exceed Y years, and for any
Y It can be said that "2005 is the largest since 2003", but it cannot be said that "2005 is the largest since 2002" due to the rainfall in some years is not
Know that some of the claims may be correct or incorrect.

Input

Enter only one row that contains a positive integer n, which is the known data. The following n lines are two integers per line Yi and ri, for year and rainfall, by year from small
To a large arrangement, namely yi The most rainfall since y years. "This sentence is true, must be false or" possible ".

Output

For each query, output true,false or maybe.

Sample Input6
2002 4920
2003 5901
2004 2832
2005 3890
2007 5609
2008 3024
5
2002 2005
2003 2005
2002 2007
2003 2007
2005
Sample Outputfalse
True
False
Maybe
False
HINT

100% data satisfies: 1<=n<=50000, 1<=m<=10000, -10^9<=yi<=10^9, 1<=ri<=10^9

Source

POJ 2637 Worstweather ever

Puzzle: SB segment tree + awesome category discussion

This question 1 A is bound to be the God-man also, leave a name for me to wait konjac konjac worship!

BZOJ1067: [SCOI2007] Rainfall

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.