2016年8月27日

PAT 1046

摘要: 1046. Shortest Distance (20) The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest d 阅读全文

posted @ 2016-08-27 22:33 Prince1994 阅读(116) 评论(0) 推荐(0) 编辑

PAT 1047

摘要: 1049. Counting Ones (30) The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of th 阅读全文

posted @ 2016-08-27 20:16 Prince1994 阅读(175) 评论(0) 推荐(0) 编辑

PAT 1017

摘要: 最近由于在刷PAT的甲级题目,开始花时间整理一下一些题目的思路,以下是这题银行排队题目的主要想法和AC源码 1017. Queueing at Bank (25) Suppose a bank has K windows open for service. There is a yellow lin 阅读全文

posted @ 2016-08-27 10:39 Prince1994 阅读(557) 评论(0) 推荐(0) 编辑

导航