Codeforces Round #627 (Div. 3) D. Pair of Topics(二分,思惟)

傳送門html 題意: The pair of topics 𝑖 and 𝑗 (𝑖<𝑗) is called good if 𝑎𝑖+𝑎𝑗>𝑏𝑖+𝑏𝑗 (i.e. it is more interesting for the teacher). 找知足這個不等式的對數ios 思路: (單獨寫的a[i]都是表明題意中的a[i]-b[i]) 移項得 𝑎𝑖-𝑏𝑖>𝑏𝑗-
相關文章
相關標籤/搜索