厦门大学OJ题解
文章平均质量分 55
谁_见过风
最后的莫西干人
展开
-
xmu 1007
DescriptionCalculate a*bInputTwo integer a,b (01000)OutputOutput a * bSample Input5 7Sample Output35Sourcexmu 两个大整原创 2014-06-17 20:54:59 · 664 阅读 · 0 评论 -
xmu 1016 Magic Square
Description In recreational mathematics, a magic square of order n is an arrangement of n² numbers, usually distinct integers, in a square, such that the n numbers in all rows, all columns, and原创 2014-07-22 21:21:00 · 1098 阅读 · 0 评论 -
xmu 1009
DescriptionButchering Farmer John's cows always yields the best prime rib. You can tell prime ribs by looking at the digits lovingly stamped across them, one by one, by FJ and the USDA. Farmer Joh原创 2014-06-17 21:57:44 · 600 阅读 · 0 评论 -
xmu 1001 宅男健身计划
Description 宅男TheBeet有一天心血来潮发誓要开始锻炼身体,他给自己订了一个计划:他在宿舍的中间摆了一个椅子,今天也就是第0天绕着椅子跑1圈,明天也就是第1天绕着椅子跑2圈,后天也就是第2天绕着椅子跑4圈,大后天也就是第3天跑8圈……以后每天跑的圈数是前一天的两倍。TheBeet对自己的计划信心满满,认为自己肯定能坚持下去。但是TheBeet数学不太好,今天是他定下计原创 2014-06-17 19:57:38 · 1218 阅读 · 0 评论 -
xmu 1015
DescriptionThe blonde Angela has a new whim: internet chats. Of course, as any blonde, she writes her messages using the upper case. You are the moderator of Angela's favorite chat and you're fed原创 2014-07-22 14:13:30 · 708 阅读 · 0 评论 -
xmu 1004
各种O(nlogn )的排序挑一个就可以AC了原创 2014-06-17 20:07:34 · 596 阅读 · 0 评论 -
xmu 1006
DescriptionCalculate a+bInputTwo integer a,b (01000)OutputOutput a + bSample Input5 7Sample Output12Sourcexmu 大数原创 2014-06-17 20:40:50 · 509 阅读 · 0 评论 -
xmu 1010
DescriptionConsider the number triangle shown below. Write a program that calculates the highest sum of numbers that can be passed on a route that starts at the top and ends somewhere on the base.原创 2014-06-17 22:03:12 · 468 阅读 · 0 评论 -
xmu 1000 A+B
DescriptionCalculate a+bInputTwo integer a,b (0OutputOutput a+bSample Input1 2Sample Output3原创 2014-06-17 19:45:24 · 410 阅读 · 0 评论 -
xmu 1003 Sort
各种排序随便挑一个就AC了原创 2014-06-17 20:06:11 · 723 阅读 · 0 评论 -
xmu 1008
N皇后问题。。直接跳过了。。原创 2014-06-17 20:58:54 · 557 阅读 · 0 评论 -
xmu 1002 C=?+?
DescriptionInput c,Output a and b that a + b = cInputa signed 32bit integer cOutputOutput just one pair of signed 32bit integers a and b.Sample Input1原创 2014-06-17 20:02:41 · 898 阅读 · 1 评论 -
xmu 1017
Description TheBeet有一个块大小为(2N*2N)的棋盘。这个棋盘是由一个个格子组成的。很不幸的,在一个月黑风高的晚上,它被摔坏了。不幸中的万幸,它只被摔坏了一个格子(此格子可以在棋盘的任意位置)。但是这个棋盘再也不能用来下棋了,于是TheBeet想把这个棋盘切成如以下的几种小块。但是TheBeet不想浪费任何一个格子,您能帮助TheBeet么?原创 2014-07-23 14:02:14 · 1181 阅读 · 0 评论 -
xmu 1012
Description 很多人的电脑里面都有一些隐私,TheBeet也不例外。为了保护这些东西不被别人发现,TheBeet写了一个加密程序加密。不过今天,很不幸的,你得到了TheBeet电脑里面加密后的东西和他加密程序的源代码。现在,好奇的你想知道TheBeet的秘密。下面是加密程序的源代码:#include #include int main(){原创 2014-07-22 13:58:54 · 941 阅读 · 0 评论 -
xmu 1011
DescriptionWrite a program that will accept a fraction of the form N/D, where N is the numerator and D is the denominator and print the decimal representation. If the decimal representation has a原创 2014-07-22 13:05:03 · 496 阅读 · 0 评论 -
xmu 1005
DescriptionGenerate the complete permutation of 1..NInputEach input file contains only one non-negative integer N (0OutputOutput N! Lines, according to lexicographic o原创 2014-06-17 20:23:48 · 652 阅读 · 0 评论 -
xmu 1018 零零漆的作
Description 世上没有铁饭碗, 裁员风也刮到了组织, 尽管零零漆为组织做了那么多贡献, 他还是得通过组织的素质能力以及水平测试才能继续他的特工工作. 凭他的经验以及高超的杀猪功力, 他顺利的通过了前面的测试, 来到了算法测试关. 给他的问题很简单----给两个整数n,m, 求斐波纳契数fib[n] % m...算卖肉钱久了, 零零漆还真想不起怎么去计算斐波纳契数了, 但是他在考场竟然原创 2015-08-30 11:56:05 · 996 阅读 · 0 评论