摘要:
Pants On Fire Donald and Mike are the leaders of the free world and haven’t yet (after half a year) managed to start a nuclear war. It is so great! It 阅读全文
摘要:
思路 根据物理规律, 按照加速度降序即是最优解. 分别算出并作差即可 Code c++ include using namespace std; struct node { double a, t; bool operator rhs.a; } }; int main() { int n; scan 阅读全文
摘要:
思路 首先输入给定的数据, 并按照组成pair 对pair进行升序排序 根据贪心的规则 按照 n , n 1, ... , 1的顺序 构造答案序列 然后在pos 对应处依次填写 序列 n , n 1, ... , 1 Code c++ include using namespace std; con 阅读全文
摘要:
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 90034 Accepted Submission(s): 48081 Problem Desc 阅读全文
摘要:
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 22398 Accepted Submission(s): 10367 Problem Descr 阅读全文
摘要:
You are given an array a consisting of n integers a1,a2,…,an. You want to split it into exactly k non-empty non-intersecting subsegments such that eac 阅读全文