码迷,mamicode.com
首页 >  
搜索关键字:fi    ( 3021个结果
网络流题目选解
这里有板子 最大流 view code namespace Flow { int tot=1,fi[N],ne[M],to[M],w[M],S,T,d[N],nn; inline void add(int x,int y,int c) { ne[++tot]=fi[x],fi[x]=tot,to[t ...
分类:其他好文   时间:2021-04-13 11:45:28    阅读次数:0
在Springboot项目下面是如何组装Bean的(下)-Bean实例化
这里主要关注onRefresh和finishBeanFactoryInitialization: 我们选择看finishBeanFactoryInitialization(beanFactory);,经过调试最终会调用AbstractBeanFactory#doGetBean方法创建Bean: fi ...
分类:编程语言   时间:2021-04-06 15:13:51    阅读次数:0
CF1234E Special Permutations(思维+差分)
因为要求所有的状态,所以暴力超时 那么想想能否计算贡献。 我们对于每一个xi,xi+1,他们对于每一个fi的状态都有不同的贡献,因此我们枚举情况后用差分数组维护贡献 #include<bits/stdc++.h> typedef long long ll; using namespace std; ...
分类:其他好文   时间:2021-03-29 12:48:27    阅读次数:0
Spark RDD编程
1. 准备文本文件: 从文件创建RDD lines=sc.textFile(): 筛选出含某个单词的行 lines.filter(),lambda 参数:条件表达式: 2. 生成单词的列表: 从列表创建RDD words=sc.parallelize(): 筛选出长度大于2 的单词 words.fi ...
分类:其他好文   时间:2021-03-29 12:46:01    阅读次数:0
bash里的[[与[
你好。 你写bash的时候,喜欢这样么? if [[ "0" == "1" ]] then; echo "True" else echo "False" fi 还是这样? if [ "0" == "1" ] then; echo "True" else echo "False" fi 现在,讲一下区 ...
分类:其他好文   时间:2021-03-29 11:35:54    阅读次数:0
Passpoint测试查询到的官方指导,先存后看防遗失
wpa_supplicant and Hotspot 2.0 This document describe how the IEEE 802.11u Interworking and Wi-Fi Hotspot 2.0 (Release 1) implementation in wpa_suppli ...
分类:其他好文   时间:2021-03-18 14:15:04    阅读次数:0
域名到期时间检测
#!/bin/bash #检测whois命令是否存在,不存在则安装jwhois包is_install_whois(){ which whois &> /dev/null if [ $? -ne 0 ];then yum install -y jwhois fi}is_install_whois#定义 ...
分类:其他好文   时间:2021-03-18 14:10:30    阅读次数:0
Northern Eurasia Finals Online 2020 L - Lookup Performance
处理了一年的边界问题 #include <bits/stdc++.h> using namespace std; const int N = 2e5 + 10; #define fi first #define se second #define sz(v) ((int)(v).size()) #d ...
分类:其他好文   时间:2021-03-15 11:18:36    阅读次数:0
selenium之单选框、多选框
一、单选框(radio)单选框的选择很简单,因为是单选,所以直接定位到元素后点击即可示例页面: 示例代码: from selenium import webdriver from selenium.webdriver.common.by import By driver = webdriver.Fi ...
分类:其他好文   时间:2021-03-10 12:56:10    阅读次数:0
把一个文本文档中只有一个数字的行给打印出来
题目要求 用shell实现,把一个文本文档中只有一个数字的行给打印出来。 参考答案 #!/bin/bash while read line do n=`echo $line |sed 's/[^0-9]//g'|wc -L` if [ $n -eq 1 ] then echo $line fi do ...
分类:其他好文   时间:2021-02-27 13:00:32    阅读次数:0
3021条   上一页 1 2 3 4 5 ... 303 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!