1
2
3
摘要: 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,然后确定这个 阅读全文
posted @ 2020-01-13 22:23 Arance 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-01-13 21:46 Arance 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-01-13 21:08 Arance 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 给出n条路线公交车的到达时间以及发车间隔时间,路线编号为1~n,Alice在t时刻到达,求她最早可以上哪班车。Input第一行输入路线数n和Alice到达的时间t n,t(1≤n≤100,1≤t≤10e5) 接下来n行,每行两个数字s和d(1≤s,d≤1e5),分别为该条路线首辆车到达的时间和两辆车 阅读全文
posted @ 2020-01-13 20:51 Arance 阅读(157) 评论(0) 推荐(0) 编辑