随笔分类 -  浙大PAT

摘要:The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the s... 阅读全文
posted @ 2014-03-24 17:49 子田力亥 阅读(164) 评论(0) 推荐(0)
摘要:Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is "yes", if 6 is a decimal number and 110 is... 阅读全文
posted @ 2014-03-23 08:40 子田力亥 阅读(142) 评论(0) 推荐(0)
摘要: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 the integers from 1 to N. F... 阅读全文
posted @ 2014-03-22 17:27 子田力亥 阅读(147) 评论(0) 推荐(0)
摘要:Given any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1^k1 * p2^k2 *…*pm^km.Input Specifi... 阅读全文
posted @ 2014-03-22 17:21 子田力亥 阅读(162) 评论(0) 推荐(0)
摘要:Given two strings S1 and S2, S = S1 - S2 is defined to be the remaining string after taking all the characters in S2 from S1. Your task is simply to c... 阅读全文
posted @ 2014-03-22 17:06 子田力亥 阅读(135) 评论(0) 推荐(0)