01 2016 档案
HDOJ 2076 夹角有多大(题目已修改,注意读题)
摘要:Problem Description 时间过的好快,一个学期就这么的过去了,xhd在傻傻的看着表,出于对数据的渴望,突然他想知道这个表的时针和分针的夹角是多少。现在xhd知道的只有时间,请你帮他算出这个夹角。注:夹角的范围[0,180],时针和分针的转动是连续而不是离散的。Inp... 阅读全文
posted @ 2016-01-31 22:21 cnxo 阅读(136) 评论(0) 推荐(0)
HDOJ 2058 The sum problem
摘要:Problem Description Given a sequence 1,2,3,……N, your job is to calculate all the possible sub-sequences that the sum of the sub-sequence is M... 阅读全文
posted @ 2016-01-31 21:48 cnxo 阅读(136) 评论(0) 推荐(0)
HDOJ 2099 整除的尾数
摘要:Problem Description 一个整数,只知道前几位,不知道末二位,被另一个整数除尽了,那么该数的末二位该是什么呢?Input 输入数据有若干组,每组数据包含二个整数a,b( 0=0)&&((b*i)-a<100)){ if((b*i... 阅读全文
posted @ 2016-01-28 21:38 cnxo 阅读(109) 评论(0) 推荐(0)
HDOJ 2075 A|B?
摘要:Problem Description 正整数A是否能被正整数B整除,不知道为什么xhd会研究这个问题,来帮帮他吧。Input 输入数据的第一行是一个数据T,表示有T组数据。 每组数据有两个正整数A和B(A,B0){ int a = sc.nextInt();... 阅读全文
posted @ 2016-01-28 20:56 cnxo 阅读(89) 评论(0) 推荐(0)
HDOJ 2071 Max Num
摘要:Problem Description There are some students in a class, Can you help teacher find the highest student .Input There are some cases. The first ... 阅读全文
posted @ 2016-01-28 20:52 cnxo 阅读(180) 评论(0) 推荐(0)
HDOJ 2056 Rectangles
摘要:Problem Description Given two rectangles and the coordinates of two points on the diagonals of each rectangle,you have to calculate the area ... 阅读全文
posted @ 2016-01-28 20:20 cnxo 阅读(162) 评论(0) 推荐(0)
HDOJ 2055 An easy problem
摘要:Problem Description we define f(A) = 1, f(a) = -1, f(B) = 2, f(b) = -2, … f(Z) = 26, f(z) = -26; Give you a letter x and a number y , you sho... 阅读全文
posted @ 2016-01-27 17:22 cnxo 阅读(196) 评论(0) 推荐(0)
HDOJ 2053 Switch Game
摘要:Problem Description There are many lamps in a line. All of them are off at first. A series of operations are carried out on these lamps. On t... 阅读全文
posted @ 2016-01-27 16:33 cnxo 阅读(123) 评论(0) 推荐(0)
HDOJ 2052 Picture
摘要:Problem Description Give you the width and height of the rectangle,darw it.Input Input contains a number of test cases.For each case ,there a... 阅读全文
posted @ 2016-01-27 15:51 cnxo 阅读(133) 评论(0) 推荐(0)