登录
首页 » Visual C++ » EULER1

EULER1

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

  • ExcelAccc
    通过本文及配套示例源码你可以更加灵活的控制Excel表格文件,其中包括创建新Excel文件、写入表格数据、读取表格数据(包括对原建Excel文件自已手工添加的行、列数据的准确读取),删除已有Excel表格,对表格中指定行、列、单元格进行查询、插入、替换等操作,同时还可以将生成的Excel文件转换为按指定分隔符分隔的其它文本格式的文件(adoption of this sample source code and supporting you to be more flexible control of Excel documents, including the creation of new Excel file, write tabular data, reading the spreadsheet data (including the original Excel files built themselves manually add the rows and columns of data accurately read), has been deleted Excel spreadsheet, the forms were designated rows and columns, and cells to conduct inquiries, insert, replace, etc, and also can be generated for the Excel document conversion designated by separate segregated from the other website text files)
    2005-03-21 10:22:41下载
    积分:1
  • bcast
    此程序实现了IPX/UDP/TCP三种协议的广播( This procedure has realized the IPX/UDP/TCP three kind of agreements broadcasts )
    2020-06-26 12:20:02下载
    积分:1
  • 04_Modelsim6.5_crack
    Modelsim6.5破解与安装详解,内含应用程序及环境配置详情(Modelsim6.5 crack and installation steps)
    2016-06-19 20:58:13下载
    积分:1
  • MiNiplayer_zl
    说明:  迷你播放器,采用C++开发,支持多种播放多媒体文件,非常好用的一个迷你播放器。(Mini player, using C++ developers to support multiple broadcast multimedia files, very easy to use as a mini player.)
    2010-04-26 16:34:28下载
    积分:1
  • ClockTst
    WIN32编写的时钟应用程序 自绘控件及菜单具有一定参考价值(WIN32 written Clock application has some reference value since the draw controls and menus)
    2015-06-05 08:36:18下载
    积分:1
  • MFC-Sample
    MFC详细的学习例子,很多实例供初学者学习(MFC detailed study examples, many examples for beginners to learn)
    2013-07-25 09:34:46下载
    积分:1
  • HDF_read_guide
    对HDF格式的MODIS遥感影像进行读取(MODIS imagery for HDF format for reading)
    2013-12-19 09:56:52下载
    积分:1
  • Serial-port-control-PTZ-camera
    串口控制云台摄像头的程序,已经测试过了,可以参考(Serial control PTZ camera program has been tested, you can refer)
    2014-11-26 17:47:47下载
    积分:1
  • GMRES
    本文件是gmres算法的c语言代码,大家都抓紧抢着下载哦。(This document is gmres algorithm c language code, everyone rushing to seize download oh.)
    2014-01-04 22:15:10下载
    积分:1
  • driver
    在制作驱动软件的过程中,运用此程序可以用来截取包(Driver software in the production process, the use of this procedure can be used to intercept packets)
    2010-12-22 09:44:40下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载