你是否会经常因为TLE而烦恼? 你是否会因为想不出优化而骂自己太蒟? 你是否看到n=10^9就瑟瑟发抖? 拯救你们的神器来了! 它就是…… 读入优化!!!(也叫快读) 上代码! int read() { int f=1,ans=0; char c; c=getchar(); while(c<'0'| ...
分类:
其他好文 时间:
2019-12-04 20:11:31
阅读次数:
75
[toc] ansible配置文件 /etc/ansible ansible.cfg hosts ansible.cfg:ansible执行需求的全局性,默认的主配置文件 hosts:默认的主机资产清单文件 查看配置文件 设置主配置文件 未生效 ` 创建文件 查看配置文件,为什么就变更过来了 ans ...
分类:
其他好文 时间:
2019-12-03 23:19:16
阅读次数:
386
问题描述:使用C#调用下面的带参数的用python写的方法,并且想要获取返回值。 def Quadratic_Equations(a,b,c): D=b**2-4*a*c ans=[] ans.append((-b+math.sqrt(D))/(2*a)) ans.append((-b-math.s ...
分类:
编程语言 时间:
2019-12-01 13:26:10
阅读次数:
148
#include<bits/stdc++.h> using namespace std; int shu[100005]; int ans[100005]; int main() { int total; cin>>total; while(total--) { int n; bool flag=t ...
分类:
其他好文 时间:
2019-12-01 09:51:56
阅读次数:
62
//dp+dfs+贪心 //记一个全局变量 #include<iostream> using namespace std ; const int N=55; int n; int ans; int q[N]; int up[N],down[N];//表示上升子序列结尾和下降子序列结尾 void df ...
class Solution { public: vector<vector<string>> ans; bool isok(string s){ int i=0; int j=s.size()-1; while(i<j){ if(s[i]!=s[j]){ return false; } i++;j ...
分类:
其他好文 时间:
2019-11-29 13:14:43
阅读次数:
64
1 #define HAVE_STRUCT_TIMESPEC 2 #include<bits/stdc++.h> 3 using namespace std; 4 vector<char>ans; 5 char a[107][107]; 6 int main(){ 7 ios::sync_with_ ...
分类:
其他好文 时间:
2019-11-27 00:45:41
阅读次数:
45
思路 可以将$A using namespace std; int Map[30][30]; int ans[30]; int n,m,flag; //flag=1表示结果为第1种,flag= 1表示结果为第2种,flag=0表示结果为第3种 inline void get(int &u,int & ...
分类:
编程语言 时间:
2019-11-25 09:34:58
阅读次数:
60
```cpp struct Query { int id, pos, ans; } q[200005]; bool cmp1(const Query &q1, const Query &q2) { return q1.pos < q2.pos; } bool cmp2(const Query &q1... ...
分类:
编程语言 时间:
2019-11-24 23:57:28
阅读次数:
147
割点——tarjan 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 const int MAXN = 20001; 5 const int MAXM = 100001; 6 int n, m; 7 int ans;//个数 8 9 10 ...
分类:
其他好文 时间:
2019-11-23 19:55:51
阅读次数:
57