VargrantS
码龄8年
求更新 关注
提问 私信
  • 博客:9,554
    9,554
    总访问量
  • 73
    原创
  • 1
    粉丝
  • 0
    关注
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:上海市
加入CSDN时间: 2017-09-20

个人简介:吃喝玩乐,写代码

博客简介:

VargrantS的博客

查看详细资料
个人成就
  • 获得0次点赞
  • 内容获得0次评论
  • 获得3次收藏
创作历程
  • 73篇
    2019年
成就勋章
TA的专栏
  • PTA Basic
    52篇
  • 考研
    5篇

TA关注的专栏 0

TA关注的收藏夹 0

TA关注的社区 0

TA参与的活动 0

  • 最近
  • 文章
  • 专栏
  • 代码仓
  • 资源
  • 收藏
  • 关注/订阅/互动
更多
  • 最近

  • 文章

  • 专栏

  • 代码仓

  • 资源

  • 收藏

  • 关注/订阅/互动

  • 社区

  • 帖子

  • 问答

  • 课程

  • 视频

搜索 取消

1016 Phone Bills

A long-distance telephone company charges its customers by the following rules:Making a long-distance call costs a certain amount per minute, depending on the time of day when the call is made. When ...
原创
发布博客 2019.09.07 ·
164 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1015 Reversible Primes

A reversible prime in any number system is a prime whose “reverse” in that number system is also a prime. For example in the decimal system 73 is a reversible prime because its reverse 37 is also a pr...
原创
发布博客 2019.08.16 ·
162 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1014 Waiting in Line

Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the customers to wait in line are:The spac...
原创
发布博客 2019.08.16 ·
185 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1013 Battle Over Cities

It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We must know immediately if we nee...
原创
发布博客 2019.08.04 ·
128 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1012 The Best Rank

To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathematics (Calculus or Linear Algrbra), and E - Eng...
原创
发布博客 2019.08.04 ·
133 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1011 World Cup Betting

With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing battles for the World Cup trophy in South Africa. Si...
原创
发布博客 2019.08.04 ·
107 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

数据结构_06_查找

一、基本概念和一般方法1. 基本概念关键字、记录;平均比较次数(平均查找长度)【ASL】:ASL=∑i=0npi×ci ASL=\sum_{i=0}^{n}{p_i}\times c_iASL=i=0∑n​pi​×ci​nnn 表示查找表中记录个数,pip_ipi​ 表示查找第 iii 个记录的概率,cic_ici​ 表示找到第 iii 个记录所需的比较次数2. 一般方法...
原创
发布博客 2019.08.04 ·
233 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1010 Radix

Given a pair of positive integers, for example, 666 and 110110110, can this equation 6=1106 = 1106=110 be true? The answer is yes, if 666 is a decimal number and 110110110 is a binary number.Now for ...
原创
发布博客 2019.08.04 ·
132 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

数据结构_05_排序

一、基本概念稳定性:当待排序列中有两个或两个以上相同的关键字时,排序前后这些关键字的相对位置若没有发生改变,则说排序算法是稳定的;排序算法分类:插入类、交换类、选择类、归并类;二、插入类1. 直接插入排序void InsertSort(ElementType A[], int N){ int P, i; ElementType Tmp; for (P = 1; P <...
原创
发布博客 2019.08.02 ·
129 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1009 Product of Polynomials

This time, you are supposed to find A×BA×BA×B where AAA and BBB are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, and each line contains the...
原创
发布博客 2019.08.02 ·
137 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1008 Elevator

The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified order. It costs 6 sec...
原创
发布博客 2019.08.02 ·
117 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1007 Maximum Subsequence Sum

Given a sequence of K integers N​1​​,N​2​​,...,NK​​{ N​_1​​, N​_2​​, ..., N_K​​ }N​1​​​,N​2​​​,...,NK​​​. A continuous subsequence is defined to be Ni​​,N​i+1​​,...,N​j​​{ N_i​​, N​_{i+1​}​, ..., N​_j...
原创
发布博客 2019.08.02 ·
95 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1006 Sign In and Sign Out

At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of signing in’s and out’s, you...
原创
发布博客 2019.08.02 ·
114 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1005 Spell It Right

Given a non-negative integer NNN, your task is to compute the sum of all the digits of NNN, and output every digit of the sum in English.Input Specification:Each input file contains one test case. E...
原创
发布博客 2019.08.02 ·
106 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1004 Counting Leaves

A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.Input Specification:Each input file contains one test case. Each case starts w...
原创
发布博客 2019.08.01 ·
97 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1003 Emergency

As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams in each city and the l...
原创
发布博客 2019.08.01 ·
105 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

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 one test case. Each case occupies 2 lines, and each line contains the informati...
原创
发布博客 2019.08.01 ·
115 阅读 ·
0 点赞 ·
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 there are less than four digits).Input Specification:Each input fil...
原创
发布博客 2019.08.01 ·
106 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

数据结构_04_图

一、基本概念与存储结构1. 基本概念图:由顶点的有穷集合 V 和边的集合 E 所组成(有向图、无向图);顶点的度:与顶点 v 相关的边的条数成为顶点 v 的度(出度、入度);若有向图中有 nnn 个顶点,则最多有 n(n−1)n(n-1)n(n−1) 条边,则将这样的图称为有向完全图 ,对于无向图,则最多有 n(n−1)/2n(n-1)/2n(n−1)/2 条边,称其为无向完全图;路径...
原创
发布博客 2019.08.01 ·
191 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

数据结构_03_树

啦啦啦
原创
发布博客 2019.06.27 ·
161 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多