博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
hdu 1531 King
阅读量:7224 次
发布时间:2019-06-29

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

首先吐槽一下这个题目的题意描述,我看了半天才明白。 下标全部都是乱标的!!!!出题者能不能规范一点下标的写法!!!!

差分约束系统

#include
#include
#include
#include
#include
#include
using namespace std;int n,m,tyu;const int maxn=111;const int INF=0x7FFFFFFF;struct abc{ int startt; int endd; int costt;} node[maxn];vector
ljb[maxn];int ff[maxn],summ[maxn],dist[maxn];void spfa(){ queue
Q; while(!Q.empty()) Q.pop(); int i; for(i=0; i<=n+5; i++) dist[i]=INF; memset(ff,0,sizeof(ff)); memset(summ,0,sizeof(summ)); dist[0]=0; ff[0]=1; Q.push(0); while(!Q.empty()) { int hh=Q.front(); Q.pop(); summ[hh]++; if(summ[hh]>n+1) { tyu=1; break; } ff[hh]=0; for(i=0; i

 

转载于:https://www.cnblogs.com/zufezzt/p/4567684.html

你可能感兴趣的文章
Citrix XenApp应用虚拟化之RTX串号问题解决
查看>>
shell基础sed用法
查看>>
CSS奇技淫巧之实现波浪效果
查看>>
威胁告警:大量ubnt设备被植入后门
查看>>
控制textarea的字符个数
查看>>
shell监控MySQL主从状态脚本两则
查看>>
管理及I/O重定向
查看>>
IS-IS协议基本概念-1
查看>>
quartz CronExpression表达式
查看>>
使用消息队列的 10 个理由
查看>>
WIN7進錯profile 桌面文件消失
查看>>
nginx rewrite规则和参考
查看>>
java开发工具问题集锦之maven
查看>>
基于HT for Web的3D树的实现
查看>>
Django入门(一) 启动Django
查看>>
css advanced
查看>>
xml空格WhiteSpace处理
查看>>
第11集 一维直方图
查看>>
SAP R3 BASIS 教程系列 SAP中文包的安装
查看>>
Microsoft Dynamics CRM 2015 for Outlook 2010/2013 安装教程
查看>>