博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ssl提高组周二备考赛【2018.10.30】
阅读量:2023 次
发布时间:2019-04-28

本文共 2481 字,大约阅读时间需要 8 分钟。

前言

依旧想去德育基地…


成绩

R a n k Rank Rank P e r s o n Person Person S c o r e Score Score A A A B B B C C C
1 1 1 2017 x x y 2017xxy 2017xxy 210 210 210 40 40 40 100 100 100 70 70 70
2 2 2 2017 m y s e l f 2017myself 2017myself 190 190 190 20 20 20 100 100 100 70 70 70
3 3 3 2017 l x f 2017lxf 2017lxf 180 180 180 0 0 0 90 90 90 90 90 90
4 4 4 2017 z y c 2017zyc 2017zyc 170 170 170 0 0 0 100 100 100 70 70 70
5 5 5 2017 z y x 2017zyx 2017zyx 150 150 150 40 40 40 60 60 60 50 50 50
6 6 6 2017 x j q 2017xjq 2017xjq 130 130 130 0 0 0 100 100 100 30 30 30
7 7 7 2017 l r z 2017lrz 2017lrz 100 100 100 10 10 10 90 90 90 0 0 0
7 7 7 2013 l y k 2013lyk 2013lyk 100 100 100 0 0 0 100 100 100 0 0 0
9 9 9 2015 z y f 2015zyf 2015zyf 90 90 90 20 20 20 0 0 0 70 70 70
10 10 10 2013 l x h 2013lxh 2013lxh 90 90 90 0 0 0 90 90 90 0 0 0

正题


T 1 : n s s l 1254 − A ( T1:nssl1254-A( T1:nssl1254A(林下风气 ) ) )【树形 d p dp dp

博客链接:


T 2 : n s s l 1255 − B ( T2:nssl1255-B( T2:nssl1255B(轻功 ) ) ) S P F A , SPFA, SPFA,分层图】

博客链接:


T 3 : n s s l 1256 − C ( T3:nssl1256-C( T3:nssl1256C(盟主的忧虑 ) ) )【并查集】

博客链接:


s o m e   o f   c o d e some\ of\ code some of code


T2 20分code

#include
#include
#include
#define N 4000#define XJQ 19260817using namespace std;struct node{
int to,next;}a[N];int ls[N],w[N],maxs,mins,ans,n,k,tot,x,y,in[N];void addl(int x,int y){
a[++tot].to=y; a[tot].next=ls[x]; ls[x]=tot;}void dp1(){
for(int i=1;i<=n;i++) {
maxs=0; mins=2147483647; for(int j=i;j<=n;j++) {
maxs=max(maxs,w[j]); mins=min(mins,w[j]); if(maxs-mins==k) ans++; } } printf("%d",ans);}int main(){
scanf("%d%d",&n,&k); for(int i=1;i<=n;i++) scanf("%d",&w[i]); for(int i=1;i

T3 70分code

#include
#include
#define N 100010using namespace std;struct node{
int to,w,next,from;}a[N];int ls[N],tot,x,y,w,ans,dep[N],n,m,S,dfn[N],end[N],cnt;void addl(int x,int y,int w){
a[++tot].to=y;a[tot].w=w; a[tot].next=ls[x];ls[x]=tot; a[tot].from=x;}void dfs(int x,int fa){
dfn[x]=++cnt; dep[x]=dep[fa]+1; for(int i=ls[x];i;i=a[i].next) if(i
dep[a[x].to]) x++; return x;}int main(){
scanf("%d%d",&n,&m); for(int i=1;i
=dfn[x]&&dfn[a[j].to]<=end[x]&& (dfn[a[j].from]
end[x]) || dfn[a[j].from]>=dfn[x]&&dfn[a[j].from]<=end[x]&& (dfn[a[j].to]
end[x])) ans=min(ans,a[j].w); if(ans==2147483647) printf("-1\n"); else printf("%d\n",ans); }}

尾声

话说题目又ABC。老师改题面了

转载地址:http://txzaf.baihongyu.com/

你可能感兴趣的文章
找回Firefox“保存并退出”的功能
查看>>
WinCVS 宏不可用的解决方案
查看>>
WIN7下给C盘扩容
查看>>
普林斯顿结构 VS 哈佛结构
查看>>
Windows计算器求以2为底的对数
查看>>
MFC中使文档对话框最大化显示的方法
查看>>
在MFC单文档对话框实现窗口分拆
查看>>
文档对话框程序启动时默认打开文件
查看>>
MFC的自定义消息(用户消息)的定义与使用
查看>>
VS2005的正则表达式替换
查看>>
在VS2005中使用OCX控件
查看>>
VC6.0转VS2005问题及解决办法
查看>>
自定义MFC打开/保存对话框的扩展名
查看>>
Windows音频编程:Win32 Wave API 的使用
查看>>
基于WaveX低级音频函数的实时语音通信
查看>>
回调函数调用类成员函数的方法
查看>>
waveOutReset锁死问题
查看>>
MFC命令消息(WM_COMMAND)的传送路径
查看>>
改变工具栏按钮状态的方法
查看>>
改变菜单勾选状态的方法
查看>>