Stella981 Stella981
2年前
Educational Codeforces Round 76 (Rated for Div. 2) E. The Contest dp
E.TheContestAteamofthreeprogrammersisgoingtoplayacontest.Thecontestconsistsof𝑛problems,numberedfrom1to𝑛.Eachproblemisprintedonasepara
Stella981 Stella981
2年前
Gym102040 .Asia Dhaka Regional Contest(寒假自训第9场)
B.CountingInversion题意:给定L,R,求这个区间的逆序对数之和。(L,R<1e15)思路:一看这个范围就知道是数位DP。只是维护的东西稍微多一点,需要记录后面的各种数字的个数cnt,以及逆序对和sum,以及出现了多少种后缀num。那么枚举到当前位时,假设为i,那
Wesley13 Wesley13
2年前
Ubuntu更改显示器分辨率且重启不失效
首先打开终端,输入xrandr查看已有的显示器分辨率信息。例如eDP1,DP1,HDMI1,HDMI2分别对应四个显示输出。1root@chaiTM1604:/home/chai:xrandr2Screen0:minimum320x200,current3840x1080,maximum8192
Stella981 Stella981
2年前
HDOJ 1391 Number Steps(打表DP)
ProblemDescriptionStartingfrompoint(0,0)onaplane,wehavewrittenallnonnegativeintegers0,1,2,…asshowninthefigure.Forexample,1,2,and3hasbeenwrittenat
Stella981 Stella981
2年前
I9300 Root权限获取
软件下载地址:http://115.com/file/dp3p7ekwI9300ROOT.rar(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2F115.com%2Ffile%2Fdp3p7ekw%23I9300ROOT.rar)步骤见机锋上文章:http://bbs.gfa
Stella981 Stella981
2年前
Codeforces 1208F Bits And Pieces 位运算 + 贪心 + dp
题意:给你一个序列a,问a\i\^(a\j\&a\k\)的最大值,其中i<j<k。思路:我们考虑对于每个a\i\求出它的最优解。因为是异或运算,所以我们从高位向低位枚举,如果这一位a\i\是0,我们就在a\i\的右边找两个位置让它们按位与起来这位是1。那么,我们贪心的保留可以通过按位与凑出某个二进制数的最靠右的两
Stella981 Stella981
2年前
CodeForces165E 位运算 贪心 + 状压dp
http://codeforces.com/problemset/problem/165/E题意 两个整数 _x_ 和 _y_ 是 兼容的,如果它们的位运算"AND"结果等于0,亦即 _a_ & _b_  0 。例如,数 90 (10110102) 和 36 (1001002) 是兼容的,因为 10110102 & 1001002  0
Wesley13 Wesley13
2年前
CF 983B XOR
CF983BXORpyramid(区间dp,异或)若有一个长度为m的数组b,定义函数f为:$f(b)\\begin{cases}b\1\&\\quad\\text{if}m1,\\f(b\1\\\oplusb\2\,b\2\\\oplusb\3\,\\dots,b\m
Stella981 Stella981
2年前
CodeForces 327E Axis Walking(状压DP+卡常技巧)
IahubwantstomeethisgirlfriendIahubina.Theybothlivein _Ox_ axis(thehorizontalaxis).Iahublivesatpoint0andIahubinaatpoint _d_.Iahubhas _n_ positiveinte
燕青 燕青
6个月前
Macos屏幕分辨率修改工具:SwitchResX for Mac 破解版
是一款非常实用的显示分辨率切换工具,可以帮助用户在Mac上轻松地切换显示分辨率。它支持多种屏幕分辨率和DPI设置,允许用户根据需要自定义显示分辨率和缩放比例。SwitchResXMac支持所有MacBook和iMac系列,可以快速切换不同设备的分辨率和DP