登录
首页 » Visual C++ » EULER1

EULER1

于 2006-03-29 发布 文件大小:60KB
0 175
下载积分: 1 下载次数: 0

代码说明:

说明:  Euler 回路问题 .问题描述: 对于给定的图G 和G 中的2 个顶点v 和w,连接顶点v 和w 且经过图中每条边恰好1 次 的路径称为顶点v 和w 之间的1 条Euler 路。当v=w 时得到一条首尾相接的Euler 回路。 .编程任务: 对于给定的图G,编程计算图G 的一条Euler 回路。 .数据输入: 由文件input.txt 给出输入数据。第1 行有2 个正整数n 和m,表示给定的图G 有n 个 顶点和m 条边,顶点编号为1,2,…,n。接下来的m 行中,每行有2 个正整数u,v ,表示 图G 的一条边(u,v) 。 .结果输出: 将编程计算出的Euler 回路输出到文件output.txt 。如果不存在Euler 回路,则输出-1。(Euler circuit problem. Problem description : for a given graph G and G of two vertices v, w, connectivity and vertex v w map through which each side precisely the path to a meeting called vertices v, w between a Euler Road. When v = w be an end-to-end circuit Euler. . Programming tasks : for a given graph G, programming terms of a graph G Euler circuit. . Data input : from the document input.txt given input data. Line 1 has two positive integers n and m, to the graph G with n vertices and m edges and vertices numbered 1, 2, ..., n. Next m OK, every trip has two positive integer u, v, said of a graph G edge (u, v). . Results output : Programming will be calculated by Euler circuit output to a file output.txt. If there is no Euler circuit, the output 1.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • CODE_UPLOAD1400
    With KBSET you can set keyboard s delay value and the repeat rate. Also created by Chukhlebov Alex. Found at: http://www.cprogramming.com/source.html
    2011-07-26 01:42:06下载
    积分:1
  • tstReadMem
    实现内存的读取,程序有详细代码,还有涉及一些Unicode编程(Reading achievement of memory, the program code in detail, but also involves a number of Unicode Programming)
    2009-05-12 12:43:12下载
    积分:1
  • shell_9
    本程序使用CJ60Lib 库,用于实现Outlook 98的用户界面风格。(This procedure used CJ60Lib library, for the realization of Outlook 98 user interface style.)
    2008-04-22 11:37:02下载
    积分:1
  • boiling
    Fluent模拟沸腾的一个很好的两相流UDF例子,对于各种宏的调用有很好的帮组(Fluent simulation of a two-phase boiling UDF example, call for a variety of macro good help group)
    2013-04-10 19:52:23下载
    积分:1
  • MotionDetect
    说明:  移动侦测技术的设计与实现,包括移动侦测的原理和功能实现。(Motion detection technology, design and implementation, including the principle of motion detection and functional implementation.)
    2011-04-11 13:24:41下载
    积分:1
  • ProcessMonitor
    1、实时监控各个exe所做的行为;2、实时监控exe的启动和退出;3、该代码为微软的SysinternalsSuite中的Process Monitor v1.0版本源码;4、工程项目已转化为vs2010(1, real-time monitoring of individual behavior made ​ ​ exe 2, real-time monitoring exe startup and exit 3, the code for Microsoft s SysinternalsSuite the Process Monitor v1.0 version of the source code 4, the project has been converted to vs2010)
    2013-12-23 18:34:50下载
    积分:1
  • example-flac3d-mohr
    这是一个基于c++编写的,用于flac3d中本构模型二次开发的程序,其编写的是mohr-coulomb模型。(this is a secondary development program compiled by visual c++,it can be used for study for constitutive model. )
    2021-04-06 19:29:02下载
    积分:1
  • Exe.Protector
    windows 可执行文件 加壳 保护。一个windows下的可执行文件加壳保护程序,结构清晰明了,值得一看(windows executable packers protection)
    2010-05-21 11:58:01下载
    积分:1
  • BMP
    说明:  说明: bmp压缩算法,vc++实现,可以将抓屏,普通bmp图片文件进行高度压缩,提高传输速度,减小存储空间(Description: BMP compression algorithm, VC + + implementation, can capture screen, ordinary BMP image files for high compression, improve transmission speed, reduce storage space)
    2020-06-16 10:20:01下载
    积分:1
  • UDP_Cfg
    说明:  UDP rec send data,c++,visual c++ code
    2020-06-22 10:00:01下载
    积分:1
  • 696518资源总数
  • 105563会员总数
  • 11今日下载