poj 3160 Father Christmas flymouse

开放自己本机的mysql允许别人连接 需要在左下角搜索记事本应用,右键以管理员身份运行,之后按照上述地址找到my.ini文件,ctrl+F搜索到[mysqld],修改或添加 bind-address 设置,将其更改为 0.0.0.0 或你的计算机的 IP 地址。打开 MySQL 的配置文件 my.ini。username和密码是第3步创建能从远程地址访问的用户和密码,ip地址是ipconfig查看的地址(前提是能ping通,才能连接该地址对应的数据库)。使用 MySQL 命令行连接到自己的数据库,并创建一个能够从远程地址访问的用户。 阅读详情
Father Christmas flymouse
Time Limit: 1000MS Memory Limit: 131072K
Total Submissions: 2156 Accepted: 728

Description

After retirement as contestant from WHU ACM Team, flymouse volunteered to do the odds and ends such as cleaning out the computer lab for training as extension of his contribution to the team. When Christmas came, flymouse played Father Christmas to give gifts to the team members. The team members lived in distinct rooms in different buildings on the campus. To save vigor, flymouse decided to choose only one of those rooms as the place to start his journey and follow directed paths to visit one room after another and give out gifts en passant until he could reach no more unvisited rooms.

During the days on the team, flymouse left different impressions on his teammates at the time. Some of them, like LiZhiXu, with whom flymouse shared a lot of candies, would surely sing flymouse’s deeds of generosity, while the others, like snoopy, would never let flymouse off for his idleness. flymouse was able to use some kind of comfort index to quantitize whether better or worse he would feel after hearing the words from the gift recipients (positive for better and negative for worse). When arriving at a room, he chould choose to enter and give out a gift and hear the words from the recipient, or bypass the room in silence. He could arrive at a room more than once but never enter it a second time. He wanted to maximize the the sum of comfort indices accumulated along his journey.

Input

The input contains several test cases. Each test cases start with two integers N and M not exceeding 30 000 and 150 000 respectively on the first line, meaning that there were N team members living in N distinct rooms andM direct paths. On the next N lines there are N integers, one on each line, the i-th of which gives the comfort index of the words of the team member in the i-th room. Then follow M lines, each containing two integers i and jindicating a directed path from the i-th room to the j-th one. Process to end of file.

Output

For each test case, output one line with only the maximized sum of accumulated comfort indices.

Sample Input

2 2
14
21
0 1
1 0

Sample Output

35

 

题目大意:flymouse要去给人送礼,每个人分布在不同的地方,且他们之间有m条单向边,另外每个人获得礼物后flymouse会得到一个舒心值。现flymouse从某个人开始,沿单向边访问下一个人(其中点可以访问多次,但舒心值只能获得一次),求他能获得的最大舒心值。

分析:这题首先很明显用spfa求最大值,但直接求必然不行,考虑题目特点,可以先利用强连通缩点,这样在一个强连通分量里的必然会都访问(这里需注意,访问不代表获得该点舒心值,比如该点是负的,那么就不会获得该点舒心值,而仅仅是借用此点访问下个点),缩点后建立新图,从每个入度为0的点跑一遍spfa,求最大值

#include<cstdio>
#include<cstring>
#include<queue>
using namespace std;
const int N=30002;
const int M=150002;
int min(int a,int b){return a<b?a:b;}
int max(int a,int b){return a>b?a:b;}
struct edge{
	int v,nxt;
}edge[M];
int dfn[N],low[N],belong[N],stack[N],in[N],head1[N],head2[N],scc,top,index,n,m,cnt;
bool instack[N],vis[N];
int dis[N],sum[N],a[N];
void add(int u,int v,int* head){
	edge[cnt].v=v;
	edge[cnt].nxt=head[u];
	head[u]=cnt++;
}
void tarjan(int x){
	int i,v;
	dfn[x]=low[x]=++index;
	stack[++top]=x,instack[x]=1;
	for(i=head1[x];i!=-1;i=edge[i].nxt){
		v=edge[i].v;
		if(dfn[v]==-1){
			tarjan(v);
			low[x]=min(low[x],low[v]);
		}else if(instack[v]){
			low[x]=min(low[x],dfn[v]);
		}
	}
	if(dfn[x]==low[x]){
		scc++;
		while(1){
			v=stack[top--],instack[v]=0;
			belong[v]=scc;
			sum[scc]+=a[v];
			if(v==x)break;
		}
	}
}
void pre(){
	int i,u,v;
	scc=index=top=cnt=0;
	memset(dfn,-1,sizeof(dfn));
	memset(instack,0,sizeof(instack));
	memset(head1,-1,sizeof(head1));
	memset(head2,-1,sizeof(head2));
	memset(sum,0,sizeof(sum));
	for(i=1;i<=n;i++){scanf("%d",a+i);if(a[i]<0)a[i]=0;}
	while(m--){
		scanf("%d%d",&u,&v);
		add(u+1,v+1,head1);
	}
	for(i=1;i<=n;i++)if(dfn[i]==-1)tarjan(i);
}
void CreateMap(){
	int i,j,v;
	memset(in,0,sizeof(in));
	for(i=1;i<=n;i++)for(j=head1[i];j!=-1;j=edge[j].nxt){
		v=edge[j].v;
		if(belong[i]!=belong[v]){
			add(belong[i],belong[v],head2);
			in[belong[v]]++;
		}
	}
}
int spfa(int s){
	int i,u,v,res;
	memset(vis,0,sizeof(vis));
	queue<int> Q;
	Q.push(s),vis[s]=1;
	res=dis[s]=sum[s];
	while(!Q.empty()){
		u=Q.front(),Q.pop(),vis[u]=0;
		for(i=head2[u];i!=-1;i=edge[i].nxt){
			v=edge[i].v;
			dis[v]=max(dis[v],dis[u]+sum[v]);
			res=max(res,dis[v]);
			if(!vis[v])Q.push(v),vis[v]=1;
		}
	}
	return res;
}
int main(){
	while(~scanf("%d%d",&n,&m)){
		pre();
		int i,ans=0;
		memset(dis,0,sizeof(dis));
		CreateMap();
		for(i=1;i<=scc;i++)if(in[i]==0)ans=max(ans,spfa(i));
		printf("%d\n",ans);
	}
	return 0;
}


 

笔试题-2023-紫光展锐-数字芯片设计【纯净题目版】 阅读详情

相关推荐

别再让PyCharm吃光你的C盘!保姆级教程:安全迁移config、plugins和remote sources到D盘

本文提供了一份详细的PyCharm配置与缓存文件迁移指南,帮助开发者将config、plugins和remote sources等占用大量C盘空间的文件安全转移到D盘。通过修改data.properties文件和正确迁移顺序,确保PyCharm功能不受影响,同时释放宝贵的系统盘空间。

weixin_28836989的博客 423

POJ 3160 Father Christmas flymouse

Description After retirement as contestant from WHU ACM Team, flymouse volunteered to do the odds and ends such as cleaning out the computer lab for training as extension of his contribution to t

jjs98 707

基于freesurfer和3Dslicer的脑区分割与电极定位全流程解析(实战指南)

本文提供了一套基于FreeSurfer和3D Slicer的颅内电极定位实战指南。详细解析了从环境搭建、数据预处理、FreeSurfer脑区分割、影像配准,到3D Slicer中手动与自动化电极定位的全流程。重点介绍了如何利用FreeSurfer进行高精度脑区分割,并在3D Slicer中实现电极触点的可视化标记与坐标提取,最终获得带脑区信息的电极数据,为iEEG/SEEG研究奠定基础。

banana的博客 299

POJ 3160 Father Christmas flymouse

很简单的一道题,先tarjan缩点,然后SPFA求最长路。 #include #include #include #include #define N 30100 #define M 150100 using namespace std; struct edge{ int v,next; }edge[M]; int n,m; int num[N]; int cnt,head1[N],head2

1292765944的专栏 122

生成对抗网络(GAN、DCGAN、ACGAN)-----学习笔记

生成对抗网络学习笔记 生成对抗网络有两个关键结构:生成模型、判别模型。 生成模型:输入是一个服从正态分布的N维向量,利用这个N维向量生成一张图片。 判别模型:对于生成模型输出的图像判别它是不是真的图像。 生成模型和判别模型的博弈关系在于:生成模型的目的是生成让判别模型无法判别真伪的图像,而判别模型的目的是判断输入图像的真伪。 结合代码来看生成对抗网络中,生成器和判别器的训练过程: 判别模型的训...

weixin_43227526的博客 5489

Mathtype公式排版避坑指南:固定行距20磅下如何完美显示上下标(实测有效)

本文针对学术论文在固定行距20磅要求下,Mathtype公式上下标显示不全或被裁剪的问题,提供了实测有效的解决方案。文章深入剖析了固定行距与公式排版的冲突原理,并详细指导用户通过调整Mathtype的“定义间距”参数(如下标深度、上标高度),以及利用“格式化公式”功能进行批量处理,确保公式在严格遵守期刊格式要求的同时清晰完整显示。

weixin_29228203的博客 1069

POJ - 3160 Father Christmas flymouse DAG最长路

又来做这一道缩点的裸题,发现图转化为DAG后明显是一个最长路,那么有没有固定都求法呢,查询资料后发现的确是一种固定的做法。 DAG最长路,分为两种固定终点和不固定终点。 令dp[i]表示从i顶点出发能获得的最长路径长度,这样所有的d[i]的最大值就是整个DAG的最长路径长度。 注意到dp[i]表示从i顶点出发能获得的最长路径长度,如果从i号顶点出发能直接到达顶点j1,j2..jk,而dp[j...

swust5120171204的博客 190

UNITY2022 Cardboard环境搭建

必须安装 Git,并且 git 可执行文件必须位于 PATH 环境变量中。考文档:https://developers.google.cn/cardboard/develop/unity/quickstart?转到 Assets/Samples/Google Cardboard//Hello Cardboard/Scenes/HelloCardboard 场景中。粘贴https://github.com/googlevr/cardboard-xr-plugin.git到文本输入字段中。

weixin_39510925的博客 1211

【POJ】3160 Father Christmas flymouse 强连通+最长路

Father Christmas flymouse Time Limit: 1000MS Memory Limit: 131072K Total Submissions: 2513 Accepted: 838 Description After retirement as contestant

poursoul 1125

【血汗泪心路历程】怎么彻底删掉Sangfor文件?怎么彻底删除easyconnect?删除sangfor后网络坏了、某些app无法正常启动怎么解决?

教程来源于网络的五湖四海+gpt解答。用到了好几个教程和方法,遂这篇总结一下。会标明出处!先上一下战绩:终于把sangfor扔进回收站里了!!!哈哈哈那一刻真的好爽。

weixin_71246590的博客 6万+

OpenAI Function Calling 实战:让 Agent 自动调用外部 API 接口

在 2023 年 6 月之前,大语言模型(LLM)的能力边界是清晰的:它能说会道,能写诗作赋,也能帮你润色文案。但如果你问它"北京现在天气怎么样",它要么答不上来,要么基于过时的训练数据给你一个错误答案。原因很简单——LLM 的训练数据是有截止日期的,它活在"过去"。2023 年 6 月,OpenAI 在 GPT-4 的更新中引入了 Function Calling 功能,彻底改变了这一局面。Function Calling(也叫 Tool Use 或工具调用)是一种让 LLM 与外部系统交互的机制。

2201_76125393的博客 88

poj3160Father Christmas flymouse

Father Christmas flymouse Time Limit: 1000MS   Memory Limit: 131072K Total Submissions: 3770   Accepted: 1247 Description After retirement as contestant from WHU ACM

Oops的博客 302

科研项目数据抓取:Python爬虫实现与分析

本文详细介绍了如何使用Python爬虫抓取科研项目的数据,涵盖了从目标数据源选择到数据存储与分析的整个过程。通过使用。

2201_76125261的博客 1710

Father Christmas flymouse POJ - 3160

点击打开链接 和poj3592一个套路 缩完点跑最长路 但是要注意 缩点时不能把负值加上! #include &lt;cstdio&gt; #include &lt;queue&gt; #include &lt;stack&gt; #include &lt;cstring&gt; #include &lt;algorithm&gt; using namespace std; #define ...

sunyutian1998的博客 184

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

POJ 3160 Father Christmas flymouse 强连通+Spfa

题目地址:http://poj.org/problem?id=3160 缩点然后找出一条权重最大的路 路当然是越长越好,所以从每个入度为0的点出发,找一条权值最长的 可以假设一个点,从该点出发可以到所有入读为0的,然后以该点为起点SPFA #include #include #include #include #include #include #include using names

BRCOCOLI的博客 291

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

poj 3160 Father Christmas flymouse 强连通+dp

首先我们可以确定的是,对于val值小于0的节点都变成0.   假设一个集合内2个房间都能任意到达,那么我就可以吧集合内的所有点的价值都取到,并且可以达到任一点。实际上集合内的每个点是相同的,这样的集合就是一个强连通分量。 那么我们就可以用tarjin算法进行强连通缩点, 最后形成一个dag的图。在dag的图上面进行dp。可以先用拓扑排序后dp。或者建反响边记忆化搜索 。 VIEW  CDDE

非确定有限状态自动机 646

lwip-2.0.3

lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。

POJ 3160 Father Christmas flymouse(强连通+DP)

POJ 3160 Father Christmas flymouse 题目链接 题意:给定一个有向图,每个点有权值(可能为负),现在要求一条路径,走过每个点可以选择获得或或得该点权值,一个点最多获得一次,问一条最大值的路 思路:图有环,所以先缩点,然后就是DAG最长路了,dp搞搞就可以了 代码: #include #include #include #inclu

Remilia's 783

poj3160 Father Christmas flymouse(强连通图+dijkstra)

Description After retirement as contestant from WHU ACM Team, flymouse volunteered to do the odds and ends such as cleaning out the computer lab for training as extension of his contribution to the te...

qq_41006240的博客 250

Father Christmas flymouse--POJ3160Tarjan

Father Christmas flymouse Time Limit: 1000MS Memory Limit: 131072K DescriptionAfter retirement as contestant from WHU ACM Team, flymouse volunteered to do the odds and ends such as cleaning out t

绝尘 991

POJ 3160 Father Christmas flymouse Tarjon+DP

原题见POJ 3160题意:已知一个有向图,每点均有权值。选择一个起点开始遍历,选择它可以经过的一些点,使得点权值之和最大。一个点可以经过多次,但权值只算一遍。权值可以为负。分析权值为负时,直接标记为0,即不会加这个点的权值,但是照样可以经过。强连通分量缩为一点,求出权值之和为该点权值。构造出若干个有向无环图后,从各个入度为0的点开始遍历。把父亲结点累加到该点的值放在一个额外数组c[]上,它不影响该

Ugly Gardon 676

poj 3160 Father Christmas flymouse 强连通缩点+bfs

本题的题意为 给n个点m条边

inf_force 1185

POJ 3160 Father Christmas flymouse 【Tanjar缩点 + dfs】

传送门   题意:给你一个有向图,找寻一条路径使得经过的权值和最大(点可以重复经过,但是权值只加一次,点上的权值可加可不加)。 思路:用tanjar缩点将图转化为DAG,在tanjar缩点过程中记录一个强连通分量中正权值和,然后再跑一边记忆化dfs即可。 ///#include&lt;bits/stdc++.h&gt; ///#include&lt;unordered_map&gt; /...

qq_42211531的博客 141

POJ 3160 Father Christmas flymouse (tarjan+spfa)

Father Christmas flymouse Time Limit: 1000MS   Memory Limit: 131072K Total Submissions: 1999   Accepted: 674 Description After retirement as contestant from WHU ACM Team,...

weixin_34353714的博客 120

POJ 3160 Father Christmas flymouse 笔记

你向同学分发礼物,每个同学都有份,除了关系不好的同学。N位同学,住在N个不同的宿舍中,宿舍由M条单向道路连接,已知每条道路连接的宿舍。每位同学收到礼物后会夸你几句,听到赞美你会感到开心,给出听得宿舍 i 内的同学赞美后的开心度。自己选择起点,到达可以到达的所有宿舍,求最大开心度总和。

woniupengpeng的专栏 234

POJ 3160 Father Christmas flymouse 强联通

说实话,真心没看懂题目是什么意思,

ZQDNR 434
上一篇: poj 2762 Going from u to v or from v to u?
libing923
博客等级 码龄15年 12粉丝 71原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值