第十八天PAT-A1145 Hashing - Average Search Time哈希表及冲突处理模拟

PAT-A1145 Hashing - Average Search Time 题目内容及题解 The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of integer keys from the table and output the average sea... 阅读详情

A1145

写在前面:

如果你也在找为何插入时的上界为<msize而查找时的上界为<=msize、或者为什么查找失败了要多加一次查找次数、或者为什么查找次数最开始要初始化为1,本文无法解答。

Description:

首先将一组无重复的正整数插入到哈希表中,然后在哈希表中尝试找到另一个键的序列并输出平均查找时间(即:查找该数所需的比较次数),哈希函数定义为H(key)=key%TSize,TSize是哈希表的最大size。处理冲突使用**Quadratic (adj.平方的,二次方的)**探测(仅使用正数递增);

注意表达小如果是素数则最佳,若TSize不是素数,则需要将表达小重新定义为大于用户所给表的最小素数。

Input:

  • 对于每个样例,首行三个正数:MSize表大小,N用户输入数字数,M需要被找到的主键数;
  • 下一行输入N个不同的正整数,再下一行是M个正整数键值;

Output:

  • 对于每个样例,如果不能插入一个数字,输出不能插入,X为所要输入的数字,最终打印出M个主键的平均查找时间,保留1位小数;

思路:

  • 根据除留余数法的散列函数及其**平方探查法(Quadratic Probing)**思路进行模拟即可;
  • 处理冲突的三个方法:线性探查法(Linear Probing)、平方探查法(Quadratic Probing)、以及链地址法(拉链法),其中前两个计算了新的Hash值,称为开放定址法;
#include<iostream>
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<algorithm>
#include<map>
#include<vector>
#include<queue>
using namespace std;
const int maxn = 1e5+5;
int msize, n, m;
bool ispri(int n){
    if(n<2)return false;
    for(int i=2; i+i <= n; i++)
        if(n%i==0) return false;
    return true;
}
int hashtbl[maxn];
int main()
{
#ifdef ONLINE_JUDGE
#else
    freopen("1.txt", "r", stdin);
#endif // ONLINE_JUDGE
    scanf("%d%d%d", &msize, &n, &m);
    memset(hashtbl, -1, sizeof(hashtbl));   //哈希表初始化为-1
    while(!ispri(msize))msize++;    //找到大于msize的最小素数
    int t;
    while(n--){
        scanf("%d", &t);
        bool flag = false;  //用于标记当前值能否插入哈希表
        for(int i = 0; i < msize; i++)
            if(hashtbl[(t+i*i)%msize]==-1){ //当前位置空闲,插入
                flag = true;
                hashtbl[(t+i*i)%msize] = t;
                break;
            }
        if(!flag) printf("%d cannot be inserted.\n", t);//遍历完毕仍未插入
    }
    int cnt = 0, aCnt;  //总查找次数计数及每次查找所用次数
    for(int j = 0; j < m; j++){
        scanf("%d", &t);
        aCnt = 0;   //归零每次所用次数
        for(int i = 0; i <= msize; i++){
            aCnt++;
            if(hashtbl[(t+i*i)%msize]==-1 || hashtbl[(t+i*i)%msize]==t) break;
        }
        cnt += aCnt;
    }
    printf("%.1f\n", cnt*1.0/m);
    return 0;
}
图片识别——均值哈希算法 均值哈希算法(Average hash algorithm,AHA)第一次是从著名的阮一峰阮老师的博文《相似图片搜索的原理》看到的。而此篇文章与阮老师也很类似Looks Like It - The Hacker Factor Blog。这里不对原谅做摘抄,有兴趣的自己看一下,在此对学习过程中的心得和遇到过的问题做一下总结。 均值哈希算法,是感知哈希算法中最简单的一种,基本原理是对图片降频。对于图片,高频有很多细节,如颜色、亮度、透明度等等,而低频丢弃细节,只有图像结构。 算法步骤 ... 阅读详情

相关推荐

Hermes Agent Windows安装教程:本地智能体离线部署实战

本地智能体(Local Agent)是一种运行在用户设备端、无需云端依赖即可响应自然语言指令并自动化执行任务的轻量级AI运行时框架。其核心原理基于配置驱动的任务监听与脚本调用机制,通过服务化驻留实现持续响应能力,技术价值在于保障数据隐私、规避API调用限制、适配内网及老旧系统环境。典型应用场景包括财务报表自动整理、科研仪器数据归档、IT资产变更通知等Windows桌面自动化需求。本文聚焦Hermes Agent这一主流开源实现,围绕Windows平台特有的服务注册、权限模型、杀软拦截、中文路径与YAML编码

weixin_34411563的博客 445

RocketMQ-一文读懂架构、源码、调优与面试

Apache Rocketmq是一个分布式消息和流平台,具有低延迟、高性能和可靠性、万亿级容量和灵活的可扩展性,本文将从架构设计、源码解读、使用经验、调优调优,解剖MQ的特征。 1.1、MQ架构(Broker-分片) 支持多Master,可实现同步或者异步双写;Broker Master和Broker Slave是通过jdk原生的nio(SocketChannel)通信实现数据同步,Producer与Broker,Consumer与Broker通过Netty进行通信,NameServer与其他通过Nett

一个人的人生 772

DeepStream实战:多路视频AI分析从CPU瓶颈到GPU高吞吐

视频流智能分析在智慧交通和边缘计算中愈发关键,但传统CPU拉流解码加GPU推理的链路,常面临CPU占用过高、GPU利用率低下的窘境。DeepStream作为NVIDIA推出的流式推理框架,基于GStreamer插件生态,以NVMM内存管理让视频数据在GPU侧高效流转,配合NVDEC硬件解码、NvStreamMux多路批处理与TensorRT优化,大幅降低CPU负担并提升多路视频并行吞吐。针对1080p甚至更高分辨率的RTSP流,它能将多路帧汇聚为batch批量推理,从而支撑实时车辆识别、道路分析等生产级应用

weixin_29051245的博客 186

RocketMq5 消息消费及相关源码浅阅

消费者也必须和namesvr保存长连接,consumer从namesvr每隔30s获取topic路由信息。从而根据负载策略进行消费的消费。:同一个消费者组中多个消费者不能同时消费多个主题topic,如果出现此现象,会导致部分消息无法消费,如上图。:默认消费模式就是 一个消费者组消费一个主题(使用负载均衡算法进行分配)查看mqClientFactory.doRebalance()方法实现。一个消费者组不同的消费者是否可以同时消费多个主题?不同的消费者组,是否可以消费相同同的topic?......

Miaoshuowen的博客 1000

别再手动填数据了!Vivado里用.coe文件给ROM IP核预装数据的保姆级教程

本文详细介绍了在Vivado中使用.coe文件为ROM IP核预装数据的全流程教程,包括文件格式规范、数据转换技巧和Vivado配置指南。通过自动化数据加载,开发者可以显著提升FPGA开发效率,避免手动输入错误,适用于查找表、波形存储等多种应用场景。

weixin_33377602的博客 343

802.1AS时间同步机制深度解析:从Sync报文到多域冗余设计

本文深度解析了802.1AS时间同步机制,从Sync与Follow_Up报文的核心交互原理入手,详细阐述了其如何通过精确的时钟频率比测量、链路延迟计算和驻留时间补偿来实现微秒乃至纳秒级同步。文章进一步探讨了802.1AS-2020版本引入的多时钟域冗余设计,为构建高可靠的车载TSN网络提供了关键见解和实战配置指南。

pytorch8learner的博客 467

1145 Hashing - Average Search Time 解析

这个很少有的直接考hash的实现..依然素数直接存着保存时间。 Hash的停止判定我有些忘了...看别人的解法是循环表长次没有插入就失败..记得不是太清楚了... 这个题有点水的成分,要再看看hash了。 #include &lt;iostream&gt; #include &lt;string&gt; #include &lt;string.h&gt; #include &lt;queu...

sheepyWYY的博客 548

sam3.1 部署笔记 推理封装

sam3.1 部署笔记

jacke121的专栏 430

《深入理解RocketMQ》- MQ消息的投递机制

0. 前言 RocketMQ的消息投递分为两种:一种是生产者往MQ Broker中投递;另外一种则是MQ broker 往消费者投递(这种投递的说法是从消息传递的角度阐述的,实际上底层是消费者从MQ broker 中Pull拉取的)。本文将从模型的角度来阐述这两种机制。 1. RocketMQ的消息模型 RocketMQ 的消息模型整体并不复杂,如下图所示: 一个Topi...

宇宙浪子的专栏 660

在 SAP ABAP 里可靠地对接 FTP 服务器:从连接、命令到传输与排错的完整实战

本文详细介绍了在SAP ABAP中实现FTP文件交换的完整技术方案。文章首先解析了FTP协议的双连接特性(控制连接与数据连接),强调保持控制连接的重要性。随后详细说明了ABAP中FTP操作的四步标准流程:建立连接(包含HTTP_SCRAMBLE加密)、执行命令、断开连接和关闭RFC通道。文章提供了实战案例代码,演示如何将FTP文件复制到应用服务器再读取进内表处理,特别指出后台作业与前台操作的关键差异。最后总结了常见错误排查要点,包括连接模型、路径设置和资源释放等问题。全文通过SAP标准函数模块的调用顺序、典

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 319

软考「系统规划与管理师(第2版)」抱佛脚|案例分析预测

规划类(系统/数据/云)+ 服务过程找错改进 + 风险应急终止三大块各备一套成熟模板,术语统一按第2版新教材口径,案例分析 45 分线的希望就大很多。

软件行业技术文化交流。 79

PAT甲级1145 Hashing - Average Search Time (25 分)题解

$\quad平方探测法请移步博客。这里说一下查询操作,查询当前数在哈希表中所在位置或者是计算查询次数需要再次模拟插入过程,当找到这个数或者发现这个位置上没有数时表示已经找到这个数或者无此数,无需再查询。程序如下: #include <iostream> #include <cstring> using namespace std; const int maxn = 1e...

qq_40438165的博客 1537

3D扩散模型的构建与优化:多模态融合在三维物体生成中的作用【附核心代码实例】

随着技术的发展,基于扩散模型的3D内容生成已经成为一个激动人心的领域。通过不断优化扩散模型的结构和算法,结合多模态信息、视角控制和高效网络架构,未来的3D生成技术将不仅能够生成逼真的物体,还能满足虚拟现实、游戏设计、电影制作等行业对高质量、实时生成的需求。

一键难忘的博客 2868

PAT甲组1145 Hashing - Average Search Time思路解析和代码

A1145 题目链接 题意 模拟二次探测再散列的原理,输出其中无法插入的数据,输出平均查找长度 样例解释 15无法插入,探测结果一直在1,4间反复横跳,因此输出15 cannot be inserted. 2.8的来历:11比较了2次,4比较了1次,15比较了6次,2比较了2次(格外要注意数据2!!) 个人思路 感觉题目有些地方没有提及到,也许是自己对二次探测再散列理解还不够透彻 拿到题目在纠结几...

九筒的博客 346

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

【PAT】A1145 Hashing - Average Search Time (25 point(s))

文章目录A1145 Hashing - Average Search Time (25 point(s))Input Specification:Output Specification:Sample Input:Sample Output: A1145 Hashing - Average Search Time (25 point(s)) The task of this problem is ...

Duke 225

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

PAT 1145 Hashing - Average Search Time

PAT 1145 Hashing - Average Search Time 哈希表模拟 平方探测法

2301_80219163的博客 176

ssm框架搭建

这个是一个在idea上成功跑起来的ssm框架项目,保存在这里方便以后使用直接下载

PAT甲级1145 Hashing - Average Search Time (25分)|C++实现

一、题目描述 原题链接 Input Specification: ​​Output Specification: Sample Input: 4 5 4 10 6 4 15 11 11 4 15 2 Sample Output: 15 cannot be inserted. 2.8 二、解题思路 考察了哈希表解决冲突的平方探测法,按照题目给的步骤进行模拟即可,代码比较易读,详情见代码注释。 三、AC代码 #include<iostream> #include<cstdio> #

weixin_42393947的博客 127

PAT (Advanced Level) Practice 1145 Hashing - Average Search Time (25 分)

1145 Hashing - Average Search Time (25 分) The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of integer keys...

就当一次路过丶的沙滩 206

PAT甲级-1145 Average Search Time

哈希表数据结构 二次探测法 哈希查找 C++

weixin_74092648的博客 526

PAT (Advanced Level) Practice 1145 Hashing - Average Search Time (25 分) 凌宸1642

PAT (Advanced Level) Practice 1145 Hashing - Average Search Time (25 分) 凌宸1642 题目描述: The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of integer keys from the

lingchen1120的博客 191

PAT 1145 Hashing - Average Search Time(25 分)C++ [自己开发的博客网站,欢迎访问](www.weiboke.online) www.weiboke.o

1145 Hashing - Average Search Time(25 分) The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of integer keys...

WXM 354

rocketmq consumer 负载均衡

  DefaultMQPushConsumer的负载均衡过程不需要使用者操心,客户端程序会自动处理,每个 1、DefaultMQPushConsumer启动后,会马上触发一个deRebalance动作; 1.1、DefaultMQPushConsumerImpl.start() 1 public synchronized void start() throws MQ...

weixin_30258901的博客 262

【题解】【AcWing】1638. 哈希 - 平均查找时间

1638. 哈希 - 平均查找时间 原题传送:AcWing 1638. 哈希 - 平均查找时间 这个问题的任务很简单: 首先将一个由若干个不同正整数构成的整数序列插入到一个哈希表中,然后尝试从表中查找另一个整数键值序列,并输出平均查找时间(查找时间指查找某个值是否在表中所进行的比较操作的次数)。 哈希函数定义为 H(key)=key%TSizeH(key)=key\%TSizeH(key)=key%TSize ,其中 TSizeTSizeTSize 是哈希表的最大大小。 利用只具有正增量的二次探测法来解决冲

葑鈊丶 571

PAT甲级1145 【Hashing - Average Search Time】

哈希的应用,Quadratic probing(二次方正向探测)解决冲突,最需要注意的一点是如果搜索的位置为空,则不要往下搜索。。WA哭 #include&lt;iostream&gt; #include&lt;stdio.h&gt; #include&lt;cmath&gt; #include&lt;algorithm&gt; using namespace std; const int ma...

gq__97的博客 1249

A1145 Hashing - Average Search Time(25分)PAT 甲级(Advanced Level) Practice(C++)满分题解【数字处理】

The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of integer keys from the table and output the average search time (the number of comparisons made to find whether

qq_47677800的博客 417
上一篇: 第十八天PAT-A1144 The Missing Number简单模拟
下一篇: 第十八天PAT-A1146 Topological Order判定拓扑序列
Giggle1929
博客等级 码龄9年 2粉丝 106原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值