登录
首页 » Visual C++ » EULER1

EULER1

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

  • bianjiqi
    功能:输入一页文字,程序可以统计出文字、数字、空格的个数。   静态存储一页文章,每行最多不超过80个字符,共N行;要求(1)分别统计出其中英文字母数和空格数及整篇文章总字数;(2)统计某一字符串在文章中出现的次数,并输出该次数;(3)删除某一子串,并将后面的字符前移。 (功能:输入一页文字,程序可以统计出文字、数字、空格的个数。)
    2021-01-06 14:18:53下载
    积分:1
  • clearCIH
    计算机安全,清除CIH病毒的程序,程序中有部分说明。(Computer security, CIH virus removal procedures, procedures that are part of.)
    2009-04-25 17:21:30下载
    积分:1
  • 12can
    c8051F系列单片机CAN总线的应用例程(c8051F Series Single-chip CAN bus application routines)
    2009-02-22 17:54:22下载
    积分:1
  • ADOTest
    VC2005通过ADO连接Access2007数据库的简单Demo,系统Vista SP1 + Visual Studio 2005 + Office 2007 !!!(VC2005 connected Access2007 database through ADO simple Demo, system, Vista SP1+ Visual Studio 2005+ Office 2007!!!)
    2009-06-20 14:27:01下载
    积分:1
  • Matiral-
    适用于原料车间,原料混合配料过程的监控和管理,能引导和规范配料过程,并用数据库存储配方,方便查询统计。(Suitable for workshop materials, raw material mixing ingredients monitoring and management processes, to guide and regulate the batching process and use the to store recipes, easy access statistics.)
    2016-06-17 16:58:47下载
    积分:1
  • G722_1Decoder
    G722_1Decoder 是一个基于C的可供移植的DLL, 可以用于引入到.Net程序,只需调用DllImport即可方便地在.Net Project 里使用,可用于多媒体在网络中的实时音频传输和播放。(Is a G722_1Decoder of available C based on the DLL, can be used for the introduction of the. Net program, simply call the DllImport can easily. Net Project in use, can be used for multi-media in the network of real-time audio and video transmission.)
    2020-10-26 01:00:00下载
    积分:1
  • UartAssist
    这个是非常流行的串口调试工具的VC++源代码,对于需要深入了解串口通信的朋友非常有帮助,需要的朋友可以看看。(This is a very popular tool for serial debug VC++ source code, the need for deeper understanding of serial communication very helpful friend, a friend in need can take a look at.)
    2021-04-22 15:38:49下载
    积分:1
  • 分词051024
    说明:  中文信息处理,例如将可含有汉字和拼音的将TXT文本中的汉字和拼音用空格隔开(Chinese information processing, for example, may contain characters and the alphabet will TXT version of the characters and the alphabet with a space separated)
    2005-10-24 14:23:18下载
    积分:1
  • TCP-UDP
    TCP与UDP源代码测试程序,方便初学者观看,理解。用VC写的,容易读懂。。(TCP and UDP code for ABC to use)
    2012-06-17 11:38:04下载
    积分:1
  • xmsswifiqd
    vc书籍。入门级教学,用于引导新手。用于自学。(vc books. Entry-level teaching, to guide novice. For self-study.)
    2014-05-25 08:17:35下载
    积分:1
  • 696518资源总数
  • 106164会员总数
  • 18今日下载