07 2023 档案

摘要:Smiling & Weeping 总有一个人, 一直住在心底, 却消失在生活里。 Given a positive integer n, find the maximum size of an interval [l,r] of positive integers such that, for e 阅读全文
posted @ 2023-07-31 23:27 smiling&weeping 阅读(58) 评论(0) 推荐(0)
摘要:Smiling & Weeping 第一次见你的时候, 在我的心里已经炸成了烟花, 需要用一生来打扫灰炉。 题目链接:Problem - C - Codeforces 题目大意不难,就是把每种情况枚举,但是记录每种String需要想办法,简单的set<string>会MLE不可行,unordered 阅读全文
posted @ 2023-07-30 23:36 smiling&weeping 阅读(20) 评论(0) 推荐(0)
摘要:Smiling & Weeping 爱你一个人 就好像创造一种信仰 侍奉着一个随时会陨落的神 第三章 复杂一点的查询 之前介绍了sql基本的查询用法,接下来介绍一些相对复杂的用法。 3.1 视图 我们先来看一个查询语句 SELECT product_name FROM view_product; 单 阅读全文
posted @ 2023-07-26 23:28 smiling&weeping 阅读(11) 评论(0) 推荐(0)
摘要:Smiling & Weeping 我用什么才能留住你? 我给你瘦弱的街道、绝望的日落、 荒郊的月亮。 我给你一个久久望着孤月的人的悲伤。 我给你一个从未有过信仰的人的忠诚。 第二章:基础查询与排序 2.1 SELECT语句基础 2.1.1 从表中选取数据 SELECT语句 从表中选取数据时需要使用 阅读全文
posted @ 2023-07-23 15:44 smiling&weeping 阅读(38) 评论(0) 推荐(0)
摘要:Smiling & Weeping 或许换个时间,我们真的很合适 1.1 初识数据库 数据库是将大量数据保存起来,通过计算机加工而成的可以进行高效访问的数据集合。该数据集合称为数据库(Database,DB)。用来管理数据库的计算机系统称为数据库管理系统(Database Management Sy 阅读全文
posted @ 2023-07-23 15:00 smiling&weeping 阅读(18) 评论(0) 推荐(0)
摘要:Smiling & Weeping 从来都知道,那是我的月亮,月光也曾照亮爱慕她的人,自以为碰到了她,天亮了,才发现... 题目链接:Problem - E - Codeforces 说明:这是一道很简单的二分题目 思路:主要是在平方时很容易数据爆了,那么我们要好好思考一下如何处理题目给出的k,那我 阅读全文
posted @ 2023-07-23 01:01 smiling&weeping 阅读(20) 评论(0) 推荐(0)
摘要:Smiling & Weeping 你是我年少的欢喜,这句话反过来也是你⁄(⁄ ⁄•⁄ω⁄•⁄ ⁄)⁄ Description The citizens of Bytetown, AB, could not stand that the candidates in the mayoral elect 阅读全文
posted @ 2023-07-23 00:26 smiling&weeping 阅读(26) 评论(0) 推荐(0)
摘要:Smiling & Weeping 你是我绕过的山河错落,才找到的人间烟火 Problem Description There is a sequence a of length n. We use ai to denote the i-th element in this sequence. Yo 阅读全文
posted @ 2023-07-21 11:44 smiling&weeping 阅读(76) 评论(0) 推荐(0)
摘要:Smiling & Weeping 我对姑娘的喜欢,何止钟意二字 题目链接:Problem - C - Codeforces 自我分析:我感觉这是一道很有意义的题目,可以帮我们更好的理解二进制的本质 思路:首先先了解一下题目,我们是求由第i个数到末尾的异或和(异或:相同为0,不同为1),那么我们可以 阅读全文
posted @ 2023-07-20 21:48 smiling&weeping 阅读(11) 评论(0) 推荐(0)
摘要:Smiling & Weeping 玫瑰花你拿才好看,风景要和你看才浪漫--<-<-<@ B. Hamon Odyssey time limit per test 1 second memory limit per test 256 megabytes input standard input ou 阅读全文
posted @ 2023-07-20 20:50 smiling&weeping 阅读(17) 评论(0) 推荐(0)
摘要:Smiling & Weeping 姑娘,倘若,我双手合十的愿望里有你呢 Problem Description A lot of battleships of evil are arranged in a line before the battle. Our commander decides 阅读全文
posted @ 2023-07-19 23:17 smiling&weeping 阅读(22) 评论(0) 推荐(0)
摘要:Smiling&Weeping 总有人间一两风,填我十万八千梦 A. The Man who became a God time limit per test 1 second memory limit per test 256 megabytes input standard input outp 阅读全文
posted @ 2023-07-19 21:05 smiling&weeping 阅读(30) 评论(0) 推荐(0)
摘要:Smiling & Weeping 我的心是旷野的鸟,在你的眼睛里找到了它的天空 定义和使用类: 1.声明类: class类名: 成员变量,成员函数 2.定义类的对象: 对象名 = 类名() 3.成员变量: 公有变量 私有变量__xxx 4.构造函数: def __init__(self , 其他参 阅读全文
posted @ 2023-07-05 11:37 smiling&weeping 阅读(19) 评论(0) 推荐(0)
摘要:Smiling & Weeping 寒灯纸上,梨花雨凉,我等风雪又一年 # [NOIP2007 普及组] 守望者的逃离 ## 题目背景 恶魔猎手尤迪安野心勃勃,他背叛了暗夜精灵,率领深藏在海底的娜迦族企图叛变。 ## 题目描述 守望者在与尤迪安的交锋中遭遇了围杀,被困在一个荒芜的大岛上。 为了杀死守 阅读全文
posted @ 2023-07-03 22:56 smiling&weeping 阅读(30) 评论(0) 推荐(0)
摘要:Smiling & Weeping 后悔没能说声再见,以至于后来有人仅似你三分,我便慌了神 # [NOIP1999 普及组] 导弹拦截 ## 题目描述 某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统。但是这种导弹拦截系统有一个缺陷:虽然它的第一发炮弹能够到达任意的高度,但是以后每一发炮弹都不能高 阅读全文
posted @ 2023-07-03 22:30 smiling&weeping 阅读(26) 评论(0) 推荐(0)
摘要:Smiling & Weeping 不讨好所有冷漠 不辜负所有热爱 # [NOIP1996 提高组] 砝码称重 ## 题目描述 设有 $1\mathrm{g}$、$2\mathrm{g}$、$3\mathrm{g}$、$5\mathrm{g}$、$10\mathrm{g}$、$20\mathrm{g 阅读全文
posted @ 2023-07-01 23:32 smiling&weeping 阅读(24) 评论(0) 推荐(0)
摘要:Smiling & Weeping 很难再爱上 下一个春天 只守着我的枯木 一等再等 保留标识符: 1.__*__代表系统定义函数的名字: __new__() #创建新对象的函数 __init__() #创建函数 2.“_”在交互式执行中使用,代表计算结果,如: >>>100 + 200 #300 阅读全文
posted @ 2023-07-01 22:57 smiling&weeping 阅读(19) 评论(0) 推荐(0)
摘要:Smiling & Weeping 难道只有在失眠的晚上,才会想起月亮那片药吗 题目详见: P1776 宝物筛选 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) 总复杂度从O(C * (物品个数之和))降到O(C * (log2(mi)的和)) 注意拆分的具体实现,不能全部拆成2的 阅读全文
posted @ 2023-07-01 00:29 smiling&weeping 阅读(78) 评论(0) 推荐(0)