
数据结构
Genshin_Doge
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
PTA Cars on Campus (20point(s))
Exercise Description: Zhejiang University has 8 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers of the cars crossing the gate. Now with all the inform...原创 2019-12-30 18:03:28 · 275 阅读 · 0 评论 -
PTA 7-2 一元多项式的乘法与加法运算 (C语言实现)
题目网址:https://pintia.cn/problem-sets/15/problems/710 题目描述:设计函数分别求两个一元多项式的乘积与和。 输入格式: 输入分2行,每行分别先给出多项式非零项的个数,再以指数递降方式输入一个多项式非零项系数和指数(绝对值均为不超过1000的整数)。数字间以空格分隔。 输出格式: 输出分2行,分别以指数递降方式输出乘积多项式以及和多项式非零项的系数和指...原创 2019-10-09 15:35:23 · 2546 阅读 · 0 评论 -
PTA Pop Sequence(in C)
Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, …, N and pop randomly. You are supposed to tell if a given sequence of numbers is a possible pop sequence of the...原创 2019-10-11 10:49:10 · 265 阅读 · 0 评论 -
pta后缀表达式计算
code ElementType EvalPostfix( char *expr ) { double a[100]; char b[100]; int i=0,k=0; int num = 0; while (expr[i]!='\0') { int j=0; while (expr[i]==' ') ...原创 2019-10-11 11:17:58 · 1376 阅读 · 0 评论