原文:2017-2018 ACM-ICPC Pacific Northwest Regional Contest (Div. 1)

A. Odd Palindrome 所有回文子串长度都是奇数等价于不存在长度为 的偶回文子串,即相邻两个字符都不同。 include lt cstdio gt include lt cstring gt char a int n,i int main scanf s ,a n strlen a for i i lt n i if a i a i return puts Or not. , puts ...

2017-11-15 23:58 3 1594 推荐指数:

查看详情

2017-2018 ACM-ICPC, NEERC, Moscow Subregional Contest

2017-2018 ACM-ICPC, NEERC, Moscow Subregional Contest Problem A. Advertising Strategy 题目描述:给出两个数\(n, k\),初始时\(a_1=0\),每一天开始时令\(b_i=a_i+x_i\),每天结束时 ...

Mon Feb 26 18:41:00 CST 2018 2 1123
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM