C - 拿数问题 IIYJQ 上完第10周的程序设计思维与实践后,想到一个绝妙的主意,他对拿数问题做了一点小修改,使得这道题变成了 拿数问题 II。 给一个序列,里边有 n 个数,每一步能拿走一个数,比如拿第 i 个数, Ai = x,得到相应的分数 x,但拿掉这个 Ai 后,x+1 和 x-1 ( ...
分类:
其他好文 时间:
2020-06-06 11:04:00
阅读次数:
47
dp: #include<bits/stdc++.h> using namespace std; typedef unsigned int ui; typedef long long ll; typedef unsigned long long ull; #define pf printf #def ...
分类:
其他好文 时间:
2020-06-06 10:42:55
阅读次数:
57
1.假设条件 您有两台服务器,其中装有操作系统,并在其上安装了Oracle Linux 7 和Oracle Database 11.2.0.4。 主服务器XAG200上安装了实例。 备服务器XAG201上仅软件安装。 2.修改主机名(从克隆过来的vm) [root@xag100 ~]# cat /e ...
分类:
数据库 时间:
2020-06-06 01:11:53
阅读次数:
85
题目链接:https://codeforces.com/contest/1362/problem/B 题意 有一个大小及元素值均不超过 $1024$ 的正整数集合,求最小正整数 $k$,使得集合中的每个元素异或 $k$ 后得到的新集合与原集合相等,若这样的 $k$ 不存在输出 $-1$ 。 题解 数 ...
分类:
其他好文 时间:
2020-06-06 01:10:31
阅读次数:
80
题目链接:https://codeforces.com/contest/1362/problem/D 题意 有一个 $n$ 点 $m$ 边的图,每个结点有一个从 $1 \sim n$ 的指定数字,每个结点染与它相邻的结点中最小的未染过的正整数,问是否存在某种顺序可以将所有结点染为指定数字,如果存在, ...
分类:
其他好文 时间:
2020-06-06 01:03:36
阅读次数:
92
#include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=510000; const int Log=50; const int inf=2147483647; int val[N*Log],rnd[ ...
分类:
其他好文 时间:
2020-06-06 00:58:59
阅读次数:
66
#include<bits/stdc++.h> typedef long long ll; using namespace std; const int N=12; const int M=1595323; const int mod=500009; int n,m,mp[N+5][N+5]; in ...
分类:
其他好文 时间:
2020-06-06 00:57:56
阅读次数:
52
一、技术总结 二、参考代码 #include<iostream> #include<vector> #include<queue> using namespace std; struct node{ int h, v; node* L; node* R; }; node* newNode(int v ...
分类:
其他好文 时间:
2020-06-05 22:37:58
阅读次数:
71
1. 4A.Watermelon **题目链接:**https // s.com/problemset/problem/4/A **题意:**两人分瓜,但每一部分都得是偶数 **分析:**直接 对2取余,且 w != 2 #include<bits/stdc++.h> using namespace ...
分类:
其他好文 时间:
2020-06-05 21:15:40
阅读次数:
49
1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 #include <vector> 5 #include <queue> 6 using namespace std; 7 #define pb push_back ...
分类:
编程语言 时间:
2020-06-05 21:06:34
阅读次数:
63