<ul> <li>Seller: That will be fourteen dollars.</li> <li>Buyer: Here's a twenty.</li> <li>Seller: Sorry, I don't have any change.</li> <li>Buyer: OK, here's a ten and a five. Keep the change.</li> </ul&g…

2020年1月17日 0条评论 1171点热度 0人点赞 code 阅读全文

<p>A crane is a wonderful tool for putting up a building. It makes the job go very quickly. When the building must go up even faster, more than one crane can be used. However, when there are too many cranes working on the same building, it can get danger…

2020年1月17日 0条评论 957点热度 0人点赞 code 阅读全文

<p>One day, the residents of Main Street got together and decided that they would install wireless internet on their street, with coverage for every house. Now they need your help to decide where they should place the wireless access points. They would l…

2020年1月17日 0条评论 1240点热度 0人点赞 code 阅读全文

<p>Luke has a bit of trouble telling the difference between star systems in the Rebel Alliance and those in the Empire. He has a list of the x,y,z coordinates of each system in the Empire and each in the Alliance, but at warp speed he simply has insuffic…

2020年1月17日 0条评论 949点热度 0人点赞 code 阅读全文

<p>Fermat's theorem states that for any prime number <i>p</i> and for any integer <i>a &gt; 1</i>, <i>a<sup>p</sup> == a (mod p)</i>. That is, if we raise <i>a</i> to the <i>p</i>…

2020年1月17日 0条评论 1465点热度 0人点赞 code 阅读全文

<p><img src="http://plg1.cs.uwaterloo.ca/~acm00/070923/carpool.jpg" alt="" /></p> <p>A group of friends has just completed their CS assignments, and because of the nice weather, they decide to go to Joe's house for a BBQ. Unfortunately,…

2020年1月17日 0条评论 1081点热度 0人点赞 code 阅读全文