UVa340[Master-Mind Hints]
题意 略
例题,书中讲解详细。
思路简单,直接暴力搞一搞,需要注意一下B的计算方法:对每个数字(1~9)统计其在两个串中出现的次数c1,c2, min{c1,c2}就是该数字对B的贡献,加起来最后减去A即为所求。
UVa1583[Digit Generator]
题意 求某数的最小生成元(若x加上x的各个数字之和为y,则x为y的生成元)
例题,书中讲解详细。
more>>
Winter is coming.
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1
$ hexo new "My New Post"
More info: Writing
1
$ hexo server
More info: Server
1
$ hexo generate
More info: Generating
1
$ hexo deploy
More info: Deployment
tag:
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true