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
lucky
hdu_5676_ztr loves
lucky
numbers
题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=5676在这%一下安神,用了我没见过的黑科技next_permutation,至少我是今天才知道的#include #include #include #include #include #include #include #include #include #include #definecl(a,b)
bin_gege
·
2016-04-30 23:00
数论
HDU 5676 ztr loves
lucky
numbers(dfs+离线)——BestCoder Round #82(div.1 div.2)
ztrlovesluckynumbersTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/65536K(Java/Others)TotalSubmission(s):0 AcceptedSubmission(s):0ProblemDescriptionztrlovesluckynumbers.Everybodyknowsthatpos
queuelovestack
·
2016-04-30 22:00
ACM
DFS
HDU 5676 ztr loves
lucky
numbers
—亚信科技,巴卡斯(杭州),壹晨仟阳(杭州),英雄互娱(杭州) (包括2016级新生)除了校赛,还有什么途径可以申请加入ACM校队? ztrlovesluckynumbersTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/65536K(Java/Others)TotalSubmission(s):51 AcceptedSubmi
Dacc123
·
2016-04-30 21:00
二分
Lucky
numb
Loves
ztr
HDU5676
HDU 5676 ztr loves
lucky
numbers
代码粘上,有时间再来解释。#include #include #include usingnamespacestd; intT; unsignedlonglongintN; intcnt; unsignedlonglongintAll[5050000]; unsignedlonglongintAns; booltest(unsignedlonglongintn) { while(n) {
qq_32866009
·
2016-04-30 21:00
HDU
hdoj 5665
Lucky
【水】
LuckyTimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/65536K(Java/Others)TotalSubmission(s):554AcceptedSubmission(s):327ProblemDescriptionChaosAugustlikestostudytheluckynumbers.ForasetofnumbersS,we
dxx_111
·
2016-04-26 20:50
hd
oj
zoj3939 The
Lucky
Week 模拟
题目:The
Lucky
WeekTime Limit: 2000MS Memory Limit: 65536KB 64bit IO Format: %lld & %lluSubmit StatusDescriptionEdward
a894383755
·
2016-04-26 20:00
模拟
【ZOJ3939 The 13th Zhejiang Provincial Collegiate Programming ContestD】【日期前缀和预处理】The
Lucky
Week 第n个幸运
TheLuckyWeekTimeLimit:2Seconds MemoryLimit:65536KBEdward,theheadmasteroftheMarjarUniversity,isverybusyeverydayandalwaysforgetsthedate.TherewasonedayEdwardsuddenlyfoundthatifMondaywasthe1st,11thor21
snowy_smile
·
2016-04-26 18:00
数据结构-前缀和
题库-ZOJ
ZOJ 3939 The
Lucky
Week 找规律打表
ZOJProblemSet-3939TheLuckyWeekTimeLimit:2SecondsMemoryLimit:65536KBEdward,theheadmasteroftheMarjarUniversity,isverybusyeverydayandalwaysforgetsthedate.TherewasonedayEdwardsuddenlyfoundthatifMondaywast
hjt_fathomless
·
2016-04-25 23:00
hdu 5665
Lucky
(简单题)(bestcoder#80 1000)
ProblemDescription ChaosAugustlikestostudytheluckynumbers. ForasetofnumbersS,wesettheminimumnon-negativeinteger,whichcan'tbegottenbyaddingthenumberinS,astheluckynumber.Ofcourse,eachnumbercanbeus
chat_c
·
2016-04-25 22:00
简单题
BestCoder
Lucky
Array(分块)
H.LuckyArrayTimeLimit:10Sec,MemoryLimit:256MBDescriptionPetyalovesluckynumbers.Everybodyknowsthatluckynumbersarepositiveintegerswhosedecimalrepresentationcontainsonlytheluckydigits4and7.Forexample,num
zsc2014030403015
·
2016-04-24 21:00
分块
zoj 3939 The
Lucky
Week(打表找循环节)
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3939 题意:给你一个定义,幸运周,如果周一是某个月的1号,11号或者21号,那么这周就是幸运周,然后问你第n个幸运周的周一是哪天题解:这题主要要想到n很大,所以肯定有循环,因为有闰年,导致开头一些日子会不一样,但是有4年闰和400年闰,他们的lcm是400,所以想到400年
Miracle_ma
·
2016-04-24 21:00
ZOJ 3939 The
Lucky
Week 2016省赛
TheLuckyWeekTimeLimit: 2Seconds MemoryLimit: 65536KBEdward,theheadmasteroftheMarjarUniversity,isverybusyeverydayandalwaysforgetsthedate.TherewasonedayEdwardsuddenlyfoundthatifMondaywasthe1st,11tho
zcj5027
·
2016-04-24 20:00
ZOJ-3939-The
Lucky
Week【13th浙江省赛】【找规律】
ZOJ-3939-TheLuckyWeekTimeLimit:2SecondsMemoryLimit:65536KB Edward,theheadmasteroftheMarjarUniversity,isverybusyeverydayandalwaysforgetsthedate.TherewasonedayEdwardsuddenlyfoundthatifMondaywasthe1st,11
loy_184548
·
2016-04-24 10:00
ZOJ
13th浙江省赛
3939
The
Lucky
Week
TheLuckyWeekTimeLimit:2Seconds MemoryLimit:65536KBEdward,theheadmasteroftheMarjarUniversity,isverybusyeverydayandalwaysforgetsthedate.TherewasonedayEdwardsuddenlyfoundthatifMondaywasthe1st,11thor21
wanghandou
·
2016-04-24 09:00
ZOJ 3939 The
Lucky
Week (400年一个周期)
TheLuckyWeekTimeLimit:2Seconds MemoryLimit:65536KBEdward,theheadmasteroftheMarjarUniversity,isverybusyeverydayandalwaysforgetsthedate.TherewasonedayEdwardsuddenlyfoundthatifMondaywasthe1st,11thor21
Forever_wjs
·
2016-04-23 23:00
BestCoder Round #80 A B C hdu5667矩阵快速幂
链接:戳这里
Lucky
TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/65536K(Java/Others)问题描述 Vampire喜欢玄学
libin66
·
2016-04-21 21:00
hdoj 5665
Lucky
【水题】
题目链接:hdoj5665LuckyLuckyTimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/65536K(Java/Others)TotalSubmission(s):465AcceptedSubmission(s):282ProblemDescriptionChaosAugustlikestostudytheluckynumbers.Fo
chenzhenyu123456
·
2016-04-21 16:00
【解题报告】BestCoder Round #80
题目链接A.
Lucky
(HDU5665)思路题目问在题给数集的每个数都能使用无限次的情况下,能否通过令数集中某些数相加的方法得到全体自然数。根据百度百科的说法,自然数的定义有争议。
TRiddle
·
2016-04-20 21:00
解题报告
BestCoder
Round-#80
HDU - 5665
Lucky
(技巧)
HDU-5665LuckyTimeLimit: 1000MS MemoryLimit: 65536KB 64bitIOFormat: %I64d&%I64uSubmit StatusDescriptionChaosAugustlikestostudytheluckynumbers. ForasetofnumbersS,wesettheminimumnon-negativeinteger,which
yanghui07216
·
2016-04-20 14:00
HDU 5665:
Lucky
【水】
LuckyTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/65536K(Java/Others)TotalSubmission(s):304 AcceptedSubmission(s):195ProblemDescription ChaosAugustlikestostudytheluckynumbers. Fora
lin14543
·
2016-04-18 10:00
BestCoder Round #80 (hdu5665,hdu5666,hdu5667(矩阵快速幂+费马小定理),hdu5668(中国剩余定理))
Lucky
题目链接:http://acm.hdu.edu.cn/showproblem.php?
piaocoder
·
2016-04-17 21:00
BestCoder Round #80(A)模拟
Lucky
Accepts:819 Submissions:2299 TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/65536K(Java
qq_24489717
·
2016-04-17 10:00
HDU 5665
Lucky
题目:http://acm.hdu.edu.cn/showproblem.php?pid=5665代码:#include #include usingnamespacestd; intmain() { intt; scanf("%d",&t); while(t--) { inta[100005]; intn; scanf("%d",&n); intflag=1; inttemp=1; f
qq_32473657
·
2016-04-17 09:00
HDU 5665
Lucky
——BestCoder Round #80
LuckyTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/65536K(Java/Others)TotalSubmission(s):0 AcceptedSubmission(s):0ProblemDescription ChaosAugustlikestostudytheluckynumbers. Foraseto
queuelovestack
·
2016-04-16 22:00
ACM
hdu--5665--
Lucky
Lucky
Accepts:819 Submissions:2299 TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/65536K(Java
Inite
·
2016-04-16 22:00
bestcoder round 80
切了两道水题,多亏hack了5个,才加了100多
Lucky
Accepts:819 Submissions:2299 TimeLimit:2000/1000MS(Java/Others) MemoryLimit
Donald_TY
·
2016-04-16 22:00
HDU 5665
Lucky
(思维题)【BC】
ProblemDescriptionChaosAugustlikestostudytheluckynumbers.ForasetofnumbersS,wesettheminimumnon-negativeinteger,whichcan'tbegottenbyaddingthenumberinS,astheluckynumber.Ofcourse,eachnumbercanbeusedmanyti
qq_32866009
·
2016-04-16 21:00
HDU
HDU 5665
Lucky
ProblemDescription ChaosAugustlikestostudytheluckynumbers. ForasetofnumbersS,wesettheminimumnon-negativeinteger,whichcan'tbegottenbyaddingthenumberinS,astheluckynumber.Ofcourse,eachnumbercanbeus
jtjy568805874
·
2016-04-16 21:00
HDU
CF 110A Nearly
Lucky
Number
Petyalovesluckynumbers.Weallknowthatluckynumbersarethepositiveintegerswhosedecimalrepresentationscontainonlytheluckydigits 4 and 7.Forexample,numbers 47, 744, 4 areluckyand 5, 17, 467 arenot.Unfortuna
qq_33638791
·
2016-04-14 17:00
Lucky
Division
Petyalovesluckynumbers.Everybodyknowsthatluckynumbersarepositiveintegerswhosedecimalrepresentationcontainsonlytheluckydigits 4 and 7.Forexample,numbers 47, 744, 4 areluckyand 5, 17, 467 arenot.Petyaca
qq_33638791
·
2016-04-13 17:00
SDOI2016 Round1总结
早上抽签,
lucky
的抽到了第2考场,成功躲避yts大爷。晨神坐在斜对面,旁边全都是slyz的神犇,压力蛮大的。第一个小时:发题目,读题。T1好像要求个异或什么的?可能是数论?
u012288458
·
2016-04-12 09:00
ZOJ 3939 The
Lucky
Week
题目链接:http://icpc.moe/onlinejudge/showProblem.do?problemId=5711此题是浙江省第13届省赛的D题,比赛的时候小编一开始开的就是这个题,因为自己也有算天数差的模板,想也没想直接粘过来用,不管是怎么算都是TLE,后来才发现10^9的数据使肯定要爆的,必须得着周期才能算出来,在天数月份年数平闰年和星期数总体的周期是400(可能有人要问小编为什么加
RaAlGhul
·
2016-04-10 20:00
我爱上那个送我回家的人(12)
我把
lucky
请进门。心里有些莫名的坎坷,我问,“不陪你男友吗?”她低着头,透过她的声音,我听出了悲伤,“他不是我男友,是我男友的好朋友。哦不,是我前男友的好友。”随口答道,“喔喔”。
_千帆
·
2016-04-08 22:51
『NYIST』第九届河南省ACM竞赛队伍选拔赛[正式赛二]- Nearly
Lucky
Number(Codeforces Beta Round #84 (Div. 2 Only)A. Nearly)
A.NearlyLuckyNumbertimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputPetyalovesluckynumbers.Weallknowthatluckynumbersarethepositiveintegerswhosedecimalreprese
NYIST_TC_LYQ
·
2016-04-08 16:00
A string s is
LUCKY
if and only if the number of different characters in s is a fibonacci number. Gi
题目描述 AstringsisLUCKYifandonlyifthenumberofdifferentcharactersinsisafibonaccinumber.Givenastringconsistingofonlylowercaseletters,outputallitsluckynon-emptysubstringsinlexicographicalorder.Samesubstrin
u010002184
·
2016-04-04 21:00
算法
微软
Lucky
KMP+dp Codeforces346B
Lucky
Common Subsequence
传送门:点击打开链接题意:告诉你A,B,C,求A和B的最长公共子序列,并且C不是最长公共子序列的子串思路:先求C的Next数组,利用Next数组来完成状态的转移。而且,用KMP来优化的dp,通常都是往后更新的写法。对于打印路径,我们能用DFS来完成,这里有个我觉得很不错的写法,就是直接利用状压,来保存数字,感觉这样可以避免写一个结构体,方便的多然后dp部分,就是在求最长公共子序列的基础上,再增加1
qwb492859377
·
2016-03-30 19:00
我爱上那个送我回家的人(8)
我看着小张,又瞟了
lucky
一眼,“小张,我没有说要你辞职啊?况且这位小姐还有自己的事情要做,我怎么可能麻烦人家啊。”还没等小张脸上的乌云散去。
_千帆
·
2016-03-28 19:35
计算机视觉测试数据集
转载自 http://blog.csdn.net/
lucky
_greenegg/article/details/10241295转自:http://hi.baidu.com/56908268/blog/
jzwong
·
2016-03-22 17:00
我爱上了那个送我回家的人(3)
03从
lucky
家出来后,我径直走向公司的方向。这几天被T小姐弄的头昏目眩,都没去公司看看。走着走着,我发现不知从哪里冒出来一只小狗,一直跟着我。长长的发毛,身上穿着衣服、脚上穿着鞋。
_千帆
·
2016-03-21 22:46
ACM程序设计选修课——1058:
Lucky
Sequence(思考)
1058:LuckySequenceTimeLimit: 10Sec MemoryLimit: 64MBSubmit: 52 Solved: 6[Submit][Status][WebBoard]DescriptionEdward 得到了一个长度为 N 的整数序列,他想找出这里面有多少个“幸运的”连续子序列。一个连续子序列被称为“幸运的”,当且仅当该子序列内的整数之和恰好是 K 的整数倍数。他
a88770202
·
2016-03-21 21:00
hdu 4937
Lucky
Number 进制转换-枚举/数学
题意:我们将3,4,5,6认为是幸运数字。给定一个十进制数n。现在可以讲起任意转换成其他进制,但转换后的数必须是由3,4,5,6构成的,而这个进制称为幸运进制。问有多少个幸运进制。若有无数个,则输出-1。例如19在5进制下是34,所以5是幸运进制。//我们将n这个数在x进制下的表示记为:n=a0+a1*x+a2*x^2+a3*x^3+..... 我们发现当n表示为x进制下的四位数时,就有 a3*x
viphong
·
2016-03-21 20:00
ASP使用存储过程大全
1,调用没有参数的存储过程2,一个输入的参数的存储过程3,一个输入参数和一个输出的参数4,一个输入参数,一个输出参数,和一个返回值如何在ASP中调用SQL存储过程www.
lucky
365.net 2002
LostTempIe
·
2016-03-17 22:00
CodeForces 630C:
Lucky
Numbers【水】
LuckyNumbersTimeLimit:500MS MemoryLimit:65536KB 64bitIOFormat:%I64d&%I64uSubmit StatusDescriptionThenumbersofallofficesinthenewbuildingoftheTaxOfficeofITCitywillhaveluckynumbers.Luckynumberis
lin14543
·
2016-03-09 17:00
Lucky
Numbers(acm)
B- LuckyNumbersTimeLimit:500MS MemoryLimit:65536KB 64bitIOFormat:%I64d&%I64uSubmit StatusDescriptionThenumbersofallofficesinthenewbuildingoftheTaxOfficeofITCitywillhaveluckynumbers.Luckynumber
bmicnj
·
2016-03-09 13:00
HUST 1600
Lucky
Numbers
1600-LuckyNumbers时间限制:2秒内存限制:64兆401次提交109次通过题目描述Isunlovesdigit4and8verymuch.Hethinksanumberisluckyonlyifthenumbersatisfythefollowingconditions:1.Thenumberonlyconsistsofdigit4and8.2.Thenumbermultiples4
Dacc123
·
2016-03-09 09:00
CodeForces - 630C
Lucky
Numbers (数学规律)
CodeForces-630CLuckyNumbersTimeLimit: 500MS MemoryLimit: 65536KB 64bitIOFormat: %I64d&%I64uSubmit StatusDescriptionThenumbersofallofficesinthenewbuildingoftheTaxOfficeofITCitywillhaveluckynumbers.Luck
yanghui07216
·
2016-03-07 22:00
【周练2016.3.7】B -
Lucky
Numbers(位运算,水)
B-LuckyNumbersTimeLimit:500MSMemoryLimit:65536KB64bitIOFormat:%I64d&%I64uDescription ThenumbersofallofficesinthenewbuildingoftheTaxOfficeofITCitywillhaveluckynumbers.Luckynumberisanumberthatconsistsof
wyg1997
·
2016-03-07 17:00
HDOJ 4937
Lucky
Number
当进制转换后所剩下的为数较少时(2位。3位),相应的base都比較大。能够用数学的方法计算出来。预处理掉转换后位数为3位后,base就小于n的3次方了,能够暴力计算。。。。LuckyNumberTimeLimit:2000/1000MS(Java/Others) MemoryLimit:131072/131072K(Java/Others)TotalSubmission(s):521
lcchuguo
·
2016-03-06 19:00
微软在线测试之
lucky
string,有关斐波那契的题目都在此了
解决方案:int_tmain(intargc,_TCHAR*argv[]) { size_tfib[]={1,2,3,5,8,13,21,34}; stringstr,tempstr; cin>>str; tempstr=str; autoit=unique(tempstr.begin(),tempstr.end()); tempstr.erase(it,tempstr.end());//去重(已
wangyaninglm
·
2016-03-06 11:00
LUCKY
BOY 博弈+剪枝
GTimeLimit:1000MS MemoryLimit:65536KTotalSubmit:64Accepted:20DescriptionRecently,Lurhaveagoodluck.Heisalsothecleverestboyinhisschoolashecreatethemostpopularcomputergame?LuckyBoy.Thegameisplayedbytwopl
HandsomeHow
·
2016-03-05 12:00
博弈
剪枝
上一页
31
32
33
34
35
36
37
38
下一页
按字母分类:
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
其他