摘要: Sample Input Sample Output 题意:给一个n n的图,每次最多能跳k个格子,只能向南(下)或东(右)跳,不能落在‘\ ’上,求从右上角到左下角的最短时间。 题解:看到图、最短时间第一个反应就是BFS,可惜超时,候来优化了几次,勉强卡时间过了,别人貌似有DP过的,以后抽时间补上 阅读全文
posted @ 2018-09-28 23:15 洛沐辰 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Monkey and Banana Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem Description A group of researchers are desi 阅读全文
posted @ 2018-09-28 16:55 洛沐辰 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Ignatius and the Princess IV Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32767 K (Java/Others) Problem Description "OK, you are not too 阅读全文
posted @ 2018-09-28 16:04 洛沐辰 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Hidden Hierarchy "题目链接" 题目描述 You are working on the user interface for a simple text based file explorer. One of your tasks is to build a navigation p 阅读全文
posted @ 2018-09-27 20:25 洛沐辰 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 机器人II Time Limit: 1000 ms Memory Limit: 65536 KiB Problem Description 自从xiao_wu发明了只能向左转与向右转的机器人以后,热血沸腾的他又给机器人加了一个操作。假设机器人在二维坐标系的原点,一开始面向Y轴正方向(北N),现在给你 阅读全文
posted @ 2018-09-27 15:22 洛沐辰 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 统计数字问题 Time Limit: 1000 ms Memory Limit: 32768 KiB Problem Description 一本书的页码从自然数1 开始顺序编码直到自然数n。书的页码按照通常的习惯编排,每个页码都不含多余的前导数字0。例如,第6 页用数字6 表示,而不是06 或00 阅读全文
posted @ 2018-09-27 15:05 洛沐辰 阅读(422) 评论(0) 推荐(0) 编辑
摘要: 选票统计 Time Limit: 1000 ms Memory Limit: 65536 KiB Problem Description 某校学生会主席由全校学生投票选举产生,共有m名候选人报名参选,编号为1到m(0<m<1000),全校有n名学生(0<n<30000),每人都可以投票。但每人只能投 阅读全文
posted @ 2018-09-27 14:56 洛沐辰 阅读(314) 评论(0) 推荐(0) 编辑
摘要: Time Time Limit: 1000 ms Memory Limit: 65536 KiB Problem Description Digital clock use 4 digits to express time, each digit is described by 3 3 charac 阅读全文
posted @ 2018-09-27 14:44 洛沐辰 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 多项式求和 Time Limit: 1000 ms Memory Limit: 65536 KiB Problem Description 多项式描述如下: 1 1/2 + 1/3 1/4 + 1/5 1/6 …… 先请你求出多项式前n项的和。 Input 第一行输入一个数T代表测试数据个数(T=3 阅读全文
posted @ 2018-09-27 14:21 洛沐辰 阅读(687) 评论(0) 推荐(0) 编辑
摘要: 简单枚举类型——植物与颜色 Time Limit: 1000 ms Memory Limit: 65536 KiB Problem Description 请定义具有red, orange, yellow, green, blue, violet六种颜色的枚举类型color,根据输入的颜色名称,输出 阅读全文
posted @ 2018-09-27 11:33 洛沐辰 阅读(293) 评论(0) 推荐(0) 编辑