摘要: 位图像素的颜色Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 0Accepted Submission(s): 0Problem Description有一个在位图上画出矩形程序,一开始位图都被初始化为白色(RGB颜色表示为R=G=B=255)。该程序能够按照顺序绘出N个矩形。新绘制的矩形能够覆盖位图上原有的颜色。程序执行完毕后,需要查询M个点的颜色,输出这些点的RGB值。每组数据都是在初始化后开始绘制。Input第一行包含参数N和M,分别表示 阅读全文
posted @ 2014-04-11 21:14 同学少年 阅读(140) 评论(0) 推荐(0) 编辑
摘要: S-NimTime Limit: 5000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4004Accepted Submission(s): 1732Problem DescriptionArthur and his sister Caroll have been playing a game called Nim for some time now. Nim is played as follows:The starting position has a number 阅读全文
posted @ 2014-04-11 15:00 同学少年 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Fibonacci again and againTime Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4152Accepted Submission(s): 1735Problem Description任何一个大学生对菲波那契数列(Fibonacci numbers)应该都不会陌生,它是这样定义的:F(1)=1;F(2)=2;F(n)=F(n-1)+F(n-2)(n>=3);所以,1,2,3,5,8,13……就是菲波那契数列。在HDOJ上有 阅读全文
posted @ 2014-04-11 08:49 同学少年 阅读(156) 评论(0) 推荐(0) 编辑