- 博客(5)
- 收藏
- 关注
原创 顺序表的基本操作
顺序表的基本操作主要分为顺序表的初始化,取值,查找,插入,删除。 Status InitList(SqList &L); Status GetElem (SqList L,int i,int &e); Status LocatElem(SqList L,int e); Status ListInsert(SqList &L,int i,int e); Status ListDelete (SqList &L,int i); 其中取值和查找不需要改变顺序表的内容,所以在函数形参
2021-03-16 19:12:39
392
1
原创 ICPC冬令营
冬令营第四天 第一题 题解 #include <stdio.h> #include <math.h> int main(){ int v,v0,i=1; double max=0,a; int count=0; while(1){ scanf("%d %d",&v,&v0); if(v==0&&v0==0) return 0; while(v/i&
2021-01-21 21:19:40
221
原创 ICPC冬令营
冬令营第三天 今天学习的主要内容为几何初步。 第一题 Birthday Cake 题干 题解 本题大意为蛋糕上有若干个樱桃,用一条线平均的将其分开,可以用暴力法直接测试出答案。 #include <stdio.h> int main(){ int n,z; int x[100],y[100]; scanf("%d",&n); for(int i=0;i<2*n;i++){ scanf("%d %d",&x[i],&y
2021-01-20 20:40:42
223
原创 ICPC冬令营
冬令营第二天 今天学习的主要内容为结构体和指针。 第一题 Maya Calendar POJ 题干 During his last sabbatical, professor M. A. Ya made a surprising discovery about the old Maya calendar. From an old knotted message, professor discovered that the Maya civilization used a 365 day long year,
2021-01-19 23:31:58
233
原创 ICPC冬令营
冬令营第一天 今天学习的主要内容为函数和结构体,因为网络原因写几道具有代表性的题目。 第一题 Specialized Four-Digit Numbers 题干 Find and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals the sum of its digits when represented in hexadecimal (
2021-01-18 21:49:39
194
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅