自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 267 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 127

原创 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 109

原创 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 129

原创 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 108

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除