登录
首页 » Visual C++ » EULER1

EULER1

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

  • DisWinLynn
    说明:  自己写的一个可以屏蔽系统键的程序,可以屏蔽WIN键,当然你可以修改其他屏蔽键!(玩魔兽时防止按错退出写的一个自己用的辅助工具)(himself in a system can shield key procedures, shielding WIN button, of course, you can modify other shielding keys! (Barry wrong by preventing the withdrawal was made with one of his aids))
    2005-10-08 13:21:56下载
    积分:1
  • opnet_dsr
    运行在opnet仿真平台下的dsr路由协议模型(Configure the IMS model has an important role in packages, sip and umts 3g network in opnet)
    2012-04-05 13:53:06下载
    积分:1
  • DRAWDEMO
    VC6.0环境下,使用鼠标完成基本图形(直线、圆弧、贝塞尔曲线等)的绘制,并显示动态绘制效果。(Under VC6.0 environment, We can use the mouse to draw the basic graphics (straight line, arc, Bessel curve, etc.) ,and also show the effect of dynamic rendering.)
    2016-07-06 09:05:56下载
    积分:1
  • ADDRESSbook
    说明:  VC++编写的通迅录,可实现增加,修改,删除等等功能,利用了多个控件,对初学者非常有帮助!!(VC++ written communication records, can be realized to increase, modify, delete, etc. capabilities, the use of a number of controls, very helpful for beginners! !)
    2011-04-12 20:33:29下载
    积分:1
  • huoqu
    获取本地计算机信息的小代码,比较简单,适合初学网络编程(a simple program of geting information from computer)
    2013-11-28 23:56:56下载
    积分:1
  • obj
    类似查询分析器过的人很多 d当断不断分别代表谔谔二环内而改变 (Similar to Query Analyzer too many people off constantly when d-e-e, respectively, on behalf of change within the Second Ring)
    2008-06-06 10:57:50下载
    积分:1
  • 3
    说明:  visual C++的MFC程序,建立对VC的基础性了解(this describes in detail the characteristics of C++ language, basic grammar, and explain with examples)
    2012-12-24 21:56:58下载
    积分:1
  • MapXGPS
    基于MapX的GPS车辆监控的源码 GIS编程(MapX-based GPS vehicle monitoring source GIS Programming)
    2009-11-18 09:30:37下载
    积分:1
  • controlling_lock_keys_demo_sdi
    控制CAPSLOCK, NUMLOCK, SCRLOCK键的程序(The Example of controling CAPSLOCK, NUMLOCK, SCRLOCK)
    2020-06-30 22:00:02下载
    积分:1
  • TongBu1111
    在windows操作系统上,测试排序,常用的排序方法,主要是测试使用(Test sort program with uasual ordering approach based on Windows OS, mainly for test.)
    2005-07-06 23:54:44下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载