网站首页
编程语言
数据库
系统相关
其他分享
编程问答
outputCopy
2023-04-24
D. Pashmak and Parmida's problem 树状数组
ParmidaisaclevergirlandshewantstoparticipateinOlympiadsthisyear.Ofcourseshewantsherpartnertobeclevertoo(althoughhe’snot)!ParmidahaspreparedthefollowingtestproblemforPashmak.Thereisasequenceathatconsistsofnintege
2023-04-24
Codeforces Round #308 (Div. 2) E. Vanya and Brackets
Vanyaisdoinghismathshomework.Hehasanexpressionofform,wherex1, x2, …, xnaredigitsfrom1to9,andsignrepresentseitheraplus‘+’orthemultiplicationsign‘*’.Vanyaneedstoaddonepairofbracketsinthisexpressionsothattoma
2022-09-29
*Codeforces Round #235 (Div. 2) C. Team(贪心)
https://codeforces.com/contest/401/problem/C题目大意:给定n个0,m个1;让我们构建出一个字符串满足:不能连续2个以上的0,不能出现3个连续的1;可以的话就输出任意正确的结
2022-09-27
Codeforces Round #240 (Div. 1) B. Mashmokh and ACM(DP)
https://codeforces.com/contest/414/problem/B题目大意:给定一个范围【1,k】,要求我们从这里面选出n个数字,并且满足任意两个相邻数字中后一个数字%前一个数字==0问我