摘要:
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5265 想多了 如果m = n,肯定时n个dish中用时最多的 如果m using namespace std; int test; int n, m; int x; l 阅读全文
摘要:
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4016 直接用栈爆内存,看网上大神用数组实现的,构思巧妙,学习了! AC代码: 又看到网上一个用list实现的 include include using names 阅读全文
摘要:
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4024 从前往后找满足alar的最小下标r,如果l=r且1 include using namespace std; const int maxn = 100005; 阅读全文
摘要:
题目链接:http://codeforces.com/problemset/problem/450/A / 计算一个人要是拿足够离开需要排多少次队,选排的次数多的那个人,如果两个人排的次数相同,那么要取后者; / include using namespace std; int main() { i 阅读全文