摘要: 【传送门】http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5747 【题目大意】:薛定谔的背包。薛定谔的猫是只有观测了才知道猫的死活,薛定谔的背包是只有把物品放入背包中才知道物品的价值。。有两大类物品,价值分别是k1 , k2,数 阅读全文
posted @ 2018-09-07 20:00 西风show码 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 【传送门】http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4016 【题目大意】初始有n个空栈,现在有如下三种操作: (1) 1 s v 即 s.push(v) (2) 2 s 即 s.pop() 输出弹出的元素,如果栈s为空 阅读全文
posted @ 2018-09-07 18:56 西风show码 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 【传送门】http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4020 【题目大意】从起点(sx, sy)出发,要到达(ex , ey)。每次从点(x,y)走的时候要看红绿灯,灯的状态为1时只能左右走,走到(x , y+1)或者 阅读全文
posted @ 2018-09-07 18:15 西风show码 阅读(176) 评论(0) 推荐(0) 编辑