leetcode 1067. Digit Count in Range leetcode 233. Number of Digit One leetcode 902. Numbers At Most N Given Digit Set leetcode 1088. Confusing Number ...
分类:
其他好文 时间:
2020-03-30 09:44:59
阅读次数:
66
下载 下载地址:http://nodejs.cn/download/current/ 选择适合版本 下载对应的.xz文件(node-v13.12.0-linux-x64.tar.xz) 解压到目录/usr/local/ 创建软链,在任意目录都可以使用 sudo ln -s /usr/local/no ...
分类:
Web程序 时间:
2020-03-29 19:32:27
阅读次数:
316
A. Bad Ugly Numbers 题意:找一个n位的正数,使得它的每一位都不能整除这个数。 思路:构造2333...这样的序列即可。 1 #include<bits/stdc++.h> 2 #define LL long long 3 #define dl double 4 void rd(i ...
分类:
其他好文 时间:
2020-03-29 17:55:13
阅读次数:
72
Problem Description Consider the aggregate An= { 1, 2, …, n }. For example, A1={1}, A3={1,2,3}. A subset sequence is defined as a array of a non-empty ...
分类:
其他好文 时间:
2020-03-29 15:26:11
阅读次数:
73
// 面试题29:顺时针打印矩阵 // 题目:输入一个矩阵,按照从外向里以顺时针的顺序依次打印出每一个数字。 #include <cstdio> void PrintMatrixInCircle(int** numbers, int columns, int rows, int start); vo ...
分类:
其他好文 时间:
2020-03-29 12:52:45
阅读次数:
62
[toc] Description A number is called quasibinary if its decimal representation contains only digits 0 or 1. For example, numbers 0, 1, 101, 110011 — a ...
分类:
其他好文 时间:
2020-03-28 20:25:08
阅读次数:
93
本题要求实现一个判断素数的简单函数、以及利用该函数计算给定区间内素数和的函数。 素数就是只能被1和自身整除的正整数。注意:1不是素数,2是素数。 函数接口定义: int prime( int p ); int PrimeSum( int m, int n ); 其中函数prime当用户传入参数p为素 ...
分类:
其他好文 时间:
2020-03-28 19:58:43
阅读次数:
167
SOS问题 模板 cpp //iterative version for(int mask = 0; mask https://codeforces.com/blog/entry/45223 https://blog.csdn.net/weixin_38686780/article/details/ ...
分类:
其他好文 时间:
2020-03-28 01:17:25
阅读次数:
106
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elev ...
分类:
其他好文 时间:
2020-03-27 12:53:59
阅读次数:
79
地址:https://leetcode-cn.com/problems/guess-numbers/ <?php /** 小A 和 小B 在玩猜数字。小B 每次从 1, 2, 3 中随机选择一个,小A 每次也从 1, 2, 3 中选择一个猜。他们一共进行三次这个游戏,请返回 小A 猜对了几次? 输入 ...
分类:
其他好文 时间:
2020-03-27 12:29:34
阅读次数:
122