题目大意:将范围从1~pow(2,64)-1内的super power输出。super power的定义:一个数x至少存在两种x=pow(i,k),(k!=1)。 题解: 注意数据范围2的64次方-1,而long long 的范围是2的63次方-1,所以要用unsigned long long。 一 ...
分类:
其他好文 时间:
2020-03-22 19:43:28
阅读次数:
68
两类斯特林数的其中之一 还是要了解一下的。 一般形如$\left[\begin{matrix}n\\m\end{matrix}\right]$写作$s(n,k)$ 组合意义:$s(n,k)$表示把n个数分成k组 每组是一个环 求分成的方案数。 环的意思其实是类似于圆排列的东西。 递推式:$s(n+1 ...
分类:
其他好文 时间:
2020-03-22 17:53:38
阅读次数:
54
LeetCode 1387. Sort Integers by The Power Value将整数按权重排序【Medium】【Python】【排序】 Problem "LeetCode" The power of an integer is defined as the number of ste ...
分类:
编程语言 时间:
2020-03-22 10:23:56
阅读次数:
87
737. 查找矩阵 中文English 给一矩阵, 找到矩阵中每一行都出现的元素. 你可以假设矩阵中只有一个满足条件的元素. 样例 样例 1: 输入 : [ [2,5,3], [3,2,1], [1,3,5] ] 输出 : 3 class Solution: """ @param Matrix: t ...
分类:
其他好文 时间:
2020-03-21 19:43:04
阅读次数:
71
CSS const css = () => ( src(`${SRC_DIR}**/*.css`) .pipe(dest(`${OUTPUT_DIR}css/`)) ) exports.default = series(css) View Code 压缩css,更改文件名 npm i -D gulp ...
分类:
其他好文 时间:
2020-03-21 18:01:06
阅读次数:
69
#include <stdio.h> int main() { int a[20001];//储存每一位所得到的数 int temp,base,digit,power,i,j=0;//temp每次的得数 digit每次得数的位数 power是幂指数,base是底数 printf("type the ...
分类:
其他好文 时间:
2020-03-21 14:51:45
阅读次数:
41
[toc] 在处理机器学习的分类问题中,我们需要评估分类结果的好坏以选择或者优化模型,本文总结二分类任务中常用的评估指标。对于多分类任务的评估指标,可以参考 "这篇文章" 先从我们最熟知的混淆矩阵(confusion matrix)说起。 "source" 鉴于混淆矩阵看着比较抽象,可以参考下图 常 ...
分类:
其他好文 时间:
2020-03-21 12:52:24
阅读次数:
257
Advanced Aspects of Nature Inspired Search and Optimisation 2019/2020Lab 2 MSc: Time Series Prediction with GPNB! This coursework is only compulsory f ...
分类:
其他好文 时间:
2020-03-20 18:38:46
阅读次数:
61
Given a knight in a chessboard (a binary matrix with 0 as empty and 1 as barrier) with a source position, find the shortest path to a destination posi ...
分类:
其他好文 时间:
2020-03-20 13:06:50
阅读次数:
61
Design Compiler Power Simulation Although in a common DC flow, the power consumption is calculated and reported, it is not quite accurate since the sw ...
分类:
其他好文 时间:
2020-03-18 21:37:06
阅读次数:
102