网站什么时候做解析,中国旺旺(00151) 股吧,网页制作与网站建设实战大全 pdf下载,新型网站建设题目#xff1a;1.Huffuman树问题描述Huffman树在编码中有着广泛的应用。在这里#xff0c;我们只关心Huffman树的构造过程。给出一列数{pi}{p0, p1, …, pn-1}#xff0c;用这列数构造Huffman树的过程如下#xff1a;1. 找到{pi}中最小的两个数#xff0c;设为pa和pb int main() { int n; cin n; int a[200]; int len n; for (int i 0; i n; i) { cin a[i]; } int total_cost 0; while (len 1) { for (int i 0; i len - 1; i) { for (int j 0; j len - 1 - i; j) { if (a[j] a[j 1]) { swap(a[j], a[j 1]); } } } int sum a[0] a[1]; total_cost sum; for (int i 2; i len; i) { a[i - 2] a[i]; } a[len - 2] sum; len--; } cout total_cost endl; return 0; }题目2.回文数问题描述1221是一个非常特殊的数它从左边读和从右边读是一样的编程求大于等于n的所有这样的四位十进制数。输入说明输入一个整数nn9999输出说明按从小到大的顺序输出满足条件的四位十进制数。输入范例9888输出范例98899999个人总结1.这道题只要构建回文数就好。#includebits/stdc.h using namespace std; int main() { int n; cin n; for (int i 1; i 9; i) { for (int j 0; j 9; j) { int num i * 1000 j * 100 j * 10 i; if (num n) { cout num endl; } } } return 0; }题目3.字母图形问题描述利用字母可以组成一些美丽的图形下面给出了一个例子ABCDEFGBABCDEFCBABCDEDCBABCDEDCBABC这是一个5行7列的图形请找出这个图形的规律并输出一个n行m列的图形。输入说明输入一行包含两个整数n和m分别表示你要输出的图形的行数的列数。1 n, m 26。输出说明输出n行每行m个字符为你的图形。无多余空格或空行。输入范例5 7输出范例ABCDEFGBABCDEFCBABCDEDCBABCDEDCBABC个人总结1.这道题只需要找规律一开始是abcde后面往后一位前面多一个第一个数加一以此类推。#includebits/stdc.h using namespace std; int main() { int n, m; cin n m; for (int i 1; i n; i) { for (int j 1; j m; j) { int dis abs((i - 1) - (j - 1)); cout (char)(A dis); } cout endl; } return 0; }The operating systems for smartphones are similar to those used for tablet computers. iOS is used on the iPad and iPhone Microsoft Windows 10 Mobile is used on smartphones that offer a similar user experience as Windows laptops. The Android operating system used on Samsung tablets is also used for Samsung Galaxy and Motorola Droid smartphones.智能手机的操作系统与平板电脑所使用的系统相似。iOS 系统用于 iPad 和 iPhone。微软 Windows 10 移动版用于那些能提供与 Windows 笔记本电脑相似用户体验的智能手机。三星平板电脑所搭载的安卓操作系统同样也用于三星 Galaxy 系列和摩托罗拉 Droid 系列智能手机The list of digital devices is long. Many devices, such as fitness trackers, cameras, and handheld GPSs, are dedicated to specific tasks. Other devices perform a wider variety of tasks.数码设备的种类繁多。许多设备如健身手环、相机和手持 GPS 设备都专注于特定功能。而另一些设备则能执行更广泛的任务。Niche devices all have one thing in common: They contain a microprocessor. Some of these devices, such as smartwatches and fitness trackers, can be classified as wearable computers.小众专用设备都有一个共同点它们都内置微处理器。其中一些设备如智能手表和健身手环可归类为可穿戴计算机。