题目链接 A. Salem and Sticks 分析 暴力就行,题目给的n<=1000,ai<=100,暴力枚举t,t从2枚举到98,复杂度是1e5,完全可行. 代码 1 #include <cstdio> 2 #include <cmath> 3 #include <iostream> 4 #i ...
分类:
其他好文 时间:
2019-04-08 00:48:52
阅读次数:
185
Koko loves to eat bananas. There are N piles of bananas, the i-th pile has piles[i] bananas. The guards have gone and will come back in H hours. Koko ...
分类:
其他好文 时间:
2019-04-08 00:48:39
阅读次数:
186