Live2D
摘要: Description输入两个正整数 n, m,输出 n!/m!,其中阶乘定义为 n!= 1*2*3*...*n (n>=1)。 比如,若 n=6, m=3,则 n!/m!=6!/3!=720/6=120。 是不是很简单?现在让我们把问题反过来:输入 k=n!/m!,... 阅读全文
posted @ 2018-05-09 21:49 ITryagain 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Description小V是中南大学图书馆的图书管理员,每天要整理很多同学们还回来的书。久而久之,他认识了很多常来图书馆的同学,比如说小L。简而言之吧,就是小V喜欢上了小L,并且想在下一次她来还书的时候表白。小V的创意还是不错的,他精心准备了各种材料,打算构成“L”,... 阅读全文
posted @ 2018-05-09 21:31 ITryagain 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Description这几天,子浩君潜心研究线性代数。 行列式的值定义如下: 其中,τ(j1j2...jn)为排列j1j2...jn的逆序数。子浩君很厉害的,但是头脑经常短路,所以他会按照行列式值的定义去计算,这个行列式子浩君也还是能算对的。但是,在计算的过程中,如果... 阅读全文
posted @ 2018-05-09 21:25 ITryagain 阅读(205) 评论(0) 推荐(0) 编辑
摘要: DescriptionThe Barareh village is on fire due to the attack of the virtual enemy. Several places are already on fire and the fire is s... 阅读全文
posted @ 2018-05-09 21:21 ITryagain 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Description小X在搬砖写一个论坛,这个时候老板突然想到一个功能,让小X今天赶快实现。大概就是如果某个人是你好友的好友那么他的头像上面会有特殊的标志。小X想不到较好的办法来解决如何验证两个人是不是好友的好友,现在向你求助。 Input第一行是一个整数T(1#... 阅读全文
posted @ 2018-05-09 21:16 ITryagain 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Description Most of the time when rounding a given number, it is customary to round to some multiple of a power of 10. However, the... 阅读全文
posted @ 2018-05-09 21:12 ITryagain 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Description Now we have a number, you can swap any two adjacent digits of it, but you can not swap more than K times. Then, what is... 阅读全文
posted @ 2018-05-09 21:05 ITryagain 阅读(100) 评论(0) 推荐(0) 编辑
摘要: DescriptionIn the planet Pandora, Jake found an old encryption algorithm. The plaintext, key and ciphertext are all four decimal numbe... 阅读全文
posted @ 2018-05-09 21:02 ITryagain 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Description Yucept21和他的室友Zyn因为宿舍没电去网吧上网,上了27分钟,Cs打电话来说来电了。所以Yucept21在第29分钟下机了,上网的费用是一块钱,然后Zyn墨迹了两分钟,第31分钟下机,上机费用是2元。现在知道网吧是按照半个小时计费的,假... 阅读全文
posted @ 2018-05-09 18:45 ITryagain 阅读(120) 评论(0) 推荐(0) 编辑