登录
首页 » Visual C++ » EULER1

EULER1

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

  • CSV
    这是我自己经常用的log数据操作的库,主要是保存成csv文件格式,方便用excel进行打开分析数据。我平时都用它log电池老化数据然后 进行分析和处理。(This is my own library log data often operate primarily saved as csv file format to facilitate analysis of data using excel for opening. I usually have to use it to log battery aging data is then analyzed and processed.)
    2016-01-28 23:25:09下载
    积分:1
  • MFC-ATL-SDK-Socket
    MFC、ATL、SDK、SOCKET 等概念的辨析,详细解读(The Concept of MFC, ATL, SOCKET, detailed interpretation)
    2013-04-09 13:26:24下载
    积分:1
  • regedit
    说明:  实现了注册表编程的一般操作,例如查询、修改等(Achieved the general operation of the registry program, such as query, modify, etc.)
    2008-12-08 15:11:35下载
    积分:1
  • MapXSample100
    Max Sample VC++ Max 实例程序(Max Sample VC++ Max examples of procedures)
    2009-02-18 20:45:05下载
    积分:1
  • ipman
    IP包监听程序 (IP packet sniffer)
    2020-06-26 12:40:01下载
    积分:1
  • ConvertBMP
    说明:  说明: 压缩BMP图片,图片质量有些损失,但压缩率很大(Explanation: Compressing BMP pictures may cause some loss of image quality, but the compression rate is very high.)
    2020-06-16 10:40:01下载
    积分:1
  • ahv-output
    Mini Programs, written in the visual basic language, whose purpose is to input and output transcripts
    2018-11-05 11:04:02下载
    积分:1
  • api_simulation
    一款利用vc调用windows API函数,模拟键盘输入的小程序。仅供参考(use vc calling Windows API functions, simulated keyboard input of small procedures. For reference)
    2006-11-07 23:15:33下载
    积分:1
  • nmo
    nmo的c程序,多层 比较简单nmo的c程序,多层 比较简单(nmo)
    2009-04-03 10:01:12下载
    积分:1
  • DrawSgy
    读取IBM数据类型sgy文件,转换换为IEEE类型数据文件;然后绘制读取的sgy数据。含有测试数据。(Read IBM data type sgy file types convert to IEEE data file then read sgy draw data. With test data.)
    2010-07-11 14:03:57下载
    积分:1
  • 696522资源总数
  • 104040会员总数
  • 35今日下载