
考研复试
brooot
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
2012年杭电复试笔试第二题(贪吃蛇的碰撞问题)
题目: 贪吃蛇,给你一个50X50的表格,贪吃蛇初始化在某个位置,自身长度L格,头往四个方向移动,每次移动一格,判断是成功、出界还是撞到自己。输入第一行为移动的步数,第二行为这些步数的方向,输出判断。 代码: #include<cstdio> #include<iostream> using namespace std; struct node { int ...原创 2019-03-23 18:50:37 · 519 阅读 · 1 评论 -
2018年杭电复试笔试最后一题(洛谷 P1550 浇水)
题目: Farmer John has decided to bring water to his N (1 <= N <= 300) pastures which are conveniently numbered 1..N. He may bring water to a pasture either by building a well in that pasture or c...原创 2019-03-23 15:29:31 · 606 阅读 · 0 评论