紫书第3章部分题解

UVa340[Master-Mind Hints]

题意 略

例题,书中讲解详细。

思路简单,直接暴力搞一搞,需要注意一下B的计算方法:对每个数字(1~9)统计其在两个串中出现的次数c1,c2, min{c1,c2}就是该数字对B的贡献,加起来最后减去A即为所求。

UVa1583[Digit Generator]

题意 求某数的最小生成元(若x加上x的各个数字之和为y,则x为y的生成元)

例题,书中讲解详细。
more>>

Hello World

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.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

这是一段注释(https://hexo.io/docs/server.html)

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

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
    

XTUer<br><br>A nobody in the light on the stage.<br><br>Finger crossed!

AltStyle によって変換されたページ (->オリジナル) /