0%

使用paddleocr完成车牌识别任务

一、Windows环境

  1. 使用conda创建一个虚拟环境并激活

    注:默认大家已经安装过了anaconda或miniconda

    1
    2
    conda create --name paddle python=3.8 -y
    conda activate paddle
阅读全文 »

一、题目引入

前情提要:今天打了ccpc的网络赛,最后大败而归。😭😭😭
让我绝望的是到最后G题一直TLE,赛后发现自己的做法缺少了一个关键的细节。于是写博客记录一下此题及其使用的思想。

题目:G 序列与整数对

题目大意:有一个长度为n的序列A,q次询问,每次询问给出两个整数<x,y>,问A中存在多少个<x,y>。
数据范围:$1 <= n,q <= 10^5, 1 <= x,y <= 10^9$。

阅读全文 »

一、题目引入

最近做了一道很优美的使用并查集解决的问题:https://ac.nowcoder.com/acm/problem/16884 【2001NOI 食物链】

简要概括就是一共有A、B、C三种动物。A吃B,B吃C,C吃A。动物间有两种关系:

  • “1 X Y”,表示X和Y是同类
  • “2 X Y”,表示X吃Y。

现在给出k个关系,问这些关系中哪些是假的(与已有的关系冲突)


这是一道很经典的并查集问题,但是与一般的并查集题目不同的是,此题的集合可以选择构建一串逻辑自洽的关系链。

阅读全文 »

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment