摘要:
https://ac.nowcoder.com/acm/contest/3003/D 牛牛得到了一个平面,这个平面上有 n 个不重合的点,第 i 个点的坐标为 (xi,yi) 牛牛想知道,这 n 个点形成的三角形中,总共有多少个钝角三角形。 题意:给n个点的坐标,判断有多少个钝角三角形,直接暴力每个 阅读全文
摘要:
Now, here is a fuction: F(x) = 6 * x^7+8*x^6+7*x^3+5*x^2-y*x (0 <= x <=100)Can you find the minimum value when x is between 0 and 100. 题意,输入一个y,然后确定这个 阅读全文
摘要:
Alice and Bob are playing a game with nn piles of stones. It is guaranteed that nn is an even number. The ii-th pile has aiai stones. Alice and Bob wi 阅读全文
摘要:
You are given an array a1,a2,…,ana1,a2,…,an. In one operation you can choose two elements aiai and ajaj (i≠ji≠j) and decrease each of them by one. You 阅读全文