加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

HDU-5202-Rikka with string(DFS + WrongAnswer)

发布时间:2020-12-13 20:09:26 所属栏目:PHP教程 来源:网络整理
导读:Rikka with string Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 937Accepted Submission(s): 334 Problem Description As we know,Rikka is poor at math. Yuta is worrying about this situati

Rikka with string

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 937    Accepted Submission(s): 334


Problem Description
As we know,Rikka is poor at math. Yuta is worrying about this situation,so he gives Rikka some math tasks to practice. There is one of them:


One day,Yuta got a string which contains n letters but Rikka lost it in accident. Now they want to recover the string. Yuta remembers that the string only contains lowercase letters and it is not a palindrome string. Unfortunately he cannot remember some letters. Can you help him recover the string?


It is too difficult for Rikka. Can you help her?
 

Input
This problem has multi test cases (no more than 20). For each test case,The first line contains a number n(1n1000). The next line contains an n-length string which only contains lowercase letters and ‘?’

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读