#include<iostream> #include<cstdio> using namespace std; float a, b, c, d; float l, r; float clac(float x){ return a * x * x * x + b * x * x + c * x + ...
分类:
其他好文 时间:
2020-07-28 22:15:33
阅读次数:
72
在认识yield的时候,网上很多文章都是说这个是个生成器,但是我并不知道这个是用来做什么的,所以概念很快就忘记了,后面读了几个文章以后感觉茅塞顿开。我就接介绍一下。 有一篇文章提到,可以把yield看成是生成器的return的一部分,首先一个return的作用是在程序中返回某个值,返回之后程序就不再 ...
分类:
编程语言 时间:
2020-07-28 14:38:10
阅读次数:
78
WA代码如下: 1 #include<bits/stdc++.h> 2 using namespace std; 3 map<string, string> mmp; 4 map<string, int> has; 5 int main() 6 { 7 int n, m; cin >> n >> m ...
分类:
其他好文 时间:
2020-07-28 14:31:36
阅读次数:
56
AcWing 799. 最长连续不重复子序列 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int a[N],s[N]; int main(){ int n; cin>>n; for(int i=0;i<n;i++ ...
AcWing 801. 二进制中1的个数 #include <bits/stdc++.h> using namespace std; int lowbit(int x){ return x&-x; } int main(){ int n; cin>>n; while(n--){ int x,res= ...
idea灰色护眼主题 自定义的灰色主题(感觉黑色太暗了,白色又太亮,就自己配置了灰色的),根据喜欢的eclipse和vscode配置的,字体是JetBrains Mono java对比 xml对比 文件对比样式突出 导入方法 创建一个文件gray.icls 内容为下面的xml内容 <scheme n ...
分类:
其他好文 时间:
2020-07-28 13:53:06
阅读次数:
79
#include<bits/stdc++.h>#define ll long long#define speed_up ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);using namespace std;const ll nl=1e5+5;/ ...
分类:
其他好文 时间:
2020-07-27 09:31:11
阅读次数:
66
#include<bits/stdc++.h>#define ll long long#define speed_up ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);using namespace std;const ll nl=1e5+5;/ ...
分类:
其他好文 时间:
2020-07-26 23:23:20
阅读次数:
105
有多种构造方法, 辅助函数不止一个 一,几何方法 思路:设构造出的辅助函数为F,必须有F(a)=F(b)=0,才能应用罗尔中值定理 \(让f(x)在[a,b]区间内的所有点,下移直线弦AB到x轴的距离,即可保证弦AB跟x轴重回。\) \(弦AB与x轴重合,即,F(a)=F(b)=0.\) $这个距离 ...
分类:
其他好文 时间:
2020-07-26 15:30:21
阅读次数:
81
题目描述 原题来自:POJ 2752
给定若干字符串(这些字符串总长 ≤4×10^5),在每个字符串中求出所有既是前缀又是后缀的子串长度。 ...
分类:
其他好文 时间:
2020-07-26 01:15:34
阅读次数:
49