摘要: 清华OJ——数据结构与算法实验(中国石油大学) 无线广播(Broadcast) Description A broadcaster wants to set up a radio broadcast transmitter in an area. There are n towns in the a 阅读全文
posted @ 2021-11-27 20:45 sylvia11 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 清华OJ——数据结构与算法实验(中国石油大学) 旅行商(TSP) Description Shrek is a postman working in the mountain, whose routine work is sending mail to n villages. Unfortunate 阅读全文
posted @ 2021-11-27 20:43 sylvia11 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 清华OJ——数据结构与算法实验(中国石油大学) 真二叉树重构(Proper Rebuild) Description In general, given the preorder traversal sequence and postorder traversal sequence of a bin 阅读全文
posted @ 2021-11-27 20:42 sylvia11 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 清华OJ——数据结构与算法实验(中国石油大学) 列车调度(Train) Description Figure 1 shows the structure of a station for train dispatching. Figure 1 In this station, A is the en 阅读全文
posted @ 2021-11-27 20:41 sylvia11 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 灯塔(LightHouse) Description As shown in the following figure, If another lighthouse is in gray area, they can beacon each other. For example, in follow 阅读全文
posted @ 2021-11-27 20:39 sylvia11 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 清华OJ——数据结构与算法实验(中国石油大学) 祖玛(Zuma) Description Let's play the game Zuma! There are a sequence of beads on a track at the right beginning. All the beads 阅读全文
posted @ 2021-11-27 20:37 sylvia11 阅读(1116) 评论(0) 推荐(0) 编辑
摘要: 清华OJ——数据结构与算法实验(中国石油大学) 范围查询(Range) Descriptioin Let S be a set of n integral points on the x-axis. For each given interval [a, b], you are asked to c 阅读全文
posted @ 2021-11-27 20:35 sylvia11 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 目录 一、知识点总结 第六章:指针、字符串、结构体、文件在游戏中的应用 二、代码实践 6.2字符雨 6.3互动粒子仿真 6.4飞机大战(升级版) 7.1可视化汉诺塔 7.2基于链表的祖玛游戏 一、知识点总结 第六章:指针、字符串、结构体、文件的应用 1 6.1指针 2 用指针在函数间传值可以避免过多 阅读全文
posted @ 2021-11-27 19:44 sylvia11 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 目录 一、知识点总结 第四章 4.2多球反弹 4.3实时钟表 4.5鼠标交互的消砖块 第五章 图片和声音素材在游戏的应用 二、代码实现 第五章 5.1flappy bird 5.2飞机大战 5.3复杂动画效果 5.4双人反弹球 一、知识点总结 第四章 绘图游戏开发 1 4.2多球反弹 2 多球反弹, 阅读全文
posted @ 2021-11-25 17:26 sylvia11 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 目录 一、知道点归纳 第三章 数组在游戏的使用 第四章 easyX总结 二、代码实现 第三章 3.2消砖块 3.3空战游戏 3.4贪吃蛇 第四章 4.2多球反弹 4.3实时钟表 4.4Easy实现消砖块 一、知识点归纳 第三章 数组在游戏的使用 1 数组的使用 2 3.1生命游戏 3 将画面当二维数 阅读全文
posted @ 2021-11-24 21:38 sylvia11 阅读(145) 评论(0) 推荐(0) 编辑