首页 > TAG信息列表 > 1420

1420: [蓝桥杯]字符串对比 【简单 / 字符串】

http://oj.ecustacm.cn/problem.php?id=1420 #include<iostream> #include<algorithm> #include<cmath> using namespace std; int main(void) { string a,b; cin>>a>>b; if(a.size()!=b.size()) { cout<<1<<endl; return

【Codeforces 1420 B】Rock and Lever,位运算,找规律

problem B. Rock and Lever time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard 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 ro

cf 1420 C Pokémon Army (hard version)

简易版显然是dp了 加强版可以用差分(但我不会) 看到一种线段树的写法 比差分好写 讨论少 众所周知最大子列和是可以用线段树动态维护的 然后这题和最大子列和其实差不多 维护 ++ +- -+ --这四种情况 然后合并就可以了 比赛的时候脑抽了 想着维护奇数和和偶数和可以 像这种需要合并的

ssh 连接出现expecting SSH2_MSG_KEX_ECDH_REPLY失败解决

问题描述: ssh连接通过ipsec后连接卡住;ssh -vvv显示: echo "1420" > /sys/class/net/eth0/mtu #把mtu值设置一下默认是1500,临时生效 修改网卡配置,永久生效: vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 #网卡对应的设备别名 BOOT