摘要:
题目连接http://acm.hdu.edu.cn/showproblem.php?pid=2034人见人爱A-BDescription参加过上个月月赛的同学一定还记得其中的一个最简单的题目,就是{A}+{B},那个题目求的是两个集合的并集,今天我们这个A-B求的是两个集合的差,就是做集合的减法运算... 阅读全文
摘要:
题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1575Tr ADescriptionA为一个方阵,则Tr A表示A的迹(就是主对角线上各项的和),现要求Tr(A^k)%9973。Input数据的第一行是一个T,表示有T组数据。每组数据的第一行有n(2 #... 阅读全文
摘要:
题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1496EquationsDescriptionConsider equations having the following form:a*x1^2+b*x2^2+c*x3^2+d*x4^2=0a, b, ... 阅读全文
摘要:
题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1162Eddy's pictureDescriptionEddy begins to like painting pictures recently ,he is sure of himself to be... 阅读全文
摘要:
题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1102Constructing RoadsDescriptionThere are N villages, which are numbered from 1 to N, and you should bu... 阅读全文
摘要:
题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1061Rightmost DigitDescriptionGiven a positive integer N, you should output the most right digit of N^N.... 阅读全文
摘要:
题目连接http://www.lydsy.com/JudgeOnline/problem.php?id=1054移动玩具Description在一个4*4的方框内摆放了若干个相同的玩具,某人想将这些玩具重新摆放成为他心中理想的状态,规定移动时只能将玩具向上下左右四个方向移动,并且移动的位置不能有玩具... 阅读全文
摘要:
题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1005Number SequenceDescriptionA number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(... 阅读全文