PaperReading20200221
CanChen [email protected] Busy... Human-level concept learning through probabilistic program induction Motivation:After seeing only one example, human can generalize the example as a concept, distinguish the example from other examples which b
LeetCode 690. Employee Importance 员工的重要性(C++/Java)
题目: You are given a data structure of employee information, which includes the employee's unique id, his importance value and his direct subordinates' id. For example, employee 1 is the leader of employee 2, and employee 2 is the leader of employee
Python趣味入门02: 妥妥地安装配置Python(Windows版) Python趣味入门01:你真的了解Python么? Python趣味入门01:你真的了解Python么?
< 上一篇:Python趣味入门01:你真的了解Python么? 本篇内容手把手教您如何去网上下载安装Python的运行环境,本文写于2020年Python稳定的版本是3.8,Windows流行的版本是Win10,各位看官搜索到本文时可能已经2050年了,但教程任然有用,只要你用的是Windown系统,但是一定要注意如下几点。 本教程会在计算机上安装2套Python环境,1-3节安装原生环境,第4节安装Visual Studio Code的环境。如果你想快速开始,立即过上写代码的瘾,请跳过1-
BZOJ 1279 & 1437: Sgu325 palindrome
首先判断能否构成回文串 对于前 \(\lfloor \frac{n}{2} \rfloor\) 个字符,若每种字符出现次数恰好为对应的一半,那么就把右半部分对称成左半部分的样子即可,若左边相邻两个字符交换,逆序对个数只会 \(\pm 1\),而右半部分的逆序对只会 \(\mp 1\),恰好抵消 否则贪心的将右边靠左且多的字符往左边移,这样影响的逆序对数是最少的 然后树状数组求逆序对即可 #include <bits/stdc++.h>
#define pb push_back
#define
今日推荐
周排行