Codeforces Round #260 (Div. 2) 题解
程序员文章站
2024-02-15 22:48:41
...
Input The first line contains an integer n ( 1?≤? n ?≤?10 5 ) — the number of laptops. Next n lines contain two integers each, a i and b i (1?≤? a i ,? b i ?≤? n ) , where a i is the price of the i -th laptop, and b i is the number th
Input
The first line contains an integer n (1?≤?n?≤?105) — the number of laptops.
Next n lines contain two integers each,ai andbi(1?≤?ai,?bi?≤?n), whereai is the price of thei-th laptop, and bi is the number that represents the quality of thei-th laptop (the larger the number is, the higher is the quality).
All ai are distinct. Allbi are distinct.
推荐阅读
-
Codeforces Round #260 (Div. 2) 题解
-
Codeforces Round #254 (Div. 2)B. DZY Loves Chemistry
-
Codeforces Round #256 (Div. 2) D. Multiplication Table_html/css_WEB-ITnose
-
Codeforces Round #264 (Div. 2)[ABCDE]
-
Codeforces Round #256 (Div. 2) 题解_html/css_WEB-ITnose
-
Educational Codeforces Round 81 (Rated for Div. 2) - D. Same GCDs - 扩欧+欧拉函数
-
Codeforces Round #231 (Div. 2)
-
Codeforces Round #220 (Div. 2) D 树状数组 && 二分_html/css_WEB-ITnose
-
Codeforces Round #247 (Div. 2) ABC
-
Codeforces Round #FF (Div. 2) 题解