摘要:
145. 超市 超市里有N件商品,每个商品都有利润pi和过期时间di,每天只能卖一件商品,过期商品(即当天di include include include using namespace std; typedef pair PII; int main() { int n; while(cin n 阅读全文
摘要:
136. 邻值查找 给定一个长度为 n 的序列 A,A 中的数各不相同。对于 A 中的每一个数 Ai,求: min 1≤j include using namespace std; typedef long long LL; typedef pair PII; //数值 和下标 const int 阅读全文