摘要:
1005 Spell It Right (20分) 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
阅读全文
posted @ 2020-01-02 15:24
老年菜鸡
阅读(177)
推荐(0)
摘要:
1004 Counting Leaves (30分) A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. In
阅读全文
posted @ 2020-01-02 14:56
老年菜鸡
阅读(85)
推荐(0)
摘要:
1003 Emergency (25分) As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities
阅读全文
posted @ 2019-12-30 21:58
老年菜鸡
阅读(361)
推荐(0)
摘要:
1002 A+B for Polynomials (25分) This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contain
阅读全文
posted @ 2019-12-25 21:58
老年菜鸡
阅读(267)
推荐(0)
摘要:
1001 A+B Format (20分) Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unl
阅读全文
posted @ 2019-12-25 21:55
老年菜鸡
阅读(165)
推荐(0)
摘要:
模拟,先处理表格后面的行和列再处理前面的(无论是插入还是删除),否则操作会出问题。 #include<iostream> #include<cstdio> #include<algorithm> using namespace std; #define _for(i, a, b) for (int
阅读全文
posted @ 2019-12-24 21:57
老年菜鸡
阅读(141)
推荐(0)
摘要:
纯暴力题 #include<cstdio> #include<iostream> #include<cmath> using namespace std; const int N = 1e3 + 5; #define ll long long #define _for(i, a, b) for (i
阅读全文
posted @ 2019-11-17 17:47
老年菜鸡
阅读(276)
推荐(0)
摘要:
As an ACM-ICPC newbie, Aishah is learning data structures in computer science. She has already known that a stack, as a data structure, can serve as a
阅读全文
posted @ 2019-10-01 21:25
老年菜鸡
阅读(254)
推荐(0)
摘要:
题目链接:http://210.43.224.19/oj/problem.php?id=1190 任务描述 使用补全的先序序列生成二叉树,再二叉树线索化,最后显示线索二叉树中序遍历的结果。 输入 第1行为一个整数t(1≤t≤10),表示接下来有t 个测试数据。 第2行为二叉树的补全(#)先序序列。
阅读全文
posted @ 2019-09-25 22:27
老年菜鸡
阅读(405)
推荐(0)
摘要:
枚举每一列的位置,求哪个字符出现的次数最多 #include<iostream> #include<string> #include<map> #include<cstdio> #include<vector> #include<algorithm> #include<assert.h> #incl
阅读全文
posted @ 2019-09-21 17:47
老年菜鸡
阅读(157)
推荐(0)
ヾ(≧O≦)〃嗷~
#back-to-top {
background-color:wheat;
bottom: 0;
box-shadow: 0 0 6px ;
color: #444444;
padding: 2px 2px;
position: fixed;
right: 20px;
cursor: pointer;
}