Problem : Given two integers L and R, find the count of numbers in the range [L, R] (inclusive) having a prime number of set bits in their binary repr ...
分类:
其他好文 时间:
2020-04-20 11:50:44
阅读次数:
65
UVa 10534 Wavio Sequence 链接:https://vjudge.net/problem/UVA-10534 思路: 分别列出每个数列的最长上升子序列(LIS)和最长下降子序列(LDS) 注:LIS(i):以a[i]结尾的最长上升子序列长度 LDS:以a[i]为开头的最长下降子序 ...
分类:
其他好文 时间:
2020-04-19 19:46:47
阅读次数:
64
1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 const int maxn=5000+50; 5 int ansx[maxn]; 6 int ansy[maxn]; 7 int visx[maxn ...
分类:
其他好文 时间:
2020-04-18 20:12:05
阅读次数:
64
最近电脑发生一个问题,明明连上了WiFi,而且tim也可以正常用,但是网页打不开。经过一系列的懒和拖之后,终于在一天之后开始解决这个问题。 解决方式: 打开网络和Internet设置,单机网络疑难解答,检查发现DNS服务器未响应。 Windows+R,输入services.msc,找到DNS Cli ...
分类:
Web程序 时间:
2020-04-16 19:30:12
阅读次数:
133
chainWebpack: config => { config.resolve.alias .set('@', resolve('src')) .set('tim', resolve('src/tim.js')) }, 。 ...
分类:
其他好文 时间:
2020-04-14 10:42:54
阅读次数:
125
题目描述有一棵二叉树,最大深度为D,且所有叶子的深度都相同。所有结点从上到下从左到右编号为1,2,3,…,2D-1。在结点1处放一个小球,它会往下落。每个内结点上都有一个开关,初始全部关闭,当每次有小球落到一个开关上时,它的状态都会改变。当小球到达一个内结点时,如果该结点上的开关关闭,则往左走,否则 ...
分类:
其他好文 时间:
2020-04-14 00:41:06
阅读次数:
63
UVA 12657 Boxes in a Line You have n boxes in a line on the table numbered 1 . . . n from left to right. Your task is to simulate 4kinds of commands:? ...
分类:
移动开发 时间:
2020-04-13 01:10:00
阅读次数:
105
首先,我们考虑$f(x)$在$\mathbb R$上都是定义的。根据定义,显然有$f(0)=0$;其次,对于$x\neq0$,不妨先设$x\gt0$,则有在$t\rightarrow\frac1t$的积分变换下为 $$ 0<f(x)=\int_0^x\left|\sin\frac1t\right|\ ...
分类:
其他好文 时间:
2020-04-12 23:05:40
阅读次数:
248
1. 开启TIM3 PWM通道2 2. mian.c 中 开启TIM3 通道2 的PWM 3.main.c 中 定义 占空比 ,想修改占空比 就修改这个值 tim.c中 4. while(1)中 写 (ps:无示波器验证😄) ...
分类:
其他好文 时间:
2020-04-11 18:22:10
阅读次数:
158
问题描述: 代码展示: 1 #include<stdio.h> 2 #include<string.h> 3 #include<ctype.h> 4 const char* rev="A 3 HIL JM O 2TUVWXY51SE Z 8 ";//注意空格数和非法镜像的个数对应 5 const c ...
分类:
其他好文 时间:
2020-04-11 12:49:50
阅读次数:
72