摘要:
题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=5992 Problem Description There are N hotels all over the world. Each hotel has a location and a price. 阅读全文
摘要:
题目链接 https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4920 problem description Two years ago, Pu 阅读全文
摘要:
题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=5475 Problem Description One day, a useless calculator was being built by Kuros. Let's assume that numb 阅读全文
摘要:
题目是:有一个水果盘只能放一个水果,ABCD四个人,A往盘中放苹果,B往盘中放梨,C从盘中取苹果,D从盘中取梨 int mutex=1,apple=0,pear=0,empty=1;///一共4个信号量; A: wait(mutex); wait(empty); signal(apple); sig 阅读全文
摘要:
题目链接 https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4923 problem description Last night, Kingd 阅读全文