codeforces Round #260(div2) A解题报告
程序员文章站
2024-02-05 14:47:04
...
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 and bi (1?≤?ai,?bi?≤?n), where ai is the price of the i-th laptop, and bi is the number that represents the quality of the i-th laptop (the larger the number is, the higher is the quality).
All ai are distinct. All bi are distinct.
上一篇: 如何样才能完全看懂源码和别人写的代码
推荐阅读
-
codeforces Round #260(div2) A解题报告
-
【SDOI2016Round1】【解题报告】
-
codeforces Round #259(div2) B解题报告
-
Codeforces Round #271 (Div. 2) 解题报告_html/css_WEB-ITnose
-
Codeforces Round #262 (Div. 2)解题报告_html/css_WEB-ITnose
-
Codeforces Round #281 (Div. 2) 解题报告 A.B.C.D._html/css_WEB-ITnose
-
codeforces 260 div2 A,B,C_html/css_WEB-ITnose
-
codeforces Round #275(div2) D解题报告
-
codeforces Round #260(div2) A解题报告
-
Codeforces Round #278 (Div. 1) 解题报告_html/css_WEB-ITnose