上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页
摘要: 题目:1002 A+B for Polynomials This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contains o 阅读全文
posted @ 2022-11-30 21:26 Yohoc 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 红黑树 性质1. 结点是红色或黑色。 [3] 性质2. 根结点是黑色。 [3] 性质3. 所有叶子都是黑色。(叶子是NIL结点) [3] 性质4. 每个红色结点的两个子结点都是黑色。(从每个叶子到根的所有路径上不能有两个连续的红色结点) 性质5. 从任一结点到其每个叶子的所有路径都包含相同数目的黑色 阅读全文
posted @ 2022-11-30 20:33 Yohoc 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 原因一:检查是否定义handler, 需要定义handler来接受sendMessage 发送的数据,具体代码如下: private Handler handler; handler = new Handler() { @Override public void handleMessage(Mess 阅读全文
posted @ 2022-11-28 16:12 Yohoc 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 1、下载MySQL-connector-jave.jar包 地址如下:https://mvnrepository.com/artifact/mysql/mysql-connector-java/5.1.46 2、将jar包移到如图所示的位置,然后右键 add as library 3、在Androi 阅读全文
posted @ 2022-11-23 21:26 Yohoc 阅读(1630) 评论(0) 推荐(0) 编辑
摘要: 题目:1007 Maximum Subsequence Sum Given a sequence of K integers { N1​, N2​, ..., NK​ }. A continuous subsequence is defined to be { Ni​, Ni+1​, ..., Nj 阅读全文
posted @ 2022-11-12 16:40 Yohoc 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 1001 A+B Format Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless th 阅读全文
posted @ 2022-11-12 14:49 Yohoc 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 题目:1109 擅长C 当你被面试官要求用 C 写一个“Hello World”时,有本事像下图显示的那样写一个出来吗? 输入格式: 输入首先给出 26 个英文大写字母 A-Z,每个字母用一个 7×5 的、由 C 和 . 组成的矩阵构成。最后在一行中给出一个句子,以回车结束。句子是由若干个单词(每个 阅读全文
posted @ 2022-11-11 21:41 Yohoc 阅读(34) 评论(0) 推荐(0) 编辑
摘要: https://pic2.zhimg.com/80/v2-232be900bb73e30cf2cb0306a9efc6c5_1440w.jpg 阅读全文
posted @ 2022-11-08 15:08 Yohoc 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 题目 考察点A1001 A+B Format 数字相加格式化输出 简单模拟A1002 A+B for Polynomials 多项式相加 简单模拟A1003 Emergency 救援最短路径和最大救援部队 Dijkstra算法A1004 Counting Leaves DFSA1005 Spell 阅读全文
posted @ 2022-11-05 16:14 Yohoc 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 题目:1054 求平均值 本题的基本要求非常简单:给定 N 个实数,计算它们的平均值。但复杂的是有些输入数据可能是非法的。一个“合法”的输入是 [−1000,1000] 区间内的实数,并且最多精确到小数点后 2 位。当你计算平均值的时候,不能把那些非法的数据算在内。 输入格式: 输入第一行给出正整数 阅读全文
posted @ 2022-11-05 15:41 Yohoc 阅读(17) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页