A. U.N.OWEN就是她吗? 考试时有个费用流的思路,但是爆0了,考后看到有人拿这个得了60分,应该是自己打错了,但看不出来. 题意:n堆石子,每堆石子有ai个,m次指令,每次指令要求把li,ri内的石子拿ki个,如果不够可以全拿,求拿的石子的最大字典序。保证区间互不包含。n=3e5 m=3e5 ...
分类:
其他好文 时间:
2020-02-15 09:15:04
阅读次数:
81
URL https://loj.ac/problem/3256 简要题意 有一个长度为n的数字序列s[1...n] 再接下来的n个时刻,按照从后往前的顺序,每个s[i]都会和s[i 1]取max(在n+1个时刻后序列肯定不会改变了,每个位置都是前缀最大值) 多次询问(t,l,r),表示第t个时刻[l ...
分类:
其他好文 时间:
2020-02-14 20:30:30
阅读次数:
172
原题链接https://codeforces.com/problemset/problem/79/D 原题描述 D. Password time limit per test 1 second memory limit per test 256 megabytes input standard in ...
分类:
其他好文 时间:
2020-02-14 16:56:02
阅读次数:
103
MongoDB 高可用可用分两种 :Master-Slave 主从复制 :只需要在某一个服务启动时加上–master 参数, 而另一个服务加上–slave 与–source 参数, 即可实现同步。MongoDB的最新版本已不再推荐此方案。Replica Sets 复制集 :MongoDB 在 1.6 ...
分类:
数据库 时间:
2020-02-14 16:25:36
阅读次数:
65
碎碎念 好久没更新了噢,,,, 最近SC MY教育厅为了更好地为人民服务,在问卷星上弄了个问卷(这个措施确实挺不错的)。 但很多时候我们需要填写的内容每天都一样。。。那么有没有法自动填写呢TAT? 有!轮子已经造好了~ "dalao" ! 然后我就把这个改成了适应本问卷的脚本QwQ。从打开网页到提交 ...
分类:
其他好文 时间:
2020-02-14 14:28:49
阅读次数:
128
一、题目说明 题目是49. Group Anagrams,给定一列字符串,求同源词(包含相同字母的此)的集合。题目难度是Medium。 二、我的做法 题目简单,就不多说,直接上代码: 性能如下: 三、优化措施 主要是用了unordered_map,也用到了sort排序,当然用map也可以。 晕了,不 ...
分类:
其他好文 时间:
2020-02-14 11:02:10
阅读次数:
79
一:安装JDK hadoop2.x最低jdk版本要求是:jdk1.7 下载地址:https://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html#jdk-7u80-o ...
分类:
其他好文 时间:
2020-02-13 21:03:47
阅读次数:
73
#include <iostream> #include<map> using namespace std; int main() { map<string,int> nameAge; nameAge["sun"]=232; nameAge["sun2"]=23; nameAge["sun1"]=3 ...
分类:
编程语言 时间:
2020-02-13 18:58:13
阅读次数:
58
题目链接 Dima loves representing an odd number as the sum of multiple primes, and Lisa loves it when there are at most three primes. Help them to represen ...
分类:
其他好文 时间:
2020-02-12 00:29:05
阅读次数:
85
Write a SQL query to get the second highest salary from the Employee table. + + + | Id | Salary | + + + | 1 | 100 | | 2 | 200 | | 3 | 300 | + + + For ...
分类:
其他好文 时间:
2020-02-11 18:53:58
阅读次数:
55