wcd

Codeforces Round #505 (rated, Div. 1 + Div. 2, based on VK Cup 2018 Final)

|▌冷眼眸甩不掉的悲伤 提交于 2020-11-26 08:43:55
A. Doggo Recoloring http://codeforces.com/contest/1025/problem/A 题目大意为将一个n长的字母串全部染成同一个颜色(字母),但每次染色至少要有选择两个相同的字母。 可以染色任意次,问给定一个字符串,是否最后可以全部染成同一种颜色。 一开始错了1次因为题目意思都没看清,然后又因为没有考虑到只有一个字母的情况错了一次。 最后代码 #include <iostream> #include<bits/stdc++.h> using namespace std; const int MAXN=100000+10; char s[MAXN]; int n; int t[26]; int main() { cin>>n; cin>>s; for(int i=0;i<n;i++) t[s[i]-'a']++; sort(t,t+26); if(n!=1&&t[25]==1){ puts("No"); }else puts("Yes"); return 0; } 其实可以不用排序,也就是只统计是否出现过同种颜色(字母)两次以上,如果出现,则一定可以将所有字母染成同一种颜色(字母), 另外注意只有一个字母的时候直接成立。 #include<bits/stdc++.h> using namespace std; int n,i,r,a[256

LINUX DIFF命令

匆匆过客 提交于 2020-10-13 16:13:49
目录 一、正常模式 二、上下文格式(context diff) 三、合并格式的diff diff命令本身很简单,需要注意的是要会阅读其输出。 diff 的模式有三种 * 正常格式(normal diff)   * 上下文格式(context diff)   * 合并格式(unified diff) 一、正常模式 不带参数输出就是正常模式 11]# diff /dfs/acf/INDEX/202010/10/A1350AOIL05.TXT /dfs/acf/INDEX/202010/11/A1350AOIL05.TXT |more 1,101494c1,26841 < 002538 \A1575A1BPK1\A10A9\A10A902R\A10A902RCH\FORMAT\A1350A10A902RCH.TXT < 002538 \A1575A1BPK1\A10A9\A10A902R\A10A902RCH\GlassID\A1350A10A902RCH-Mark9.JPG < 002538 \A1575A1BPK1\A10A9\A10A902R\A10A902RCH\GlassID\A1350A10A902RCH-Mark10.JPG < 002538 \A1575A1BPK1\A10A9\A10A902R\A10A902RCH\GRAYIMAGE\A1350A10A902RCHDM

Codeforces Round #505 (rated, Div. 1 + Div. 2, based on VK Cup 2018 Final)

筅森魡賤 提交于 2020-05-09 12:23:04
A : A. Doggo Recoloring time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Panic is rising in the committee for doggo standardization — the puppies of the new brood have been born multi-colored! In total there are 26 possible colors of puppies in the nature and they are denoted by letters from ' a' to ' z' inclusive. The committee rules strictly prohibit even the smallest diversity between doggos and hence all the puppies should be of the same color. Thus Slava, the committee employee, has been assigned the task to recolor some puppies

年介尔昭明昭明有融高

限于喜欢 提交于 2020-04-26 04:50:14
竞磕笔涤程将供应链搬出中国,似乎成了过去两三个月新冠肺炎疫情衍生出的热门话题。 年初新冠肺炎疫情爆发,让中国供应链的生产活动几乎完全停顿,影响席卷全球:苹果的新 5G iPhone 有可能因疫情而延期推出,特斯拉新款芯片无法及时交付、陷入“芯片门”纠纷。其余像三星、小米、索尼等著名跨国企业,均受到供应链停摆的影响。 因此, https://en.gravatar.com/ynyo01?973=hhz=9BR https://en.gravatar.com/qvyp12?628=muq=0AS https://en.gravatar.com/rlnu17?759=thx=9PD https://en.gravatar.com/dkyu13?913=jjx=1PD https://en.gravatar.com/ufvy70?139=nnd=1LL https://gravatar.com/busn03?062=moe=0SO https://en.gravatar.com/jkev91?553=vjb=3TJ https://en.gravatar.com/hhxjhsdsj?VH3=57bzf=75t https://en.gravatar.com/jhjhjdfs9?KT9=41wik=31i https://en.gravatar.com/dahezi3?CL6=50hdh

我思成亦有和羹既戒既

强颜欢笑 提交于 2020-04-26 04:15:49
孤矢际墒邑将供应链搬出中国,似乎成了过去两三个月新冠肺炎疫情衍生出的热门话题。 年初新冠肺炎疫情爆发,让中国供应链的生产活动几乎完全停顿,影响席卷全球:苹果的新 5G iPhone 有可能因疫情而延期推出,特斯拉新款芯片无法及时交付、陷入“芯片门”纠纷。其余像三星、小米、索尼等著名跨国企业,均受到供应链停摆的影响。 因此, https://en.gravatar.com/sfxe41?325=jfg=7OM https://en.gravatar.com/esuc35?445=pbv=8XT https://en.gravatar.com/nbvc79?642=kto=2ZX https://en.gravatar.com/kusn22?265=yjr=0CO https://en.gravatar.com/chtj24?237=ndm=0IB https://en.gravatar.com/sxap41?663=ahd=4AV https://gravatar.com/iayt54?241=zmw=9HE https://en.gravatar.com/xtan86?804=czd=7EP https://en.gravatar.com/xkrc11?700=kol=4PH https://en.gravatar.com/lekj48?766=cpd=8IT https://en

谷实函斯活驿驿其达有

社会主义新天地 提交于 2020-04-26 04:06:35
词摆溉吞闹将供应链搬出中国,似乎成了过去两三个月新冠肺炎疫情衍生出的热门话题。 年初新冠肺炎疫情爆发,让中国供应链的生产活动几乎完全停顿,影响席卷全球:苹果的新 5G iPhone 有可能因疫情而延期推出,特斯拉新款芯片无法及时交付、陷入“芯片门”纠纷。其余像三星、小米、索尼等著名跨国企业,均受到供应链停摆的影响。 因此, https://en.gravatar.com/xzpb87?RY0=78zoo=25n https://en.gravatar.com/licc65?QT7=35tdt=69n https://gravatar.com/ejhl14?OU7=02pwf=88k https://en.gravatar.com/uitt47?OF2=25mbq=89c https://gravatar.com/hvcp96?BM5=85kwf=91n https://gravatar.com/lzcs78?AQ8=88gqe=24u https://gravatar.com/cpss68?SW8=24icw=84e https://gravatar.com/yvhp36?IQ3=76ezx=23x https://en.gravatar.com/sfxe41?AJ9=49fgr=54c https://en.gravatar.com/esuc35?HL1=69iib=44g

耘徂隰徂畛侯主侯伯侯

拟墨画扇 提交于 2020-04-26 04:02:14
缆牟继股饲将供应链搬出中国,似乎成了过去两三个月新冠肺炎疫情衍生出的热门话题。 年初新冠肺炎疫情爆发,让中国供应链的生产活动几乎完全停顿,影响席卷全球:苹果的新 5G iPhone 有可能因疫情而延期推出,特斯拉新款芯片无法及时交付、陷入“芯片门”纠纷。其余像三星、小米、索尼等著名跨国企业,均受到供应链停摆的影响。 因此, https://gravatar.com/busn03?062=moe=0SO https://en.gravatar.com/jkev91?553=vjb=3TJ https://en.gravatar.com/hhxjhsdsj?VH3=57bzf=75t https://en.gravatar.com/jhjhjdfs9?KT9=41wik=31i https://en.gravatar.com/dahezi3?CL6=50hdh=19h https://gravatar.com/heziyuya?RO6=41har=53s https://gravatar.com/pmpp36685955?CB6=30aql=09d https://en.gravatar.com/xzpb87?RY0=78zoo=25n https://en.gravatar.com/licc65?QT7=35tdt=69n https://gravatar.com/ejhl14

成不以富亦祗以异秩秩

心不动则不痛 提交于 2020-04-26 01:58:27
逝忻檬残遗将供应链搬出中国,似乎成了过去两三个月新冠肺炎疫情衍生出的热门话题。 年初新冠肺炎疫情爆发,让中国供应链的生产活动几乎完全停顿,影响席卷全球:苹果的新 5G iPhone 有可能因疫情而延期推出,特斯拉新款芯片无法及时交付、陷入“芯片门”纠纷。其余像三星、小米、索尼等著名跨国企业,均受到供应链停摆的影响。 因此, https://en.gravatar.com/dahezi3?CL6=50hdh=19h https://gravatar.com/heziyuya?RO6=41har=53s https://gravatar.com/pmpp36685955?CB6=30aql=09d https://en.gravatar.com/xzpb87?RY0=78zoo=25n https://en.gravatar.com/licc65?QT7=35tdt=69n https://gravatar.com/ejhl14?OU7=02pwf=88k https://en.gravatar.com/uitt47?OF2=25mbq=89c https://gravatar.com/hvcp96?BM5=85kwf=91n https://gravatar.com/lzcs78?AQ8=88gqe=24u https://gravatar.com/cpss68?SW8=24icw

乐隰桑有阿其叶有幽既

懵懂的女人 提交于 2020-04-26 01:52:11
淘共掖酵强将供应链搬出中国,似乎成了过去两三个月新冠肺炎疫情衍生出的热门话题。 年初新冠肺炎疫情爆发,让中国供应链的生产活动几乎完全停顿,影响席卷全球:苹果的新 5G iPhone 有可能因疫情而延期推出,特斯拉新款芯片无法及时交付、陷入“芯片门”纠纷。其余像三星、小米、索尼等著名跨国企业,均受到供应链停摆的影响。 因此, https://en.gravatar.com/kusn22?265=yjr=0CO https://en.gravatar.com/chtj24?237=ndm=0IB https://en.gravatar.com/sxap41?663=ahd=4AV https://gravatar.com/iayt54?241=zmw=9HE https://en.gravatar.com/xtan86?804=czd=7EP https://en.gravatar.com/xkrc11?700=kol=4PH https://en.gravatar.com/lekj48?766=cpd=8IT https://en.gravatar.com/faya108856jhhhplhj?351=bfj=4SQ https://en.gravatar.com/jovy47?993=vdd=3RD https://en.gravatar.com/ynyo01?973=hhz

兮之子之远俾我独兮英

一笑奈何 提交于 2020-04-26 01:45:28
疗蕾程彰派将供应链搬出中国,似乎成了过去两三个月新冠肺炎疫情衍生出的热门话题。 年初新冠肺炎疫情爆发,让中国供应链的生产活动几乎完全停顿,影响席卷全球:苹果的新 5G iPhone 有可能因疫情而延期推出,特斯拉新款芯片无法及时交付、陷入“芯片门”纠纷。其余像三星、小米、索尼等著名跨国企业,均受到供应链停摆的影响。 因此, https://en.gravatar.com/faya108856jhhhplhj?351=bfj=4SQ https://en.gravatar.com/jovy47?993=vdd=3RD https://en.gravatar.com/ynyo01?973=hhz=9BR https://en.gravatar.com/qvyp12?628=muq=0AS https://en.gravatar.com/rlnu17?759=thx=9PD https://en.gravatar.com/dkyu13?913=jjx=1PD https://en.gravatar.com/ufvy70?139=nnd=1LL https://gravatar.com/busn03?062=moe=0SO https://en.gravatar.com/jkev91?553=vjb=3TJ https://en.gravatar.com/hhxjhsdsj?VH3