Relatives
摘要:RelativesTime Limit(Common/Java):1000MS/10000MS Memory Limit:65536KByteTotal Submit: 9 Accepted: 4DescriptionGiven n, a positive integer, how many positive integers less than n are relatively prime to n? Two integers a and b are relatively prime if there are no integers x > 1, y > 0, z > 0
阅读全文
posted @
2011-06-05 18:12
tzc_yujunyong
阅读(259)
推荐(0)
计算直线的交点数
摘要:计算直线的交点数Time Limit(Common/Java):1000MS/10000MS Memory Limit:65536KByteTotal Submit: 7 Accepted: 4Description平面上有n条直线,且无三线共点,问这些直线能有多少种不同交点数。比如,如果n=2,则可能的交点数量为0(平行)或者1(不平行)。Input输入数据包含多个测试实例,每个测试实例占一行,每行包含一个正整数n(n<=20),n表示直线的数量.Output每个测试实例对应一行输出,从小到大列出所有相交方案,其中每个数为可能的交点数,每行的整数之间用一个空格隔开。Sample Inp
阅读全文
posted @
2011-05-24 20:43
tzc_yujunyong
阅读(1964)
推荐(0)
Surround the Trees
摘要:题目链接:http://acm.tzc.edu.cn/acmhome/problemdetail.do?&method=showdetail&id=1255Surround the TreesTime Limit(Common/Java):1000MS/10000MS Memory Limit:65536KByteTotal Submit: 175 Accepted: 67DescriptionThere are a lot of trees in an area. A peasant wants to buy a rope to surround all these tree
阅读全文
posted @
2011-05-01 15:35
tzc_yujunyong
阅读(236)
推荐(0)
塔神的钱包
摘要:题目链接:http://acm.tzc.edu.cn/acmhome/problemdetail.do?&method=showdetail&contestId=286&id=3544塔神的钱包Time Limit(Common/Java):1000MS/3000MS Memory Limit:65536KByteTotal Submit: 24 Accepted: 8Description台州学院acm集训队有一塔神,人称塔妞,经常以虐xzc取乐,xzc无限愤怒,于是准备在此曝光塔神。其实 ………………………………………………………………………………………………………
阅读全文
posted @
2011-04-29 11:18
tzc_yujunyong
阅读(226)
推荐(0)
Holding Bin-Laden Captive!
摘要:题目链接:http://acm.tzc.edu.cn/acmhome/problemdetail.do?&method=showdetail&id=1326Holding Bin-Laden Captive!Time Limit(Common/Java):1000MS/10000MS Memory Limit:65536KByteTotal Submit: 136 Accepted: 64DescriptionWe all know that Bin-Laden is a notorious terrorist, and he has disappeared for a lon
阅读全文
posted @
2011-04-28 14:02
tzc_yujunyong
阅读(396)
推荐(0)
Area
摘要:题目链接:http://acm.tzc.edu.cn/acmhome/problemdetail.do?&method=showdetail&id=1199Area时间限制(普通/Java):1000MS/10000MS 运行内存限制:65536KByte总提交: 155 测试通过: 49描述Jerry, a middle school student, addicts himself to mathematical research. Maybe the problems he has thought are really too easy to an expert. But
阅读全文
posted @
2011-04-24 21:44
tzc_yujunyong
阅读(380)
推荐(0)
Fibonacci
摘要:题目联接:http://acm.tzc.edu.cn/acmhome/problemdetail.do?&method=showdetail&contestId=282&id=3492FibonacciTime Limit(Common/Java):1000MS/3000MS Memory Limit:65536KByteTotal Submit: 15 Accepted: 11 DescriptionIn the Fibonacci integer sequence, F0 = 0, F1 = 1, and Fn = Fn − 1 + Fn − 2 for n ≥ 2
阅读全文
posted @
2011-04-15 18:42
tzc_yujunyong
阅读(183)
推荐(0)
Nikhil's Password
摘要:题目链接:http://acm.tzc.edu.cn/acmhome/problemdetail.do?&method=showdetail&id=3459学习模板:http://www.cnblogs.com/yujunyong/articles/2007809.htmlNikhil's PasswordTime Limit(Common/Java):1000MS/3000MS Memory Limit:65536KByteTotal Submit: 62 Accepted: 13 DescriptionNikhil's father has set a pa
阅读全文
posted @
2011-04-10 14:49
tzc_yujunyong
阅读(462)
推荐(0)
Triangle
摘要:题目连接:http://acm.tzc.edu.cn/acmhome/problemdetail.do?&method=showdetail&contestId=282&id=3502TriangleTime Limit(Common/Java):1000MS/3000MS Memory Limit:65536KByteTotal Submit: 8 Accepted: 3 DescriptionA lattice point is an ordered pair (x, y) where x and y are both integers. Given the coo
阅读全文
posted @
2011-04-09 16:07
tzc_yujunyong
阅读(410)
推荐(2)
Counting Pixels--计算几何
摘要:题目链接:http://acm.tzc.edu.cn/acmhome/problemdetail.do?&method=showdetail&id=3475Counting PixelsTime Limit(Common/Java):3000MS/9000MS Memory Limit:65536KByteTotal Submit: 33 Accepted: 9DescriptionDid you know that if you draw a circle that fills the screen on your 1080p high definition display,
阅读全文
posted @
2011-04-08 11:52
tzc_yujunyong
阅读(385)
推荐(0)
Piece of cake!
摘要:题目链接:http://acm.tzc.edu.cn/acmhome/problemdetail.do?&method=showdetail&contestId=280&id=3470Piece of cake!Time Limit(Common/Java):1000MS/3000MS Memory Limit:65536KByteTotal Submit: 77 Accepted: 6DescriptionThis morning Aunt Petunia baked a cake. The cake had the shape of a box with dimen
阅读全文
posted @
2011-04-08 11:17
tzc_yujunyong
阅读(159)
推荐(0)
Max Sequence
摘要:题目链接:http://acm.tzc.edu.cn/acmhome/problemdetail.do?&method=showdetail&id=2891Max SequenceTime Limit(Common/Java):3000MS/9000MS Memory Limit:65536KByteTotal Submit: 75 Accepted: 20 DescriptionGive you N integers a1, a2 ... aN (|ai| <=1000, 1 <= i <= N). You should output S. InputThe
阅读全文
posted @
2011-04-05 22:54
tzc_yujunyong
阅读(351)
推荐(0)
Stacking Cylinders--计算几何
摘要:题目链接:http://acm.tzc.edu.cn/acmhome/problemdetail.do?&method=showdetail&contestId=271&id=3446Stacking CylindersTime Limit(Common/Java):1000MS/3000MS Memory Limit:65536KByteTotal Submit: 10 Accepted: 6 Cylinders (e.g. oil drums) (of radius 1 foot) are stacked in a rectangular bin. Each cyl
阅读全文
posted @
2011-03-27 20:54
tzc_yujunyong
阅读(590)
推荐(0)