csdn

codeforces1000c csdn-博客

走远了吗. 提交于 2020-01-16 09:08:41
You are given nn segments on a coordinate line; each endpoint of every segment has integer coordinates. Some segments can degenerate to points. Segments can intersect with each other, be nested in each other or even coincide. Your task is the following: for every k∈[1…n]k∈[1…n], calculate the number of points with integer coordinates such that the number of segments that cover these points equals kk. A segment with endpoints lili and riri covers point xx if and only if li≤x≤rili≤x≤ri. Input The first line of the input contains one integer nn (1≤n≤2⋅1051≤n≤2⋅105) — the number of segments. The

codeforces1000b csdn-博客

非 Y 不嫁゛ 提交于 2020-01-16 09:08:27
Recently, you bought a brand new smart lamp with programming features. At first, you set up a schedule to the lamp. Every day it will turn power on at moment 00 and turn power off at moment MM. Moreover, the lamp allows you to set a program of switching its state (states are “lights on” and “lights off”). Unfortunately, some program is already installed into the lamp. The lamp allows only good programs. Good program can be represented as a non-empty array aa, where 0 < a1 < a2 < ⋯ < a|a| < M. All ai must be integers. Of course, preinstalled program is a good program. The lamp follows program

codeforces1000a csdn-博客

无人久伴 提交于 2020-01-16 09:08:19
Codehorses has just hosted the second Codehorses Cup. This year, the same as the previous one, organizers are giving T-shirts for the winners. The valid sizes of T-shirts are either “M” or from 00 to 33 “X” followed by “S” or “L”. For example, sizes “M”, “XXS”, “L”, “XXXL” are valid and “XM”, “Z”, “XXXXL” are not. There are nn winners to the cup for both the previous year and the current year. Ksenia has a list with the T-shirt sizes printed for the last year cup and is yet to send the new list to the printing office. Organizers want to distribute the prizes as soon as possible, so now Ksenia

Android Studio 代码格式化自动换行问题(强迫症)

余生颓废 提交于 2020-01-16 06:10:03
Android Studio 代码格式化自动换行问题(强迫症) https://blog.csdn.net/jhbxyz/article/details/87856212 1.不想换行 使用IDE 默认模式 点赞 3 收藏 分享 ———————————————— 版权声明:本文为CSDN博主「jhhhhhb」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/jhbxyz/article/details/87856212 来源: CSDN 作者: kuangben2000 链接: https://blog.csdn.net/kuangben2000/article/details/103996481

一些非常优秀的技术学习博客

荒凉一梦 提交于 2020-01-16 04:29:58
-------------------------------------------------------------------------- 网络安全前沿站点 -------------------------------------------------------------------------- https://countercept.com https://www.4hou.com https://www.anquanke.com https://www.freebuf.com https://www.waitalone.cn http://bbs.pediy.com/showthread.php?t=56817 -------------------------------------------------------------------------- 渗透测试优秀博客 -------------------------------------------------------------------------- https://www.cnblogs.com/crazymosquito/ https://www.cnblogs.com/lyshark https://blog.csdn.net/qq_36119192?t=1 https:/

zookeeper查看dubbo注册信息

浪尽此生 提交于 2020-01-16 03:24:08
查看zookeeper中dubbo服务的生产者和消费者注册信息: cd /usr/local/wutongyu/tools/zookeeper/ //进入zookeeper安装目录 ./bin/zkCli.sh -server 192.168.0.1:2181 //链接 ls /dubbo //会看到dubbo服务提供的对外接口,及消息提供者 ls /dubbo/com.wutongyu.service.dubbo.ElasticsearchDubboService/consumers //查看消费者命令 ls /dubbo/com.wutongyu.service.dubbo.ElasticsearchDubboService/providers //查看服务提供者命令 ———————————————— 版权声明:本文为CSDN博主「wutongyuWxc」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/wutongyuWxc/article/details/87374780 来源: CSDN 作者: MakeGreatEffort 链接: https://blog.csdn.net/qq_36838191/article/details/103986025

ros学习指南

笑着哭i 提交于 2020-01-16 01:45:42
Turtlebot https://blog.csdn.net/hongliang2009/article/details/73274966 http://wiki.ros.org/turtlebot/Tutorials/indigo/Turtlebot%20Installation https://github.com/lazyparser/weloveinterns/wiki/ros-checklist 学习 http://wiki.ros.org/turtlebot/Tutorials/indigo http://edu.gaitech.hk/turtlebot/speech-doc.html 导航 自主导航 http://wiki.ros.org/turtlebot_navigation/Tutorials/indigo/Autonomously%20navigate%20in%20a%20known%20map 跟随 http://wiki.ros.org/turtlebot_follower/Tutorials/Demo 修改地图参数 http://wiki.ros.org/turtlebot_stage/Tutorials/indigo/Customizing%20the%20Stage%20Simulator gazebo: http://wiki.ros.org

Fiddler--功能简介

十年热恋 提交于 2020-01-16 01:18:24
Fiddler的基本介绍   Fiddler的官方网站: www.fiddler2.com   Fiddler官方网站提供了大量的帮助文档和视频教程, 这是学习Fiddler的最好资料。   Fiddler是最强大最好用的Web调试工具之一,它能记录所有客户端和服务器的http和https请求,允许你监视,设置断点,甚至修改输入输出数据,Fiddler包含了一个强大的基于事件脚本的子系统,并且能使用.net语言进行扩展   你对HTTP 协议越了解, 你就能越掌握Fiddler的使用方法。你越使用Fiddler,就越能帮助你了解HTTP协议。   Fiddler无论对开发人员或者测试人员来说,都是非常有用的工具。   Fiddler的工作原理   Fiddler 是以代理web服务器的形式工作的,它使用代理地址:127.0.0.1,端口:8888。当Fiddler退出的时候它会自动注销,这样就不会影响别的程序。不过如果Fiddler非正常退出,这时候因为Fiddler没有自动注销,会造成网页无法访问。解决的办法是重新启动下Fiddler。   同类的其它工具   同类的工具有: httpwatch, firebug, wireshark   实现手机抓包 打开Fiddler, Tools-> Fiddler Options 。 (配置完后记得要重启Fiddler). 选中

WSL Ubuntu18.04折腾记录-跑通ubuntu多线程c程序

僤鯓⒐⒋嵵緔 提交于 2020-01-15 23:27:34
前半部分参考的是:https://blog.csdn.net/zhangjiahao14/article/details/80554616 1,以管理员身份打开powershell.执行如下命令,执行完如下命令后,需要重启操作系统。 Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux 2.去微软应用商店下载需要的Linux发行版。 3.下载完成后直接双击安装即可。 (4.安装完成后,在开始菜单中即可找到自己安装的Linux发行版。在这里,每一个Linux发行版都是一个windows 应用。) 后面就是自己的摸索过程。 1,首先是跟换国内源,我选择的是阿里云。 参考的是下面这个教程: https://blog.csdn.net/zhangjiahao14/article/details/80554616 这个教程里面有几句话比较关键(我最后就是栽了跟头)。 我们可以看到新版本的Ubuntu系统代号为bionic 同样的我们也可以得到之前任意版本的系统代号: Ubuntu 12.04 (LTS)代号为precise。 Ubuntu 14.04 (LTS)代号为trusty。 Ubuntu 15.04 代号为vivid。 Ubuntu 15.10 代号为wily。

csdn瞎搞,xmake自动编译linux类makefile

怎甘沉沦 提交于 2020-01-15 23:00:42
-- add rules : debug / release add_rules ( "mode.debug" , "mode.release" ) -- define target target ( "main" ) -- set kind set_kind ( "binary" ) -- set_kind ( "static" ) -- add files add_files ( "main.c" ) add_files ( "strings.c" ) add_files ( "codegen.c" ) add_files ( "parse.c" ) add_files ( "tokenize.c" ) add_files ( "type.c" ) 真的是瞎搞,一代不如一代. makefile 烦人得很,又不中用.又啰嗦. nmake 也没用,今天用 xmake ,哈,一下就搞定了. 来源: CSDN 作者: fqbqrr 链接: https://blog.csdn.net/fqbqrr/article/details/103996410