2019年8月29日

2018 ACM-ICPC徐州站网络赛 G题

摘要: There's a beach in the first quadrant. And from time to time, there are sea waves. A wave ( xxx , yyy ) means the wave is a rectangle whose vertexes a 阅读全文

posted @ 2019-08-29 23:02 Caution_X 阅读(252) 评论(0) 推荐(0) 编辑

UVA10831题解

摘要: Gerg's Cake Gerg is having a party, and he has invited his friends. p of them have arrived already, but a are runninglate. To occupy his guests, he tr 阅读全文

posted @ 2019-08-29 22:50 Caution_X 阅读(175) 评论(0) 推荐(0) 编辑

POJ 3132 DP+素数筛

摘要: Sum of Different Primes Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 3684 Accepted: 2252 Description A positive integer may be expressed 阅读全文

posted @ 2019-08-29 20:46 Caution_X 阅读(157) 评论(0) 推荐(0) 编辑

UVA 10924 Prime Words 题解

摘要: Prime Words A prime number is a number that has only two divisors: itself and the number one. Examples of primenumbers are: 1, 2, 3, 5, 17, 101 and 10 阅读全文

posted @ 2019-08-29 10:01 Caution_X 阅读(276) 评论(0) 推荐(0) 编辑

UVA 10852 Less Prime 题解

摘要: Less Prime Let n be an integer, 100  n  10000, nd the prime number x, x  n, so that n 􀀀 p  x is maximum,where p is an integer such that p  x  n 阅读全文

posted @ 2019-08-29 09:58 Caution_X 阅读(217) 评论(0) 推荐(0) 编辑

UVA 10395 素数筛

摘要: Twin Primes Twin primes are pairs of primes of the form (p; p + 2). The term \twin prime" was coined by PaulStckel (1892-1919). The rst few twin prime 阅读全文

posted @ 2019-08-29 08:57 Caution_X 阅读(196) 评论(0) 推荐(0) 编辑

UVA 10789 题解

摘要: Prime Frequency Given a string containing only alpha-numerals (0-9,A-Z and a-z) you have to count the frequency (thenumber of times the character is p 阅读全文

posted @ 2019-08-29 08:39 Caution_X 阅读(242) 评论(0) 推荐(0) 编辑

导航