CodeforcesRound#260(Div.2)題解
來源:懂視網
責編:小采
時間:2020-11-09 07:57:58
CodeforcesRound#260(Div.2)題解
CodeforcesRound#260(Div.2)題解: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
導讀CodeforcesRound#260(Div.2)題解: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

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.
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
CodeforcesRound#260(Div.2)題解
CodeforcesRound#260(Div.2)題解: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