codeforcesRound#260(div2)A解題報告
來源:懂視網
責編:小采
時間:2020-11-09 07:27:39
codeforcesRound#260(div2)A解題報告
codeforcesRound#260(div2)A解題報告: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(div2)A解題報告: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 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.
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
codeforcesRound#260(div2)A解題報告
codeforcesRound#260(div2)A解題報告: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