题目 https://pintia.cn/problem-sets/994805342720868352/problems/994805430595731456 题意 找出1-n中1出现的个数 Sample Input: 12 Sample Output: 5 思路 参考从1到n整数中1出现的次数: ...
分类:
其他好文 时间:
2020-09-17 12:30:09
阅读次数:
17
题目描述 数字以0123456789101112131415…的格式序列化到一个字符序列中。在这个序列中,第5位(从下标0开始计数)是5,第13位是1,第19位是4,等等。 请写一个函数,求任意第n位对应的数字。 示例 1: 输入:n = 3 输出:3 示例 2: 输入:n = 11 输出:0 限制 ...
分类:
其他好文 时间:
2020-09-17 12:05:00
阅读次数:
20
本文收录在个人博客:www.chengxy-nds.top,技术资料共享,同进步时间格式化在项目中使用频率是非常高的,当我们的API接口返回结果,需要对其中某一个date字段属性进行特殊的格式化处理,通常会用到SimpleDateFormat工具处理。SimpleDateFormatdateFormat=newSimpleDateFormat("yyyy-MM-dd");DatestationTi
分类:
编程语言 时间:
2020-09-16 12:03:06
阅读次数:
32
题:https://ac.nowcoder.com/acm/problem/19158 题意:给定n个物品和限制m,每次取出的物品分出来的的重量之差的绝对值要小于等于m,问最重的取走多少重量的物品 分析:dp[i][j]表示前i个物品之间差值为j的最大重量,转移dp[i][j]=max(dp[i-1 ...
分类:
其他好文 时间:
2020-09-15 21:23:58
阅读次数:
45
835 Trie字符串统计 链接:https://www.acwing.com/problem/content/837/ #include <iostream> using namespace std; const int N = 100010; int n; int son[N][26], cnt ...
分类:
编程语言 时间:
2020-09-15 20:53:33
阅读次数:
49
If you already have a running UI5 application and uploaded it to your Github repository, it will be very easy to host that application in Heroku with ...
分类:
其他好文 时间:
2020-09-11 14:16:02
阅读次数:
30
题:https://atcoder.jp/contests/abc177/tasks/abc177_f 题意:给定n和m,代表有(n+1)*m的矩阵,有n个询问,每个询问给定a和b,代表在第 i 行的第a列到第b列,不能进行向下操作,其余位置可以进行向下或向右操作,问在给定的限制中,从第1行的任意位 ...
分类:
其他好文 时间:
2020-09-10 23:07:00
阅读次数:
45
一、环境配置 需要 pillow 和 pytesseract 这两个库,pip install 安装就好了。 pip install pillow -i http://pypi.douban.com/simple --trusted-host pypi.douban.com pip install ...
分类:
其他好文 时间:
2020-09-09 19:12:57
阅读次数:
35
题目地址:https://www.acwing.com/problem/content/249/ 题目描述: 有几个古希腊书籍中包含了对传说中的亚特兰蒂斯岛的描述。 其中一些甚至包括岛屿部分地图。 但不幸的是,这些地图描述了亚特兰蒂斯的不同区域。 您的朋友Bill必须知道地图的总面积。 你自告奋勇写 ...
Recently I came across this very funny picture and I would like to share with you. This picture shows totally five different approaches to implement “ ...
分类:
其他好文 时间:
2020-09-08 20:39:18
阅读次数:
51