码迷,mamicode.com
首页 >  
搜索关键字:welcome    ( 1542个结果
ZOJ4109 Welcome Party (并查集+优先队列)
首先提取题目信息,我们需要计算朋友的关系,以及计算不开心值。 其实看题目我们很容易就有并查集的感觉,之后我们要去验证这个算法是正确的 题目要求的是求不开心值,那么我们就可以想到使用并查集求集合总数就可以了 虽然朋友不存在传递性,但是这并不影响不开心值的大小,因为如果a和b是朋友,b和c是朋友 那么虽 ...
分类:其他好文   时间:2020-02-25 21:45:31    阅读次数:105
Linux系统下如何修复感染病毒Grep程序
一般病毒主要感染/bin下面的可执行文件。 重启系统后,会停止在init version 2.85 booting 或者在出现welcome后,会告诉你/etc/rc.d/rc.sysinit的某行出现错误。 修复系统办法: 用对应的启动光盘引导,在boot:提示符输入linux rescue 提示 ...
分类:系统相关   时间:2020-02-23 22:22:34    阅读次数:105
selenium选择元素的方法
selenium选择元素的方法 ·find_element_by_css_selector:通过元素的class选择,如<div class='bdy-inner'>test</div>可以使用find_element_by_css_selector('div.bdy-inner')。 ·find_ ...
分类:其他好文   时间:2020-02-15 19:11:36    阅读次数:91
ZOJ4109 Welcome Party
并查集算连通块的数量,集合的个数就是必然不开心的人数,再跑bfs,用优先队列维护~ #include<bits/stdc++.h> using namespace std; const int maxn=1e6+14; vector<int> g[maxn]; int father[maxn]; i ...
分类:其他好文   时间:2020-02-13 19:20:12    阅读次数:48
Lesson 9 Royal espionage
What important thing did King Alfred learn when he penetrated the Danish camp of Guthrum? Alfred the Great acted as his own spy, visiting Danish camps ...
分类:其他好文   时间:2020-02-12 14:40:12    阅读次数:75
购物登陆,列表生成式,生成器,斐波那契数列,yield伪并发,迭代器,时间模块,random模块
这次内容很多,比较重要 1、购物登陆(伪代码) user = 'hanjie'passwd = 123w_user = 'hanjie123'w_passwd = 123login_states = Falsedef login(): if login_states== False: if auth ...
分类:其他好文   时间:2020-02-12 00:43:42    阅读次数:90
[Python_scrapy图片爬取下载]
welcome to myblogDome地址爬取某个车站的图片item.py 中1、申明item 的fieldsclass PhotoItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Fi... ...
分类:编程语言   时间:2020-02-08 19:26:12    阅读次数:98
JSP学习-sessionDemo
一个简单的Demo: 一个登陆页面login.jsp,跳转到check.jsp,登陆成功就跳转到welcome.jsp,失败就跳转回login.jsp 并且非活动时间大于10秒也自动跳转回login.jsp login.jsp 1 <%@ page language="java" contentTy ...
分类:Web程序   时间:2020-02-08 17:43:48    阅读次数:86
Vulkan SDK 之 Instance
上一篇 Vulkan SDK Demo 熟悉 粗略的了解了下,一个app是如何调用vulkan的api来展示一个立方体的,但是对其中的每一个api了解并不深刻,后面的系列会根据sample的tutorial Welcome to the Vulkan Samples Tutorial , 结合官方提 ...
分类:其他好文   时间:2020-02-06 10:29:40    阅读次数:84
[ZJCTF 2019]NiZhuanSiWei
题目源码如下 <?php $text = $_GET["text"]; $file = $_GET["file"]; $password = $_GET["password"]; if(isset($text)&&(file_get_contents($text,'r') "welcome to t ...
分类:其他好文   时间:2020-02-03 15:27:32    阅读次数:132
1542条   上一页 1 ... 8 9 10 11 12 ... 155 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!