网站首页
编程语言
数据库
系统相关
其他分享
编程问答
P3741
2024-10-20
洛谷P3741 小果的键盘(Python)
海阔凭鱼跃,天高任鸟飞。——宋·阮阅《诗话总龟前集》一、题目传送门https://www.luogu.com.cn/problem/P3741二、代码input()s=list(input().strip())ans="".join(s).count("VK")foriinrange(len(s)):ifs[i]=='V':s[i]='K'