E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
3652
余震十年,36则“不太一样”的新闻
它们或许不够新鲜、或许琐碎、或许无足轻重到早已被时间淹埋,但它们构筑起来的时光隧道,足以让我们在今天,重度那漫长的、短暂的、真实的、却又不够真切的、曾经被摧毁的、至今仍未完待续的——
3652
天。
每日人物
·
2018-05-12 00:00
2018年首月49班明星文章由你來決定,喜歡就點擊愛心❤吧!
践行者:007--
3652
王晓阳推荐人:谭洲伟推荐理由:为什么要活在未来?如何活在未来?活在未来需要做什么?
记录我的生活
·
2018-02-02 06:20
我们的十年
图片来自电影-我们的十年文/二贝不知道十年的时间究竟有多长,是
3652
天还是52.56万分钟。十年前,在我们的脑海中;十年后,却印在心底。
是二贝呀
·
2017-09-05 09:41
数位dp
bzoj1833bzoj3780bzoj
3652
bzoj3598bzoj1026bzoj2757bzoj3131bzoj1902bzoj3209bzoj4513bzoj3679bzoj4521bzoj3329bzoj3530bzoj1183
priority_ez
·
2017-07-06 16:52
各种算法
HDU 4507 吉哥系列故事——恨7不成妻 数位dp
此题和HDU
3652
B-number这道题很相似,如果题解看不懂,可以先看
3652
这道题。
Nicetomeetu-
·
2017-06-04 18:05
ACM-数位dp
Skype For Business online混合部署(二)--混合部署配置
Skypeforbusiness2015与Office365Skypeforbusinessonline的混合部署如下过程:1.在本地以管理员登录Skypeforbusiness2015控制面板,定位到:仪表板,单击:登录Office
3652
ljb_job
·
2016-12-22 16:25
Business
Office
365
[hdu
3652
] B-number
ProblemDescriptionAwqb-number,orB-numberforshort,isanon-negativeintegerwhosedecimalformcontainsthesub-string“13”andcanbedividedby13.Forexample,130and2613arewqb-numbers,but143and2639arenot.Yourtaskisto
qq_33583069
·
2016-07-06 21:00
dp
hdu
3652
数位dp(能被13整除且包含13的数的个数)
题意:给定一个int类型能够保存的整数n,求1~n中能被13整除而且包含13的数字的个数。例如13、2613等。思路:数位dp,模板见hdu3555。这里需要单开一维记录第k位之前的数字除以13的余数。即dfs的m参数。pre参数的意义:0表示之前没有出现过13而且前一位不是1;1表示之前没有出现过13但是前一位为1;2表示之前已经出现过13了。#include #include usingnam
dumeichen
·
2016-05-25 20:00
hdu
3652
(数位dp)
B-numberTimeLimit:2000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):4184 AcceptedSubmission(s):2397ProblemDescriptionAwqb-number,orB-numberforshort,isanon-negative
martinue
·
2016-05-24 16:00
dp
ACM
大二
HDU-
3652
B-number (数位DP)
pid=
3652
TimeLimit:2000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)ProblemDescriptionAwqb-number
idealism_xxm
·
2016-05-11 21:00
HDU
数位dp
HDOJ
3652
_B number
每天一个数位DP,做熟练了为止题目链接:HDOJ
3652
题意:求【1,n】中,能够被13整除且含有“13”字符串的数的个数分析:首先把问题变简单一点,含有“13”字符串怎么处理?
kevin66654
·
2016-05-11 15:00
dp
ACM
【HDU
3652
】B-number
B-numberTimeLimit:2000/1000MS(Java/Others)MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):4096AcceptedSubmission(s):2335ProblemDescriptionAwqb-number,orB-numberforshort,isanon-negativeintegerw
reverie_mjp
·
2016-05-07 08:00
HDU
数位dp
HDU
3652
B-number 数位dp
B-numberTimeLimit:1000MS MemoryLimit:32768KB 64bitIOFormat:%I64d&%I64uSubmit Status Practice HDU
3652
Appointdescription
zp___waj
·
2016-04-28 18:00
C++
HDU
hdu
3652
B-number
B-numberTimeLimit:2000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):4070 AcceptedSubmission(s):2321ProblemDescriptionAwqb-number,orB-numberforshort,isanon-negative
clover_hxy
·
2016-04-24 20:00
HDU 4006 The kth great number(线段树【亚洲区网络赛题目】)
1000MS(Java/Others)MemoryLimit:65768/65768K(Java/Others)TotalSubmission(s):9217AcceptedSubmission(s):
3652
ProblemDescriptionXiaoMingandXiaoBaoareplayingasimpleNumbersgam
qq_32866009
·
2016-04-12 18:00
HDU
HDU
3652
(数位DP 水~)
ProblemDescriptionAwqb-number,orB-numberforshort,isanon-negativeintegerwhosedecimalformcontainsthesub-string"13"andcanbedividedby13.Forexample,130and2613arewqb-numbers,but143and2639arenot.Yourtaskisto
morejarphone
·
2016-04-08 11:00
hdu
3652
B-number
又是一个数位dp入门题,求1到n中含有13作为子串而且能被13整除的数的个数dp状态dp[pos][pre][mod][have]定义为当之前的前缀的状态是这个的时候,后面可以接上的使得接上之后成为符合题意的后缀的个数具体见代码吧#include #include #include usingnamespacestd; constintmaxn=15; intdp[maxn][maxn][max
a1s4z5
·
2016-03-19 11:00
HDU
3652
B-number(数位DP)
题目链接:点击打开链接题意:给你一个数n,求从1到n有多少个数满足:包含13这个子串并且可以被13整除。思路:又是一道典型的数位DP水题,套路是一样的, 用d[i][last][p][cur][res]表示当前到了第i位,上一位是last,等于还是小于n,当前是否已经包含13这个子串,当前的余数为res的最终答案。递推即可。细节参见代码:#include #include #include #in
weizhuwyzc000
·
2016-03-14 22:00
HDU
ACM-ICPC
数位dp
[概率论 DP] BZOJ
3652
大新闻
边看题解边凑公式#include #include #include usingnamespacestd; typedeflonglongll; lln,len; doublep; doublea[105]; inlinedoublepart2() { n++; doubleans=0; for(inti=len-1;i>=0;i--) { doublepi=((double)(n/(1LL=
u014609452
·
2016-03-13 19:00
hdu
3652
B-number 数位dp
dfs版本#include usingnamespacestd; typedeflonglongll; intnum[15]; intdp[15][15][3]; //dp[i][j][k] //i:数位 //j:余数 //k:3种状态,0-没有1,1-有1,2-有13 //pos为当前处理的数位(权重表示法,也就是剩下pos+1位待填数) //mod-余数,have-状态; //lim-后面的
xinag578
·
2016-03-09 14:00
hdu
3652
B-number (数位dp)
ProblemDescriptionAwqb-number,orB-numberforshort,isanon-negativeintegerwhosedecimalformcontainsthesub-string"13"andcanbedividedby13.Forexample,130and2613arewqb-numbers,but143and2639arenot.Yourtaskisto
Kirito_Acmer
·
2016-03-04 17:00
数位dp
hdu
3652
B-number
ProblemDescriptionAwqb-number,orB-numberforshort,isanon-negativeintegerwhosedecimalformcontainsthesub-string"13"andcanbedividedby13.Forexample,130and2613arewqb-numbers,but143and2639arenot.Yourtaskisto
chenyushuo
·
2016-03-03 09:00
HDU
3652
B-number(数位dp&记忆化搜索)
题目链接:[kuangbin带你飞]专题十五数位DPG-B-number题意求1~n的范围里含有13且能被13整除的数字的个数。思路首先,了解这样一个式子:a%m==((b%m)*c+d)%m;式子的正确是显然的,就不证明了。那么判断数是否可以被13整除就可以分解为一位一位进行处理。当然,我们也只需要储存取余后的值。dfs(len,num,mod,flag)mod记录数字对13取余后的值len表示
to_be_better
·
2016-02-18 18:00
dp
HDU
3652
B-number
数位DPdp[i][j][k][m]表示最高位为i,数字j在首位,之前是否出现过13,余数是m的情况下的个数代码有详细注释,做完这题,感觉逐渐了解了数位DP#include #include #include #include #include #include #include #include #include #include usingnamespacestd;
Fighting_Heart
·
2016-01-28 18:00
数位DP-HDU-
3652
-B-number
B-numberTimeLimit:2000/1000MS(Java/Others)MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):3537AcceptedSubmission(s):1992ProblemDescriptionAwqb-number,orB-numberforshort,isanon-negativeintegerw
Roy_Yuan
·
2015-11-18 10:00
c
dp
HDU
3652
B-number(数位DP)
pid=
3652
题意:类似3555,0-n之间某个数中包含13,且整个数能被13整除分析:数位DP 同余定理。
·
2015-11-13 15:27
number
hdu
3652
(数位dp)
pid=
3652
题意:求1~n含有13且能被13整除的数的个数。
·
2015-11-13 07:27
HDU
hdu
3652
打表
思路:直接打表 #include<cstdio> #include<vector> #include<cmath> #include<iostream> using namespace std; int num[10010]={0,1356,1967,2577,3188,3799,5156,13154,13762,14374,14
·
2015-11-13 00:07
HDU
hdu
3652
B-number
pid=
3652
数位dp 题意:求1到n中能被13整除且含有13的数的个数。
·
2015-11-12 23:36
number
HDOJ
3652
B-number (数位DP)
题意:求1-n中有多少个数含字符串”13"且能被13整除。(1 <= n <= 1000000000). 练习数位DP的dfs写法。 View Code #include <stdio.h> #include <string.h> #define N 10 int dp[N][13][3],digit[N]; int dfs(in
·
2015-11-12 19:57
number
POJ
3652
Persistent Bits (模拟)
没什么好说的,就是用位运算模拟就可以了。 其中用mask来记录每个位是否被改变,没被改变的为1. #include < iostream > #include < cstdio > #include < algorithm > #includ
·
2015-11-12 17:04
poj
[HDU
3652
] B-number
B-number Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2668 Accepted Submission(s): 1467 Problem
·
2015-11-12 12:50
number
HDU
3652
B-number(数位DP)
题目链接 学习大神的数位DP模版。 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 using namespace std; 5 int dp[31][31][31]; 6 int num[31]; 7 //dp[i][j][k] 代表前i位余数为j
·
2015-11-11 04:23
number
hdu
3652
B-number
链接 题意求能够整除和包含13的数字。 这个比较简单,保留余数及1,然后标记前面是否出现过13就行。 1 #include <iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<algorithm> 5 #include<stdlib.h>
·
2015-11-10 22:52
number
ZOJ
3652
Maze
MazeTimeLimit:4000/2000ms(Java/Other) MemoryLimit:131072/65536K(Java/Other)TotalSubmission(s):44 AcceptedSubmission(s):13ProblemDescriptionCelicaisabravepersonandbelieverofaGodinthebrightside.Heal
u013097262
·
2015-11-08 20:00
数位dp总结
hdu3555 Bomb hdu
3652
B-number hdu2089 不要62 hdu4734 F(x) hdu4389 X mod f(x) ural1057
·
2015-11-08 14:10
总结
hdu
3652
B-number 数位DP
思路:数位DP 1 #include<cstdio> 2 #include<cstring> 3 int bit[10],dp[10][10][13][2]; 4 int dfs(int pos,int pre,int mod,bool h,bool inf) 5 { 6 if(pos==-1) return h&am
·
2015-11-07 10:04
number
hdu
3652
(数位dp)
要求找出范围内含有“13”且能被13整除的数字的个数 可以使用数位dp dp[i][j][0] 表示长度为i,余数为j,不含13的数字的个数 dp[i][j][1] 表示长度为i,余数为j,3开头的数字的个数 dp[i][j][2] 表示长度为i,余数为j,含有"13"的数字的个数 index[1] = 1; for(i=2; i<11; ++i) in
·
2015-11-03 20:15
HDU
HDU
3652
B-number (数位DP)
题意 要求区间[1,n]范围内有多少数包含13且被13整除。 思路 包含13、且被13整除。在状态转移时,既要保存上一位的状态,又要保存之前处理的位数与13的模。 pos表示处理到当前位;mod表示之前处理的数与13的模;flag = true表示前几位出现过连续的13,更新时只需判断以前是否出现过以及当前位和上一位是否组成13即可。 当然 笔良文昌牛牛用了另一种flag状态的设计:flag =
·
2015-11-02 17:57
number
HDU
3652
B-number (数位DP)
题意 要求区间[1,n]范围内有多少数包含13且被13整除。 思路 包含13、且被13整除。在状态转移时,既要保存上一位的状态,又要保存之前处理的位数与13的模。 pos表示处理到当前位;mod表示之前处理的数与13的模;flag = true表示前几位出现过连续的13,更新时只需判断以前是否出现过以及当前位和上一位是否组成13即可。 当然 笔良文昌牛牛用了另一种flag状态的设计:flag =
·
2015-11-02 17:35
number
zoj
3652
ZOJ
3652
MAZE(BFS+状态压缩)
problemId=4842ZOJProblemSet-
3652
MazeTimeLimit:2Seconds MemoryLimit:65536KBCelicaisabravepersonandbelieverofaGodinthebrightside.Healwaysfightsag
qiqi_skystar
·
2015-10-31 15:00
搜索
bfs
hdu
3652
数位dp
观察区数字是否含有13并且能被13整除 Sample Input 131002001000 Sample Output1 1 2 2 注意在判断新状态的时候顺序不能弄反,否则会把之前的正确状态覆盖 1 #include<cstdio> 2 #include<iostream> 3 #include<algorithm> 4 #inclu
·
2015-10-31 10:22
HDU
Hdu
3652
B-number数位dp
就是记个余数然后像不要62那样搞 #include <cstdio> #include <cstring> #include <algorithm> #include <climits> #include <string> #include <iostream> #include <map> #i
·
2015-10-31 10:42
number
HDU
3652
B-number(数位DP)
B-number Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1231 Accepted Submission(s): 651 Problem D
·
2015-10-31 10:28
number
HDU
3652
B-number(数位DP)
题意:统计区间 [1,n] 中含有 '13' 且模 13 为 0 的数字有多少个。 分析:由 (HDU 2089 不要62)和(CF 55D - Beautiful numbers)想到该题做法,dp[i][j][f][mod],长度为i,前缀是否为1,是否已符合条件,余数为mod的数字个数。 #include <map> #include <set>
·
2015-10-30 13:05
number
virtualbox macosx10.9改变分辨率方法
p=
3652
Ender.Lu
·
2015-10-28 16:00
ZOJ
3652
Maze 模拟,bfs,读题 难度:2
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4842 要注意题目中两点: 1.在踏入妖怪控制的区域那一刹那,先减行动力,然后才能杀妖怪 2.在妖怪控制区域行动力也会恢复 3.妖怪也许不在自己的控制区域 #include <cstdio> #include <cstring> #incl
·
2015-10-27 14:58
bfs
zoj
3652
Maze(bfs)
MazeTimeLimit:2SecondsMemoryLimit:65536KBCelicaisabravepersonandbelieverofaGodinthebrightside.Healwaysfightsagainstthemonstersthatendangerhumans.Oneday,heisaskedtogothroughamazetodoaimportanttask.Them
d_x_d
·
2015-10-27 13:00
bfs
hdu
3652
基本的数位dp,需要记录前面除以13的余数。 #include <cstdio> #include <cstring> using namespace std; #define D(x) x const int MAX_DIGIT = 35; int n, m; int f[MAX_DIGIT]; int memoize[MAX_DIGI
·
2015-10-27 13:07
HDU
jquery 天气
引用:http://www.codefans.net/jscss/code/
3652
.shtml <!
·
2015-10-24 09:38
jquery
上一页
1
2
3
4
5
6
7
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他