Practice
Practice copied to clipboard
王道考研机试指南(第二版) 习题代码
王道考研机试指南(第二版) 习题代码
大家好,我是王道考研机试指南(第二版)的作者炉灰。
我将本书所有的习题代码都提交到GitHub上进行托管,大家可以自行查看、学习和下载。
点击Star进行收藏,以方便之后进行查看。
点击Watch保持关注,如代码有后续更新,会第一时间收到通知。
点击Fork克隆到自己的GitHub下,如有bug,请使用Issues和我进行讨论;如有修改意见,请使用Pull requests提交你的修改意见。
如出现书中代码与GitHub代码不一致的情况,以GitHub的代码为准。
祝各位考生考上自己心仪的院校!!!
题目名称与链接
| 题目编号 | 题目名称 | 题目链接 | 参考代码 |
|---|---|---|---|
| 习题2.1 | 与7无关的数(北京大学复试上机题) | http://t.cn/E9lOOZQ | https://github.com/BenedictYoung/Practice/blob/master/Chapter2/2.1.cpp |
| 习题2.2 | 百鸡问题(北京哈尔滨工业大学复试上机题) | http://t.cn/E9ldhru | https://github.com/BenedictYoung/Practice/blob/master/Chapter2/2.2.cpp |
| 习题2.3 | old bill(上海交通大学复试上机题) | http://t.cn/E9jqijR | https://github.com/BenedictYoung/Practice/blob/master/Chapter2/2.3.cpp |
| 习题2.4 | Repeater(北京大学复试上机题) | http://t.cn/E9jcaVb | https://github.com/BenedictYoung/Practice/blob/master/Chapter2/2.4.cpp |
| 习题2.5 | Hello World for U(浙江大学复试上机题) | http://t.cn/E9jizni | https://github.com/BenedictYoung/Practice/blob/master/Chapter2/2.5.cpp |
| 习题2.6 | 日期差值(上海交通大学复试上机题) | http://t.cn/E9Yz0LE | https://github.com/BenedictYoung/Practice/blob/master/Chapter2/2.6.cpp |
| 习题2.7 | Day of Week(清华大学复试上机题) | http://t.cn/E9YZLbi | https://github.com/BenedictYoung/Practice/blob/master/Chapter2/2.7.cpp |
| 习题2.8 | 日期类(北京理工大学复试上机题) | http://t.cn/E9RJUp4 | https://github.com/BenedictYoung/Practice/blob/master/Chapter2/2.8.cpp |
| 习题2.9 | Grading(浙江大学复试上机题) | http://t.cn/E9rDPSq | https://github.com/BenedictYoung/Practice/blob/master/Chapter2/2.9.cpp |
| 习题2.10 | 路径打印(上海交通大学复试上机题) | http://t.cn/E9dvHs4 | https://github.com/BenedictYoung/Practice/blob/master/Chapter2/2.10.cpp |
| 习题2.11 | 坠落的蚂蚁(北京大学复试上机题) | http://t.cn/E9dhoRA | https://github.com/BenedictYoung/Practice/blob/master/Chapter2/2.11.cpp |
| 习题3.1 | 特殊排序(华中科技大学复试上机题) | http://t.cn/E9gio39 | https://github.com/BenedictYoung/Practice/blob/master/Chapter3/3.1.cpp |
| 习题3.2 | 整数奇偶排序(北京大学复试上机题) | http://t.cn/E9glPvp | https://github.com/BenedictYoung/Practice/blob/master/Chapter3/3.2.cpp |
| 习题3.3 | 小白鼠排队(北京大学复试上机题) | http://t.cn/E9gXh9Z | https://github.com/BenedictYoung/Practice/blob/master/Chapter3/3.3.cpp |
| 习题3.4 | 奥运排序问题(浙江大学复试上机题) | http://t.cn/E9gYpyl | https://github.com/BenedictYoung/Practice/blob/master/Chapter3/3.4.cpp |
| 习题3.5 | 找最小数(北京邮电大学复试上机题) | http://t.cn/E9gekWa | https://github.com/BenedictYoung/Practice/blob/master/Chapter3/3.5.cpp |
| 习题3.6 | 打印极值点下标(北京大学复试上机题) | http://t.cn/E9ehDw4 | https://github.com/BenedictYoung/Practice/blob/master/Chapter3/3.6.cpp |
| 习题3.7 | 找位置(华中科技大学复试上机题) | http://t.cn/E9eh4jY | https://github.com/BenedictYoung/Practice/blob/master/Chapter3/3.7.cpp |
| 习题4.1 | skew数(北京大学复试上机题) | http://t.cn/Ai8IALKI | https://github.com/BenedictYoung/Practice/blob/master/Chapter4/4.1.cpp |
| 习题4.2 | 单词替换(北京大学复试上机题) | http://t.cn/Ai8Iycp6 | https://github.com/BenedictYoung/Practice/blob/master/Chapter4/4.2.cpp |
| 习题4.3 | 首字母大写(北京大学复试上机题) | http://t.cn/Ai8I2hco | https://github.com/BenedictYoung/Practice/blob/master/Chapter4/4.3.cpp |
| 习题4.4 | 浮点数加法(北京大学复试上机题) | http://t.cn/Ai8I4v0j | https://github.com/BenedictYoung/Practice/blob/master/Chapter4/4.4.cpp |
| 习题4.5 | 后缀字符串排序(上海交通大学复试上机题) | http://1t.click/VGP | https://github.com/BenedictYoung/Practice/blob/master/Chapter4/4.5.cpp |
| 习题4.6 | 字符串匹配(北京航空航天大学复试上机题) | http://1t.click/VGG | https://github.com/BenedictYoung/Practice/blob/master/Chapter4/4.6.cpp |
| 习题4.7 | String Matching(上海交通大学复试上机题) | http://1t.click/VGH | https://github.com/BenedictYoung/Practice/blob/master/Chapter4/4.7.cpp |
| 习题5.1 | 堆栈的使用(吉林大学复试上机题) | http://t.cn/AiKKM6F6 | https://github.com/BenedictYoung/Practice/blob/master/Chapter5/5.1.cpp |
| 习题5.2 | 计算表达式(上海交通大学复试上机题) | http://t.cn/AiKKJjJ5 | https://github.com/BenedictYoung/Practice/blob/master/Chapter5/5.2.cpp |
| 习题6.1 | 八进制(华中科技大学复试上机题) | http://t.cn/AiCu0lHe | https://github.com/BenedictYoung/Practice/blob/master/Chapter6/6.1.cpp |
| 习题6.2 | 又一版A+B(浙江大学复试上机题) | http://t.cn/AiCuOSWv | https://github.com/BenedictYoung/Practice/blob/master/Chapter6/6.2.cpp |
| 习题6.3 | 进制转换(北京大学复试上机题) | http://t.cn/AiCuig9B | https://github.com/BenedictYoung/Practice/blob/master/Chapter6/6.3.cpp |
| 习题6.4 | 数制转换(北京大学复试上机题) | http://t.cn/AiCu6ne4 | https://github.com/BenedictYoung/Practice/blob/master/Chapter6/6.4.cpp |
| 习题6.5 | 最简真分数(北京大学复试上机题) | http://t.cn/AiCua2g8 | https://github.com/BenedictYoung/Practice/blob/master/Chapter6/6.5.cpp |
| 习题6.6 | Prime Number(上海交通大学复试上机题) | http://t.cn/AiCulrSh | https://github.com/BenedictYoung/Practice/blob/master/Chapter6/6.6.cpp |
| 习题6.7 | 约数的个数(清华大学复试上机题) | http://t.cn/Aip7dTUp | https://github.com/BenedictYoung/Practice/blob/master/Chapter6/6.7.cpp |
| 习题6.8 | 整除问题(上海交通大学复试上机题) | http://t.cn/Aip7eHBD | https://github.com/BenedictYoung/Practice/blob/master/Chapter6/6.8.cpp |
| 习题6.9 | 求root(N,K)(清华大学复试上机题) | http://t.cn/AipAw4B1 | https://github.com/BenedictYoung/Practice/blob/master/Chapter6/6.9.cpp |
| 习题6.10 | A+B for Matrices(浙江大学复试上机题) | http://t.cn/Aipb7GBG | https://github.com/BenedictYoung/Practice/blob/master/Chapter6/6.10.cpp |
| 习题6.11 | 递推数列(清华大学复试上机题) | http://t.cn/AipbZ2sS | https://github.com/BenedictYoung/Practice/blob/master/Chapter6/6.11.cpp |
| 习题6.12 | 数字阶梯求和(哈尔滨工业大学复试上机题) | http://t.cn/Aipak8BQ | https://github.com/BenedictYoung/Practice/blob/master/Chapter6/6.12.cpp |
| 习题6.13 | 大整数的因子(北京大学复试上机题) | http://t.cn/AipaFCJE | https://github.com/BenedictYoung/Practice/blob/master/Chapter6/6.13.cpp |
| 习题7.1 | 代理服务器(清华大学复试上机题) | http://t.cn/E9emuS9 | https://github.com/BenedictYoung/Practice/blob/master/Chapter7/7.1.cpp |
| 习题7.2 | To Fill or Not to Fill(清华大学复试上机题) | http://dwz.date/b2tj | https://github.com/BenedictYoung/Practice/blob/master/Chapter7/7.2.cpp |
| 习题8.1 | 杨辉三角形(西北工业大学复试上机题) | http://t.cn/Ai0KcLRI | https://github.com/BenedictYoung/Practice/blob/master/Chapter8/8.1.cpp |
| 习题8.2 | 全排列(北京大学复试上机题) | http://t.cn/Ai0K0hXZ | https://github.com/BenedictYoung/Practice/blob/master/Chapter8/8.2.cpp |
| 习题8.3 | 2的幂次方(上海交通大学复试上机题) | http://suo.im/5D5hnX | https://github.com/BenedictYoung/Practice/blob/master/Chapter8/8.3.cpp |
| 习题9.1 | 玛雅人的密码 | http://t.cn/Ai0lUhJj | https://github.com/BenedictYoung/Practice/blob/master/Chapter9/9.1.cpp |
| 习题9.2 | 神奇的口袋(北京大学复试上机题) | http://t.cn/Ai0u0GUz | https://github.com/BenedictYoung/Practice/blob/master/Chapter9/9.2.cpp |
| 习题9.3 | 八皇后(北京大学复试上机题) | http://t.cn/Ai0uOazs | https://github.com/BenedictYoung/Practice/blob/master/Chapter9/9.3.cpp |
| 习题10.1 | 二叉搜索树(浙江大学复试上机题) | http://t.cn/Ai9PUJtK | https://github.com/BenedictYoung/Practice/blob/master/Chapter10/10.1.cpp |
| 习题10.2 | 查找第K小的数(北京邮电大学复试上机题) | http://t.cn/AiCu5hcK | https://github.com/BenedictYoung/Practice/blob/master/Chapter10/10.2.cpp |
| 习题10.3 | 搬水果(吉林大学复试上机题) | http://t.cn/AiCu5nsQ | https://github.com/BenedictYoung/Practice/blob/master/Chapter10/10.3.cpp |
| 习题10.4 | 统计同成绩学生人数(浙江大学复试上机题) | http://t.cn/Ai0u0GUz | https://github.com/BenedictYoung/Practice/blob/master/Chapter10/10.4.cpp |
| 习题10.5 | 开门人和关门人(浙江大学复试上机题) | http://t.cn/AiCuM09f | https://github.com/BenedictYoung/Practice/blob/master/Chapter10/10.5.cpp |
| 习题10.6 | 谁是你的潜在朋友(北京大学复试上机题) | http://t.cn/AiCux4f7 | https://github.com/BenedictYoung/Practice/blob/master/Chapter10/10.6.cpp |
| 习题11.1 | 找出直系亲属(浙江大学复试上机题) | http://t.cn/AiOzTX5c | https://github.com/BenedictYoung/Practice/blob/master/Chapter11/11.1.cpp |
| 习题11.2 | 第一题(上海交通大学复试上机题) | http://t.cn/AiOhkgMJ | https://github.com/BenedictYoung/Practice/blob/master/Chapter11/11.2.cpp |
| 习题11.3 | Head of a Gang(浙江大学复试上机题) | http://t.cn/AiOzQMBH | https://github.com/BenedictYoung/Practice/blob/master/Chapter11/11.3.cpp |
| 习题11.4 | Freckles(北京大学复试上机题) | http://t.cn/AiW3Hbqr | https://github.com/BenedictYoung/Practice/blob/master/Chapter11/11.4.cpp |
| 习题11.5 | Jungle Roads(北京大学复试上机题) | http://t.cn/AiW33P91 | https://github.com/BenedictYoung/Practice/blob/master/Chapter11/11.5.cpp |
| 习题11.6 | 最短路径(上海交通大学复试上机题) | http://t.cn/AilPCAuL | https://github.com/BenedictYoung/Practice/blob/master/Chapter11/11.6.cpp |
| 习题12.1 | 吃糖果(北京大学复试上机题) | http://t.cn/AiQsVyKz | https://github.com/BenedictYoung/Practice/blob/master/Chapter12/12.1.cpp |
| 习题12.2 | 最大连续子序列(浙江大学复试上机题) | http://t.cn/AiYoUkjP | https://github.com/BenedictYoung/Practice/blob/master/Chapter12/12.2.cpp |
| 习题12.3 | 合唱队形(北京大学复试上机题) | http://t.cn/AiYNyHPe | https://github.com/BenedictYoung/Practice/blob/master/Chapter12/12.3.cpp |
| 习题12.4 | Coincidence(上海交通大学复试上机题) | http://t.cn/AiY03RO5 | https://github.com/BenedictYoung/Practice/blob/master/Chapter12/12.4.cpp |
| 习题12.5 | 采药(北京大学复试上机题) | http://dwz.win/Knc | https://github.com/BenedictYoung/Practice/blob/master/Chapter12/12.5.cpp |
| 习题12.6 | 最小邮票数(清华大学复试上机题) | http://t.cn/AiYlwchD | https://github.com/BenedictYoung/Practice/blob/master/Chapter12/12.6.cpp |
| 习题12.7 | 放苹果(北京大学复试上机题) | http://t.cn/AiQsyOnq | https://github.com/BenedictYoung/Practice/blob/master/Chapter12/12.7.cpp |
| 习题12.8 | 整数拆分(清华大学复试上机题) | http://t.cn/AiQsUM0Q | https://github.com/BenedictYoung/Practice/blob/master/Chapter12/12.8.cpp |