08 2021 档案

摘要:Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules 阅读全文
posted @ 2021-08-26 20:45 白玉神驹 阅读(82) 评论(0) 推荐(0)
摘要:重装系统之后git提交代码提示GitLab: Author ‘xxx‘ is not a member of team 重装系统git需要重新下载,需要配置用户名和邮箱 出现Author ‘xxx‘ is not a member of team原因主要有两种情况 一:配置完用户名密码没有和gitl 阅读全文
posted @ 2021-08-23 13:28 白玉神驹 阅读(2467) 评论(0) 推荐(0)
摘要:网易有道词典的取词、划词和navicat有冲突导致; 取消取词、划词即可; 或者关闭有道词典。 下载安装navicat程序及破解程序 1. 安装navicat,先不要打开 2. 断网 3. 打开破解程序,patch安装的navicat安装包中的exe文件 4. 生成激活码 5. 打开navicat工 阅读全文
posted @ 2021-08-22 14:48 白玉神驹 阅读(914) 评论(0) 推荐(0)
摘要:It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that c 阅读全文
posted @ 2021-08-20 14:16 白玉神驹 阅读(55) 评论(0) 推荐(0)
摘要:To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mat 阅读全文
posted @ 2021-08-19 14:31 白玉神驹 阅读(56) 评论(0) 推荐(0)
摘要:方式一: - 或者在项目根目录下创建.gitignore文件,并添加 /*.iml/.idea//.gitignore.svn/target/.idea/*.iml*.gitignore //.gitignore只能忽略那些原来没有被track(之前没有add过)的文件,如果某些文件已经被纳入了版本 阅读全文
posted @ 2021-08-17 18:06 白玉神驹 阅读(3727) 评论(1) 推荐(0)
摘要:With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing ba 阅读全文
posted @ 2021-08-11 16:00 白玉神驹 阅读(60) 评论(0) 推荐(0)
摘要:Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a 阅读全文
posted @ 2021-08-11 14:13 白玉神驹 阅读(51) 评论(0) 推荐(0)
摘要:二分查找:在一组数中找到指定的数 //1. 存储在数组中(如果是链表则无法使用二分查找) //2. 有序的排列 (递增或递减,或重复数都无影响) 递归法: //param:有序数组,检索开始为止,结束为止,要查找的数字 //return:返回目标数字所在为止,没有找到返回-1 int binSear 阅读全文
posted @ 2021-08-10 22:40 白玉神驹 阅读(240) 评论(0) 推荐(0)
摘要:This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu 阅读全文
posted @ 2021-08-09 23:05 白玉神驹 阅读(45) 评论(0) 推荐(0)
摘要:The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elev 阅读全文
posted @ 2021-08-09 17:47 白玉神驹 阅读(49) 评论(0) 推荐(0)
摘要:Given a sequence of K integers { N1​, N2​, ..., NK​ }. A continuous subsequence is defined to be { Ni​, Ni+1​, ..., Nj​ } where 1≤i≤j≤K. The Maximum S 阅读全文
posted @ 2021-08-09 16:06 白玉神驹 阅读(53) 评论(0) 推荐(0)
摘要:动态规划算法的核心 //动态规划算法的核心就是记住已经解决过的子问题的解 通过动态规划解决斐波那契数列 //斐波那契数列(Fibonacci) //递归法 int fib(int n) { if (n == 0) return 0; if (n == 1) return 1; return fib( 阅读全文
posted @ 2021-08-08 18:51 白玉神驹 阅读(231) 评论(0) 推荐(0)
摘要:At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door 阅读全文
posted @ 2021-08-08 15:41 白玉神驹 阅读(45) 评论(0) 推荐(0)
摘要:Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat 阅读全文
posted @ 2021-08-07 12:01 白玉神驹 阅读(48) 评论(0) 推荐(0)
摘要:1. 名称空间using namespace std的解释 //区分不同库中相同名称的函数、类、变量等。本质上,命名空间就是定义了一个范围。 //std是一个命名空间,C++标准函数或者对象都是在std中定义的,例如cin和cout,当我们要使用标准库的函数或对象时都需要用std来限定。 2. ci 阅读全文
posted @ 2021-08-06 22:21 白玉神驹 阅读(2383) 评论(0) 推荐(0)
摘要:A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Input Specification: Each inp 阅读全文
posted @ 2021-08-06 18:10 白玉神驹 阅读(63) 评论(0) 推荐(0)
摘要:基本概念: 深度优先搜索算法:一种用于遍历或搜索树或图的算法。沿着树的深度遍历树的节点,尽可能深的搜索树的分支。当节点V的所在边都已被搜寻过或者在搜寻时节点不满足,搜索将回溯到发现节点V的那条边的起始节点。整个过程反复进行直到所有节点都被访问为止。最糟糕时算法复杂度O(!n)。 输入样例: 6 a 阅读全文
posted @ 2021-08-06 16:58 白玉神驹 阅读(158) 评论(0) 推荐(0)
摘要:As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some ro 阅读全文
posted @ 2021-08-05 17:15 白玉神驹 阅读(53) 评论(0) 推荐(0)
摘要:基本思想: 通过Dijkstra计算图G中的最短路径时,需要指定一个起点D(即从顶点D开始计算)。 此外,引进两个数组S和U。S的作用是记录已求出最短路径的顶点(以及相应的最短路径长度),而U则是记录还未求出最短路径的顶点(以及该顶点到起点D的距离)。 初始时,数组S中只有起点D;数组U中是除起点D 阅读全文
posted @ 2021-08-04 22:45 白玉神驹 阅读(5356) 评论(0) 推荐(0)
摘要:This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu 阅读全文
posted @ 2021-08-04 18:02 白玉神驹 阅读(64) 评论(0) 推荐(0)
摘要:Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less tha 阅读全文
posted @ 2021-08-04 10:19 白玉神驹 阅读(72) 评论(0) 推荐(0)
摘要:1. const关键字声明的常量需要在一个语句中完成 2. C语言把任何非零和非空的值定为 true,把零或null定为false 3. switch : switch(a){ case 1:printf("Monday\n"); break; case 2:printf("Tuesday\n"); 阅读全文
posted @ 2021-08-04 10:17 白玉神驹 阅读(3044) 评论(0) 推荐(0)
摘要:本题要求编写程序,根据输入学生的成绩,统计并输出学生的平均成绩、最高成绩和最低成绩。建议使用动态内存分配来实现。 输入格式: 输入第一行首先给出一个正整数N,表示学生的个数。接下来一行给出N个学生的成绩,数字间以空格分隔。 输出格式: 按照以下格式输出: average = 平均成绩 max = 最 阅读全文
posted @ 2021-08-03 21:32 白玉神驹 阅读(254) 评论(0) 推荐(0)
摘要:英文辅音字母是除A、E、I、O、U以外的字母。本题要求编写程序,统计给定字符串中大写辅音字母的个数。 输入格式: 输入在一行中给出一个不超过80个字符、并以回车结束的字符串。 输出格式: 输出在一行中给出字符串中大写辅音字母的个数。 输入样例: HELLO World! 输出样例: 4 提交: #i 阅读全文
posted @ 2021-08-03 21:14 白玉神驹 阅读(291) 评论(0) 推荐(0)
摘要:输入n个朋友的信息,包括姓名、生日、电话号码,本题要求编写程序,按照年龄从大到小的顺序依次输出通讯录。题目保证所有人的生日均不相同。 输入格式: 输入第一行给出正整数n(<10)。随后n行,每行按照“姓名 生日 电话号码”的格式给出一位朋友的信息,其中“姓名”是长度不超过10的英文字母组成的字符串, 阅读全文
posted @ 2021-08-03 20:43 白玉神驹 阅读(583) 评论(0) 推荐(0)
摘要:给定n本书的名称和定价,本题要求编写程序,查找并输出其中定价最高和最低的书的名称和定价。 输入格式: 输入第一行给出正整数n(<10),随后给出n本书的信息。每本书在一行中给出书名,即长度不超过30的字符串,随后一行中给出正实数价格。题目保证没有同样价格的书。 输出格式: 在一行中按照“价格, 书名 阅读全文
posted @ 2021-08-03 16:52 白玉神驹 阅读(571) 评论(2) 推荐(0)
摘要:本题要求编写程序,计算两个二维平面向量的和向量。 输入格式: 输入在一行中按照“x1​ y1​ x2​ y2​”的格式给出两个二维平面向量v1​=(x1​,y1​)和v2​=(x2​,y2​)的分量。 输出格式: 在一行中按照(x, y)的格式输出和向量,坐标输出小数点后一位(注意不能输出−0.0) 阅读全文
posted @ 2021-08-03 14:00 白玉神驹 阅读(256) 评论(0) 推荐(0)
摘要:本题要求编写程序,以 hh:mm:ss 的格式输出某给定时间再过 n秒后的时间值(超过23:59:59就从0点开始计时)。 输入格式: 输入在第一行中以 hh:mm:ss 的格式给出起始时间,第二行给出整秒数 n(<60)。 输出格式: 输出在一行中给出hh:mm:ss格式的结果时间。 输入样例: 阅读全文
posted @ 2021-08-03 11:17 白玉神驹 阅读(256) 评论(0) 推荐(0)
摘要:本题要求编写程序,读入5个字符串,按由小到大的顺序输出。 输入格式: 输入为由空格分隔的5个非空字符串,每个字符串不包括空格、制表符、换行符等空白字符,长度小于80。 输出格式: 按照以下格式输出排序后的结果: After sorted: 每行一个字符串 输入样例: red yellow blue 阅读全文
posted @ 2021-08-03 10:11 白玉神驹 阅读(350) 评论(0) 推荐(0)
摘要:输入一个以#结束的字符串,本题要求滤去所有的非十六进制字符(不分大小写),组成一个新的表示十六进制数字的字符串,然后将其转换为十进制数后输出。如果在第一个十六进制字符之前存在字符“-”,则代表该数是负数。 输入格式: 输入在一行中给出一个以#结束的非空字符串。 输出格式: 在一行中输出转换后的十进制 阅读全文
posted @ 2021-08-02 22:15 白玉神驹 阅读(277) 评论(0) 推荐(0)
摘要:本题要求编写程序,将给定字符串中的大写英文字母按以下对应规则替换: 输入格式: 输入在一行中给出一个不超过80个字符、并以回车结束的字符串。 输出格式: 输出在一行中给出替换完成后的字符串。 输入样例: Only the 11 CAPItaL LeTtERS are replaced. 输出样例: 阅读全文
posted @ 2021-08-02 17:51 白玉神驹 阅读(268) 评论(0) 推荐(0)
摘要:一个矩阵元素的“鞍点”是指该位置上的元素值在该行上最大、在该列上最小。 本题要求编写程序,求一个给定的n阶方阵的鞍点。 输入格式: 输入第一行给出一个正整数n(1≤n≤6)。随后n行,每行给出n个整数,其间以空格分隔。 输出格式: 输出在一行中按照“行下标 列下标”(下标从0开始)的格式输出鞍点的位 阅读全文
posted @ 2021-08-02 14:47 白玉神驹 阅读(661) 评论(0) 推荐(0)