自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

LucienShui

www.lucien.ink

  • 博客(15)
  • 资源 (2)
  • 收藏
  • 关注

原创 macOS 终端 Terminal 走代理

设置 Http 代理安装echo alias proxy='export all_proxy=http://${proxy_addr}:${port}' >> ~/.bash_profile && source ~/.bash_profile使用proxy设置 Socks5 代理安装echo alias proxy='export all_proxy...

2019-04-28 13:01:08 1801

原创 代码命名规范

原文地址:https://www.lucien.ink/archives/424/只是我个人决定用这种写法,仅供参考,欢迎提建议。对象名常量const std::string BLOG_ADDR = "https://lucien.ink";const int MAX_LENGTH = 200;变量小驼峰式命名法int maxCount = 10;std::string t...

2019-04-27 14:07:57 864

原创 Codeforces - 1152C - Neko does Maths

地址https://codeforces.com/contest/1152/problem/C原文地址https://www.lucien.ink/archives/423/题意给你 aaa 和 bbb ,找到一个最小的 kkk ,使得 lcm(a+k,b+k)lcm(a + k, b + k)lcm(a+k,b+k) 最小。题解不妨设 a>ba > ba...

2019-04-25 00:58:47 524

原创 Codeforces - 1152B - Neko Performs Cat Furrier Transform

地址https://codeforces.com/contest/1152/problem/B原文地址https://www.lucien.ink/archives/422/题意给你一个 xxx ,让你在 404040 步之内把它变成 2n−12 ^ n - 12n−1 的形式,你一定会在奇数步将其异或上一个值 2k−12 ^ k - 12k−1 ,在偶数步将其自增 111 ,让你输出你...

2019-04-25 00:49:30 607

原创 Codeforces - 1152A - Neko Finds Grapes

地址https://codeforces.com/contest/1152/problem/A原文地址https://www.lucien.ink/archives/421/题意有 nnn 把锁 mmm 把钥匙,如果锁 AAA 和钥匙 BBB 的权值加起来是一个奇数,那么 AAA 和 BBB 就可以配对,问最多能配多少对。代码https://pasteme.cn/6825#incl...

2019-04-25 00:48:55 357

原创 Codeforces - 1155D - Beautiful Array

地址https://codeforces.com/contest/1155/problem/D原文地址https://www.lucien.ink/archives/420/题意你有一个长为 nnn 的序列,你可以选择一个子区间(可以为空),将这个子区间所有的元素乘以 xxx ,问做完上述操作之后这个序列的最大连续区间和可以是多少。题解记状态为 f[i][status] ,其中 st...

2019-04-23 15:54:06 331

原创 Codeforces - 1155C - Alarm Clocks Everywhere

地址https://codeforces.com/contest/1155/problem/C原文地址https://www.lucien.ink/archives/419/题意你有 nnn 个事件,第 iii 个事件需要在第 xix_ixi​ 时刻去做,你是一个机器人,你只能选定任意一个起始时间 yyy ,然后从给定的 mmm 个数字中选出一个 pip_ipi​ ,然后你从第 yyy ...

2019-04-23 15:47:45 328

原创 Codeforces - 1155B - Game with Telephone Numbers

地址https://codeforces.com/contest/1155/problem/B原文地址https://www.lucien.ink/archives/418/题意如果一个纯数字的串长度为 111111 且以数字 888 开头,那么这个串就是一个好串,给你一个纯数字的串 sss ,你和另一个人轮流从中任意删掉一个数字,你先手,直到这个串的长度变为 111111 ,如果最后的...

2019-04-23 15:38:38 351

原创 Codeforces - 1155A - Reverse a Substring

地址https://codeforces.com/contest/1155/problem/A原文地址https://www.lucien.ink/archives/417/题意给你一个串 sss ,问能否翻转一个区间使得它的字典序变小。题解先 sort 一下判断是否可以,可以的话枚举一下。代码https://pasteme.cn/6687#include <bits/s...

2019-04-23 15:30:21 343

原创 Codeforces - 1153D - Serval and Rooted Tree

地址https://codeforces.com/contest/1153/problem/D原文地址https://www.lucien.ink/archives/416代码https://pasteme.cn/6251#include <bits/stdc++.h>const int maxn = int(3e5) + 7;std::vector<int&gt...

2019-04-15 00:09:48 426

原创 Codeforces - 1153C - Serval and Parenthesis Sequence

地址https://codeforces.com/contest/1153/problem/C原文地址https://www.lucien.ink/archives/415代码https://pasteme.cn/6250#include <bits/stdc++.h>const int maxn = int(1e6) + 7;int len, left, right;...

2019-04-15 00:06:56 260

原创 Codeforces - 1153B - Serval and Toy Bricks

地址https://codeforces.com/contest/1153/problem/B原文地址https://www.lucien.ink/archives/414代码https://pasteme.cn/6248#include <bits/stdc++.h>const int maxn = 1007;int N, M, H, m[maxn], n[maxn]...

2019-04-15 00:04:14 310

原创 Codeforces - 1153A - Serval and Bus

地址https://codeforces.com/contest/1153/problem/A原文地址https://www.lucien.ink/archives/413代码https://pasteme.cn/6247#include <bits/stdc++.h>int main() { int n, m, min = 0x3f3f3f3f, ans, bu...

2019-04-15 00:02:14 824

原创 Python3 flags

原文地址:https://www.lucien.ink/archives/412/https://pasteme.cn/5872# main.pyfrom absl import app, flags FLAGS = flags.FLAGSflags.DEFINE_string('test', None, 'comma separated list of GPU(s) to use.'...

2019-04-11 16:16:04 949

转载 前后端接口规范

原文地址https://github.com/f2e-journey/treasure/blob/master/api.md前后端接口规范随着前后端分离越来越普遍, 后端接口规范也就越来越重要了. 一套良好的接口规范可以提升工作效率, 减少沟通障碍.通常我们都会采用 REST 方式来提供接口, 使用 JSON 来传输数据.名词含义前端Web前端, APP端, 桌面端...

2019-04-01 18:38:16 16486

鲁大师单文件版

鲁大师单文件版,只能用于查看电脑配置,其它功能一律阉割

2019-01-06

完全卸载小娜(Cortana)

此工具可以完全卸载小娜,卸载小娜之后可以减少Windows对系统磁盘的索引与爬取,减少系统负担和磁盘负担。

2018-12-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除