[一天至少一题直到ICPC开赛005]解题: Hartals(12/14)

Hartals 题目连结 解题 因为其输入是间隔天数,在五六不算所以用set判断,可以避免重複。 code #include iostream#include vector#include map#include setusing namespace std;i
[Python爬虫] Requests 模组

Requests模组 requests 是一个非常流行的 Python 套件,用于发送 HTTP 请求。它的设计目的是使 HTTP 请求变得简单易用。以下是对 requests 套件的介绍: 主要特点
Python学习笔记: Pandas 成绩四捨五入的正确处理方式

本文同步发表于小弟自架网站(非钓鱼也无广告,纯分享): 微确幸资讯站 承接上一篇的说明,以前都直接的用round函数(四捨六入五成双)来处理四捨五
Introduction to Computer Networks - Reliable Transmission (下

上一篇 Introduction to Computer Networks - Reliable Transmission (上) 中提到了为什么会需要使用 Reliable Transmission 和 Reliable Transmission 有哪些方式,但任何方式都有好
Leetcode解题技巧- 快速阅读题目:

欧氏定理: 「英文文法跟中文相反」。 以下这一段英文,最重要的是在「最后面」(choose an element of the array and increment it by 1.) 中文意思: 你可以选择一个(e
Google搜寻,上传名片图档也可以马上转成文字 OCR 图片文字传成文字

名片快速建档 上传 名片图档 现在 OCR 越做越好 马上就秒变成文字了 名片建档只要複製贴上 以前辛苦 key 了老半天 现在打字业应该都要......................
[一天至少一题直到ICPC开赛008]解题: Vito's Family(12/17)

Vito's Family cpe 一星题 找中位数 最近很忙先放简单的题目 #include iostream#include vector#include map#include algorithmusing namespace std;// 2 2 3 4// 2 == 0+1+2=3// 3 == 0+1+1+1=3//
[Pyhton][资料结构]字串比对

先比对样式的最后一个字元,再从头开始比对 def match(pat,txt): lastt=len(txt)-1 lastp=len(pat)-1 endmatch=lastp start=0 #txt的index while endmatch =lastt: if txt[endmatch]==pat[lastp