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
1076
codevs:
1076
排序
题解:链表或者数组解决,最多100000个数,其实还是链表更合适,但是此处我还是用了数组。。。排序用了冒泡排序,思路较为简单代码:#include#defineMAX100000intmain(){inti,j,n,temp;inta[MAX]={0};scanf("%d",&n);for(i=0;i<=n-1;i++)scanf("%d",&a[i]);for(i=0;i
kogg123
·
2020-08-14 13:55
codevs启航
tarjan判环(51Nod -
1076
)
tarjan判环(51Nod-
1076
)51Nod-
1076
vj链接模板intDFN[maxn],low[maxn],cnt=0;boolvis[maxn],inStack[maxn];///每次使用要清空
xuziling_
·
2020-08-13 23:15
ACM
1076
:猜数字
题目描述现在,我想让你猜一个数字x(1000intmain(){intn,x,a,b,c;scanf("%d",&n);while(n--){scanf("%d%d%d",&a,&b,&c);for(x=1000;x<=9999;x++)if(x%a==0&&(x+1)%b==0&&(x+2)%c==0)break;if(x<9999)printf("%d\n",x);elseprintf("Im
Kay2377
·
2020-08-13 20:31
ACM
Tyvj
1076
数字三角形 要求走到最后mod 100最大
将mod100的值加入到状态中,变成判定性问题,这种情况下顺推比较方便。从#include#includeusingnamespacestd;boolf[100][100][100];inta[100][100];intmain(){intn,ans=0;cin>>n;for(inti=1;i>a[i][j];f[1][1][a[1][1]%100]=true;for(inti=1;i
宋紫恒
·
2020-08-13 19:54
Dp
杭电ACM题目分类
1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、1058、1061、1070、
1076
ECJTU_ACM_余伟伟
·
2020-08-13 19:51
ACM随笔
ACM题目分类
ACM题目分类
HDU 水题(基础题)附各大OJ题目分类
HDU1000HDU1001HDU1004HDU1005HDU1008HDU1012HDU1013HDU1014HDU1017HDU1019HDU1021HDU1028HDU1029HDU1032HDU1037HDU1040HDU1048HDU1056HDU1058HDU1061HDU1070HDU
1076
HDU1089HDU1090HDU1091HDU1092HDU1093HDU10
紫杉丶
·
2020-08-13 18:26
ACM
PAT_乙级_
1076
. Wifi密码 (15)
下面是微博上流传的一张照片:“各位亲爱的同学们,鉴于大家有时需要使用wifi,又怕耽误亲们的学习,现将wifi密码设置为下列数学题答案:A-1;B-2;C-3;D-4;请同学们自己作答,每两日一换。谢谢合作!!~”——老师们为了促进学生学习也是拼了……本题就要求你写程序把一系列题目的答案按照卷子上给出的对应关系翻译成wifi的密码。这里简单假设每道选择题都有4个选项,有且只有1个正确答案。输入格式
pythontojava
·
2020-08-13 16:19
PAT乙级
[CF
1076
F] Summer Practice Report
DescriptionTransmissionGateSolution这一题可以考虑Dp,设\(Dp[i][j]\)为在第i段中,以j颜色为结尾的最后一小段长度的最小值。那么可以先考虑以表为结尾的情况:表上一个线段的结尾,就把表看作分隔符,那么分隔符的数量下界是$lowerBound=\lceil\frac{(Dp[i-1][j]+a[i])}{k}\rceil-1\(,如果`b[i]>cnt`,
dayfs2560
·
2020-08-13 13:16
[CF
1076
G] Array Game
DescriptionTransmissionGateSolution考虑Dp,设Dp[i]表示当我们从前面跳跃到i时,他是必胜还是必败。那么\(Dp[i]=Min(Dp[j],!(Dp[i+1]=1~\&\&~(a[i]-1)~mod~2=0)),j\in[i+1,i+m]\)表示如果能跳的地方是必败态,那么我们就跳跃过去,这样对方执子时一定是必败的如果后面全都是必胜态,那么我们只有当A[i]为
dayfs2560
·
2020-08-13 13:15
CodeForces
1076
D Edge Deletion(优化最短路)
DescriptionYouaregivenanundirectedconnectedweightedgraphconsistingofnverticesandmedges.Let'sdenotethelengthoftheshortestpathfromvertex1tovertexiasdi.Youhavetoerasesomeedgesofthegraphsothatatmostkedges
桂十三
·
2020-08-13 12:34
题目
图论
BZOJ
1076
[SCOI2008]奖励关
Description你正在玩你最喜欢的电子游戏,并且刚刚进入一个奖励关。在这个奖励关里,系统将依次随机抛出k次宝物,每次你都可以选择吃或者不吃(必须在抛出下一个宝物之前做出选择,且现在决定不吃的宝物以后也不能再吃)。宝物一共有n种,系统每次抛出这n种宝物的概率都相同且相互独立。也就是说,即使前k-1次系统都抛出宝物1(这种情况是有可能出现的,尽管概率非常小),第k次抛出各个宝物的概率依然均为1/
ssl_lyy
·
2020-08-12 12:19
状压DP
1076
. Wifi密码 (15)
1076
.Wifi密码(15)时间限制400ms内存限制65536kB代码长度限制8000B判题程序Standard作者CHEN,Yue下面是微博上流传的一张照片:“各位亲爱的同学们,鉴于大家有时需要使用
One_More_Chance
·
2020-08-11 05:07
PAT乙级
hdu 题目分类
1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、1058、1061、1070、
1076
iteye_9104
·
2020-08-11 03:01
小韦老师@神犇营-my
1076
-邻接表的使用
小韦老师@神犇营-my
1076
-邻接表的使用码猿编程教育:韦长英题目:描述这个题目我们来练习邻接表的使用。
小韦同学
·
2020-08-10 19:32
小韦同学@题解:神犇营
判断给定有向图是否存在回路 swust oj #
1076
拓扑排序判断,相关解释在代码中就不多赘述了。#include#include#includeusingnamespacestd;vectorm;queuen,s;intA[1005][1005];intB[1005];intmain(){inta;cin>>a;intb;cin>>b;for(inti=0;i>c;m.push_back(int(c-'A'));//所有元素入队列m}for(int
yqcr
·
2020-08-10 15:07
图论
拓扑排序
Conquering Keokradong LightOJ 1048
好吧,昨天学二分的时候突然思路来了,果断把那时候还有一题(LightOJ
1076
GettheContainers)给戳掉了。然后么,在这题的打印上又卡了好长时间,,,我好弱啊。。。囧。
ab9952288
·
2020-08-10 15:56
杭电oj-
1076
-An Easy Task
ProblemDescriptionIgnatiuswasborninaleapyear,sohewanttoknowwhenhecouldholdhisbirthdayparty.Canyoutellhim?GivenapositiveintegersYwhichindicatethestartyear,andapositiveintegerN,yourtaskistotelltheNthlea
落叶晚秋
·
2020-08-09 03:20
简单数学题
1076
Wifi密码 (15分)
题目下面是微博上流传的一张照片:“各位亲爱的同学们,鉴于大家有时需要使用wifi,又怕耽误亲们的学习,现将wifi密码设置为下列数学题答案:A-1;B-2;C-3;D-4;请同学们自己作答,每两日一换。谢谢合作!!~”——老师们为了促进学生学习也是拼了……本题就要求你写程序把一系列题目的答案按照卷子上给出的对应关系翻译成wifi的密码。这里简单假设每道选择题都有4个选项,有且只有1个正确答案。输入
小马小马最可爱
·
2020-08-08 00:00
#舍得Share#Ffmpeg使用语法
转自:https://lwxshow.com/post/
1076
.htmlFfmpeg使用语法ffmpeg[[options][`-i'input_file]]...
卢卫湘
·
2020-08-07 11:25
经验教程
bfs+二分图(dbl)--poj3281
Language:DefaultEvacuationTimeLimit:1000MSMemoryLimit:65536KTotalSubmissions:
1076
Accepted:274DescriptionFirescanbedisastrous
u010660276
·
2020-08-05 20:12
二分图
BFS
PAT
1076
Forwards on Weibo BFS+图
思路:有向图的bfs搜索,注意题目的逻辑关系,即谁可以转发谁,因为数据量比较大,邻接矩阵存储然后遍历每个点的话代价太大,不过题目时间给了三秒....如果时间要求高的话,应改用邻接表存储,直接判断一下当前的人有多少次被关注就行,不用一一判别,省很多时间。注意每次查询之前需要更新inqueue数组,所有点设置为未访问#include#includeusingnamespacestd;structnod
哦啦哦啦!
·
2020-08-04 21:36
PAT甲级
硬件编程语言和编程器件
VerilogHDL与VHDL区别【1】:VHDL——VHSIC(VeryHighSpeedIntegratedCircuit)HDL,由美国DOD支持开发的HDL,1987年成为IEEE
1076
-1987
syzheng500
·
2020-08-04 18:55
硬件编程
ZZULIOJ.
1076
: 三位数求解描述
1076
:三位数求解问题描述已知xyz+yzz=n,其中n是一个正整数,x、y、z都是数字(0-9),编写一个程序求出x、y、z分别代表什么数字。
八百标兵奔北坡666
·
2020-08-01 06:25
zzulioj
杭电acm试题分类
1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、1058、1061、1070、
1076
weixin_33928137
·
2020-08-01 04:41
杭电hdu题目分类
1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、1058、1061、1070、
1076
risker_2013
·
2020-08-01 01:52
HDU
zoj
1076
思路就是求每一个exon前面最多有几个符合条件的exons,思路其实不算难,难的是怎么实现。这道题是copy人家的,用了结构体和单链表,看来还是得虚心学习才行。#include#include#include#include#include#includeusingnamespacestd;typedefstruct{intn,head,tail;}Gene;Geneg[1005];boolcom
马冬冬
·
2020-07-31 20:45
zoj
生态校区宣传片解说词 (脚本)
(片名:生态校区专题片)学校座落在北京市象山自然风景区,校区占地面积
1076
亩,建筑面积15.6万平方米。整个校区南靠工业园区,东邻高速绿化带,北邻生态农田,西临园林氧吧,地势平坦,视野开阔。
甲坤
·
2020-07-31 18:34
慧数汽车纵览:连续6年破千万,丰田2019年全球销售目标
1076
万辆
此外,丰田集团2019年度全球销售目标为
1076
万辆,与2018年度全球预计销量比为102%。丰田(丰田和雷克萨斯的合计)2019年销售目标为增长2%至968万辆。
weixin_43146218
·
2020-07-30 04:26
汽车大数据
慧数汽车
PAT (Basic Level)
1076
Wifi密码
下面是微博上流传的一张照片:“各位亲爱的同学们,鉴于大家有时需要使用wifi,又怕耽误亲们的学习,现将wifi密码设置为下列数学题答案:A-1;B-2;C-3;D-4;请同学们自己作答,每两日一换。谢谢合作!!~”——老师们为了促进学生学习也是拼了……本题就要求你写程序把一系列题目的答案按照卷子上给出的对应关系翻译成wifi的密码。这里简单假设每道选择题都有4个选项,有且只有1个正确答案。输入格式
CHarming_lyqqq
·
2020-07-29 20:23
PAT
hdu题目分类
1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、1058、1061、1070、
1076
韩小震
·
2020-07-29 19:22
题目集
A
1076
Forwards on Weibo [图的遍历bfs]
题目大意:给出查询,求微博的可能的最大转发数量。给出k个人和他关注的人,然后给查询人。用邻接表实现#include#include#include#include#include#include#include#include#includeusingnamespacestd;constintmaxv=1001;structnode{intid;intlayer;};vectoradj[maxv]
_Dahuang
·
2020-07-29 17:13
BFS
图的应用
PAT-甲级(持续更新)
大数阶乘-N的阶乘
题目
1076
:N的阶乘时间限制:3秒内存限制:128兆特殊判题:否提交:924解决:249题目描述:输入一个正整数N,输出N的阶乘。
Rachel-Zhang
·
2020-07-29 16:58
ACM
C/C++
Data
Structure
JT796、JT808、JT809、JT
1076
、JT1077、JT1078部标平台过检道路运输车辆卫星定位系统企业视频监控平台检测登记表
道路运输车辆卫星定位系统企业视频监控平台检测登记表申请单位:平台名称:平台类别:申请日期:交通运输通信信息工程质量检测中心制申请函致交通运输通信信息工程质量检测中心:为我公司的企业监控平台,使用的平台软件由开发。现自愿申报道路运输车辆卫星定位系统视频平台检测。单位名称(盖公章)二0年月日企业视频监控平台检测登记表※编号※本次录入时间平台类型企业视频监控平台平台名称数据中心详细地址平台所有者名称平台
.省厓
·
2020-07-29 11:16
LBS
.NET
C#
HDU题目分类啊!!!
1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、1058、1061、1070、
1076
剑西楼
·
2020-07-28 13:53
ACM
2017年冬季浙大PAT真题(附本人代码)
1076
.Wifi密码(15)时间限制400ms内存限制65536kB代码长度限制8000B判题程序Standard作者CHEN,Yue下面是微博上流传的一张照片:“各位亲爱的同学们,鉴于大家有时需要使用
s136424
·
2020-07-28 10:48
UnsatisfiedLinkError: dlopen failed: library "libcrypto.so.1.0.0" not found
notfoundatjava.lang.Runtime.loadLibrary(Runtime.java:372)atjava.lang.System.loadLibrary(System.java:
1076
琪花亿草
·
2020-07-28 02:00
报错
Android
bfs最短路与最小步数模型
有条件的最小步数模型2.2.3卡内存+有条件的最小步数模式bfs最短路与最小步数模型1.算法分析最短路:从A点走到B点的最小距离最小步数:从状态A到状态B的最小变化数,本质就是最短路2.例题2.1最短路acwing
1076
spcia
·
2020-07-27 00:00
bfs最短路与最小步数模型
有条件的最小步数模型2.2.3卡内存+有条件的最小步数模式bfs最短路与最小步数模型1.算法分析最短路:从A点走到B点的最小距离最小步数:从状态A到状态B的最小变化数,本质就是最短路2.例题2.1最短路acwing
1076
spcia
·
2020-07-27 00:00
PAT之图:遍历、最短路径dijkstra
bfs1013(25:邻接矩阵+求连通分量数+dfs)1021(25:邻接表+求连通分量数+每个顶点作为根节点的树的深度+dfs)1034(30:hash+求带权图的每个连通分量的最大点权重和总权重+dfs)
1076
vuscity
·
2020-07-26 23:20
PAT甲级
PAT
图
dijkstra
Leetcode
1076
.项目员工分析II(简单)
题目Table:Project+-------------+---------+|ColumnName|Type|+-------------+---------+|project_id|int||employee_id|int|+-------------+---------+主键为(project_id,employee_id)。employee_id是员工表Employee表的外键。Tabl
kaka22
·
2020-07-26 16:16
神速!官网曝光中国076“两攻”信息,中国未来“闪电航母”战力如何?
-¨èè§-éè褱ééèè·éé§è°¨¤XX6é¨è·é·
1076
¤è°é§èè°XX6éè·°±è¤§ééè·éè¨è°è°¤¤è°èèè071¤èéè°°±¤§èXX6éèéèéè·éè§è¤
军武次位面
·
2020-07-23 00:00
日语卡片NO.
1076
èéèèé°è§¨è§è§
日语学习
·
2020-07-21 00:00
1076
Forwards on Weibo (30 分)--PAT甲级
1076
ForwardsonWeibo(30分)WeiboisknownastheChineseversionofTwitter.OneuseronWeibomayhavemanyfollowers,andmayfollowmanyotherusersaswell.Henceasocialnetworkisformedwithfollowersrelations.Whenausermakesapo
NullObjectError
·
2020-07-16 01:54
PAT
Python3模拟登录淘宝并获取订单
主要参考了http://cuiqingcai.com/
1076
.html这篇文章。
寂寞梧桐啊
·
2020-07-16 01:32
算法笔记---[PAT A
1076
] Forwards on Weibo
题目链接:[PATA
1076
]ForwardsonWeibo题目描述:WeiboisknownastheChineseversionofTwitter.OneuseronWeibomayhavemanyfollowers
、那年雪天
·
2020-07-15 23:13
C++
算法笔记
编程练习
PAT(A) -
1076
. Forwards on Weibo (30)
WeiboisknownastheChineseversionofTwitter.OneuseronWeibomayhavemanyfollowers,andmayfollowmanyotherusersaswell.Henceasocialnetworkisformedwithfollowersrelations.WhenausermakesapostonWeibo,allhis/herfoll
这个好玩吗
·
2020-07-15 23:42
----bfs
PAT
PAT.A
1076
Forwards on Weibo
返回目录题意在微博中,每个用户都可能被若干其他用户关注。而当该用户发布一条信息时,他的关注者就可以看到这条信息并选择是否转发它,且转发的信息也可以被转发者的关注者再次转发,但同一用户最多只转发该信息一次(信息的最初发布者不能转发该信息)。现在给出N个用户的关注情况(即他们各自关注了哪些用户)以及一一个转发层数上限L,并给出最初发布消息的用户编号,求在转发层数上限内消息最多会被多少用户转发。样例(可
街灯下的哥斯拉
·
2020-07-15 19:57
PAT
PAT
1076
Forwards on Weibo
给出每个微博用户关注的人的数量和下标,求一个用户发微博,最多会有多少个人转发(他粉丝会转发,他粉丝的粉丝会转发他粉丝),计算前L层的人数。这一题用广度优先搜索就可以做,难点是要把握住层数。我一开始以为用深度优先搜索也可以做出来,写好一提交有两个测试点没有过去,看一下别人基本都是用广度优先搜索做出来的,用深度优先搜索的基本会有错误。后来尝试多次后,发现用深度优先搜索可能不能做出来,因为会出现跟路径有
Genius_J
·
2020-07-15 17:52
PAT
PAT A
1076
Forward on Weibo
时间限制:3000ms内存限制:64MB代码长度限制:16KBWeiboisknownastheChineseversionofTwitter.OneuseronWeibomayhavemanyfollowers,andmayfollowmanyotherusersaswell.Henceasocialnetworkisformedwithfollowersrelations.Whenauserm
Dirichlet_zju
·
2020-07-15 17:57
PAT
未完成
【PAT】A-
1076
:Forwards on Weibo(有向图的BFS遍历)
题目地址:https://pintia.cn/problem-sets/994805342720868352/problems/994805392092020736题目解释:在微博中,每个用户都可能被若干个其他用户关注。而当该用户发布一条消息时,他的关注者就可以看到这条消息并选择是否转发(forward)它,其转发的信息也可以被转发者的关注者再次转发,但同一用户最多只转发该消息一次(信息的最初发布
_奶酪
·
2020-07-15 17:55
算法入门题目
上一页
3
4
5
6
7
8
9
10
下一页
按字母分类:
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
其他