- 博客(29)
- 资源 (21)
- 论坛 (5)
- 收藏
- 关注
原创 【Codeforces 1426 D】Non-zero Segments,贪心,前缀和,数组子段统计
problemD. Non-zero Segmentstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputKolya got an integer array a1,a2,…,an. The array can contain both positive and negative integers, but Kolya doesn’t like
2021-01-31 21:59:09
26
原创 【Codeforces 1419 C】Killjoy,构造方案,结论题,贪心
problemC. Killjoytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA new agent called Killjoy invented a virus COVID-2069 that infects accounts on Codeforces. Each account has a rating, described by
2021-01-31 21:17:53
26
原创 【Codeforces 1419 D2】Sage‘s Birthday (hard version),二分答案
problemD2. Sage’s Birthday (hard version)time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThis is the hard version of the problem. The difference between the versions is that in the easy version all
2021-01-31 20:54:44
26
原创 【Codeforces 1462 D】Add to Neighbour and Remove,n方枚举,贪心检查
problemD. Add to Neighbour and Removetime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp was given an array of a[1…n] of n integers. He can perform the following operation with the array a no
2021-01-31 18:06:40
42
原创 【Codeforces 1461 B】Find the Spruce,矩阵图形统计,枚举,行前缀和
problemB. Find the Sprucetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputHolidays are coming up really soon. Rick realized that it’s time to think about buying a traditional spruce tree. But Rick d
2021-01-31 17:46:36
31
原创 【Codeforces 1451 C】String Equality,贪心,判断能否构造成字符串
problemC. String Equalitytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAshish has two strings a and b, each of length n, and an integer k. The strings only contain lowercase English letters.He
2021-01-31 16:36:05
28
原创 【Codeforces 1443 C】The Delivery Dilemma,贪心,排序
problemC. The Delivery Dilemmatime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya is preparing for his birthday. He decided that there would be n different dishes on the dinner table, numbered f
2021-01-31 16:00:58
23
原创 【Codeforces 1421 C】Palindromifier,构造方案,构造回文串
problemC. Palindromifiertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputRingo found a string s of length n in his yellow submarine. The string contains only lowercase letters from the English alpha
2021-01-31 14:36:57
19
原创 【Codeforces 1459 B】Move and Turn,奇偶性分类,公式推导
problemB. Move and Turntime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputA robot is standing at the origin of the infinite two-dimensional plane. Each second the robot moves exactly 1 meter in one o
2021-01-31 14:12:29
25
原创 【Codeforces 1454 D】Number into Sequence,构造序列,素因数分解
problemD. Number into Sequencetime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an integer n (n>1).Your task is to find a sequence of integers a1,a2,…,ak such that:each ai is stri
2021-01-31 13:52:50
64
原创 第八届“图灵杯”NEUQ-ACM程序设计竞赛个人赛(同步赛)BIJ,签到抽奖
序中午睡醒两点多了才发现有比赛,然后就随手签个到抽个奖这样子,,,并没有打完B 小宝的幸运数组链接:https://ac.nowcoder.com/acm/contest/11746/B来源:牛客网题目描述对于小宝来说,如果一个数组的总和能够整除他的幸运数字k,就是他的幸运数组,而其他数组小宝都很讨厌。现在有一个长度为n的数组,小宝想知道这个数组的子数组中,最长的幸运子数组有多长。对于子数组的定义,如果可以通过从开头和从结束分别删除若干个(可以为零或全部,前后删除个数不必相同)元素来从数组b
2021-01-30 20:44:58
58
原创 【Codeforces 1443 B】Saving the City,贪心,分类讨论
problemB. Saving the Citytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputBertown is a city with n buildings in a straight line.The city’s security service discovered that some buildings were mine
2021-01-28 21:58:07
23
原创 【Codeforces 1433 E】Two Round Dances,排列组合,公式
problemE. Two Round Dancestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne day, n people (n is an even number) met on a plaza and made two round dances, each round dance consists of exactly n2 p
2021-01-28 21:22:49
40
原创 【Codeforces 1422 B】Nice Matrix,贪心,回文矩阵
problemB. Nice Matrixtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA matrix of size n×m is called nice, if all rows and columns of the matrix are palindromes. A sequence of integers (a1,a2,…,ak)
2021-01-28 19:45:51
17
原创 【Codeforces 1420 C1】Pokémon Army (easy version),dp,奇偶性分类讨论
problemC1. Pokémon Army (easy version)time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThis is the easy version of the problem. The difference between the versions is that the easy version has no s
2021-01-28 19:04:49
18
1
原创 【Codeforces 1472 D】Even-Odd Game,贪心选择,排序
problemD. Even-Odd Gametime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDuring their New Year holidays, Alice and Bob play the following game using an array a of n integers:Players take turns, Ali
2021-01-28 18:31:59
31
原创 【Codeforces 1454 C】Sequence Transformation,贪心,统计,map排序或桶排
problemC. Sequence Transformationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a sequence a, initially consisting of n integers.You want to transform this sequence so that all elem
2021-01-28 15:31:11
28
原创 【Codeforces 1433 D】Districts Connection,构造树,脑筋急转弯
problemD. Districts Connectiontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n districts in the town, the i-th district belongs to the ai-th bandit gang. Initially, no districts are conn
2021-01-27 21:56:05
33
原创 【Codeforces 1420 B】Rock and Lever,位运算,找规律
problemB. Rock and Levertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output“You must lift the dam. With a lever. I will give it to you.You must block the canal. With a rock. I will not give the rock
2021-01-27 21:26:11
27
原创 【Codeforces 1419 B】Stairs,暴力,贪心,找规律
problemB. Stairstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputJett is tired after destroying the town and she wants to have a rest. She likes high places, that’s why for having a rest she wants to
2021-01-27 20:48:57
23
原创 Codeforces上通过数超过5W人的题
Codeforces上通过数超过5W人的题共32题:1000分4题,800分28题。编号题号题名分数通过数14AWatermelon800x193501271AWay Too Long Words800x13987531ATheatre Square1000x1298404231ATeam800x1103495158ANext Round800x100668650ADomino piling800
2021-01-26 14:27:32
117
原创 用OBS推流直播,设置与调教入坑
1、直播画面设置: 场景界面&来源界面2、窗口捕获:必须先进行显示器捕获如果失败则修改windows的软件权限(以下三个地方)3、网站推流4、虚拟摄像头网上搜索并安装虚拟摄像头插件(OBS-Virtual-Cam)插件重启OBS后再工具里面打开5、回音调试设置里面所有设备都打开,然后关掉声音只留一个接着在obs和windows中关掉所有的侦听附钉钉使用虚拟摄像头可以用来给钉钉的视频会议增添乐趣钉钉的直播可以分享屏幕一起看电影,还不会被查封。...
2021-01-24 14:03:56
113
原创 常见网盘和云存储测评和使用方式
1、网盘容量大,数据不安全的可以当资源共享盘。数据丢了可以重新找(百度云,onedrive)对于重要数据备份,首先是数据安全,然后有些需要API支持,比如notability的webdav,onedrive限定,最后还需要考虑网路访问的因素。2、OSSECS大概80/年,40G,,,OSS可以10块/年,40G。上传流量不计费,下载计费。3、NAS买不起()...
2021-01-24 13:35:35
39
原创 阿里云OSS创建Access,并连接到cloudreve
1、创建Access首先进入对象存储,创建Bucket(一块空间) 然后配置空间的权限:记下访问域名,设置读写权限为私有,添加跨越规则,最后到RAM访问控制台中创建用户并添加Access Key(名称随便填,权限赋予aliyunossfull,创建完后去用户里面创建Access Key)2、链接cloudreve上传策略随便写Access Key ID和secret填刚才的Bucket填刚才的空间域名和上传域名填一样的(刚才的,,注意是外网)...
2021-01-24 11:11:14
47
原创 【宝塔】【cloudreve】挂载阿里云OSS到ECS服务器内网上
problem安装Cloudreve时,直接将OSS的外网endpoint作为上传策略,导致额外的流量费用。而将Cloudreve的仪表盘中更改为内网endpoint,结果就是上传文件出现http错误。原来根本就是不支持内网上传的。所以我想到将OSS挂载到一个文件夹,在Cloudreve中选择该文件夹作为本地存储策略。注意要是用cloudreve的话,本地存储目录必须在/cloudreve/pubilc/uploads中同时宝塔的阿里云OSS挂载收费10块一个月,所以自己用阿里提供的
2021-01-24 11:04:23
46
原创 一些HDOJ上水题的代码(无题目索引:Practice9,10,拓展1,2)
Practice91001#include<bits/stdc++.h>using namespace std;typedef long long LL;int main(){ LL n; while(cin>>n){ LL sum = 0; for(int i = 1; i <= n; i++){ sum += i; } cout<<sum<<"\n\n"; } return 0;}1002#inc
2021-01-12 16:52:23
30
原创 Chrome您的连接不是私密连接,解决办法
problemsolution1(亲测可用)在当前页面用键盘输入 thisisunsafe ,不是在地址栏输入,就直接敲键盘就行了因为Chrome不信任这些自签名ssl证书,为了安全起见,直接禁止访问了,thisisunsafe 这个命令,说明你已经了解并确认这是个不安全的网站,你仍要访问就给你访问了。solution2在Chrome的地址栏中输入:chrome://flags/#show-cert-link,选择"启用",重启Chrome浏览器。打开问题网页,点击地址栏左侧的"不安
2021-01-06 23:37:45
202
原创 第 45 届国际大学生程序设计竞赛(ICPC)亚洲区域赛(济南):签到题A Matrix Equation(高斯消元求线性异或方程组自由元个数)
problem给出两个n*n的01矩阵,A和B定义两种运算,Z(i,j)=Xi行*Yj列相加%2,D(i,j)=X(i,j)*Y(i,j)求最多有多少个可能的矩阵C,满足A运算1C==B运算2C。solution思路:(明天接着补)A和B相同等价于A(i,j)异或B(i,j)为0.Xi行Yj列相加%2 等价于 Xi行Yj列相互异或(异或方程组)代码:#include <bits/stdc++.h>using namespace std;typedef long
2021-01-02 00:28:55
83
原创 【Luogu 3389】【模板】高斯消元法(用高斯消元求解线性方程组)
1、线性方程组2、高斯消元法步骤1:通过一系列的加减消元,得到类似 kx=b 的式子,求得最后一个未知量的结果步骤2:然后逐一回代求解整个 x 向量以下列方程为例:第一次加减消元,用第1式子消去后面所有的x得到:第一次加减消元,用第2个式子消去后面所有的y得到:这样就完成了高斯消元的步骤1,形成了一个倒三角形的形状,接下来主意回代即可。3、用矩阵表示高斯消元(1)消元过程:(2)无解: 当消元完毕后,发现有一行系数都为 0,但是常数项不为 0,此时无解例如:(3)多解: 当
2021-01-01 23:20:06
31
mamsds5.17.exe
2020-04-02
discuz论坛实现qq小程序
2020-02-29
Windows Servers2016 WSL环境安装
2018-06-08
技嘉GA7PESH3主板说明书
2020-07-21
CE616263.zip
2020-07-21
Windows10/Servers2016应用商店恢复/安装
2018-06-08
Windows PE_DIY工具
2017-01-26
小哈里的留言板
发表于 2020-01-02 最后回复 2020-01-02
为什么发文章老是待审核啊
发表于 2018-06-07 最后回复 2018-06-08
左边侧栏的个人分类可以不折叠吗?
发表于 2018-05-20 最后回复 2018-06-07
刚更新的搜索功能有BUG
发表于 2018-05-29 最后回复 2018-06-01
UVa1368 DNA序列 学过C语言的帮我看一下问题在哪里,怎么改好吗?
发表于 2016-12-30 最后回复 2018-05-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人 TA的粉丝