登录
首页 » Visual C++ » EULER1

EULER1

于 2006-03-29 发布 文件大小:60KB
0 187
下载积分: 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 个回复

  • C++
    说明:  实现键盘触发叔叔,键盘任意按键停止数数,从而达到抽签的目的(The realization of the keyboard to trigger uncle, keyboard keys to stop any count, so as to achieve the purpose of drawing)
    2008-10-28 23:31:21下载
    积分:1
  • ARQtest
    实现ARQ协议的简单模拟,包括发送,确认号,等待,出错重发等等。(Realise a simple Model as ARQ Protocol)
    2010-10-27 12:32:34下载
    积分:1
  • Computer_making.cc
    For introductory programming class, simple logic coding.
    2016-02-25 11:36:54下载
    积分:1
  • udprecvandsend
    UDP通讯的极品例程 包括服务器端和客户端(Need for UDP communication routines, including server-side and client)
    2008-05-09 11:43:30下载
    积分:1
  • getimage
    桌面截图的程序,MFC实现,将桌面截图保存在剪切板的同时,在c盘根目录下产生一个相同的桌面截图文件。(Desktop screenshot of the program, MFC implementation, desktop screenshots saved in the clipboard, while packing in the c directory create a file the same desktop screenshot.)
    2010-01-14 21:29:47下载
    积分:1
  • fenleixinxi
    免费信息发布,信息分类,可按地区显示信息(Free information released classified information, according to the region to display information)
    2012-11-28 15:47:37下载
    积分:1
  • ShareMem
    通过内存映射对象实现程序和进程间的内存共享。(Implement programs and memory sharing between processes through a memory-mapped object.)
    2016-10-21 18:00:22下载
    积分:1
  • dui-lib
    vc++duilib中对各种控件命名的规则(vc++duilib zhong dui gezhong kongjian de mingming guize)
    2011-12-19 13:21:38下载
    积分:1
  • PhysicalGravity
    物理模拟小球重力加速度演示,不同物质加速度不同,下落状态也不同(PhysicalGravity)
    2009-09-14 18:01:56下载
    积分:1
  • driver-load
    说明:  驱动加载程序,可以通过这个程序动态加载驱动程序(sys)(Driver loader, you can dynamically load the driver program)
    2011-03-02 15:15:25下载
    积分:1
  • 696518资源总数
  • 105885会员总数
  • 31今日下载