登录
首页 » Visual C++ » EULER1

EULER1

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

  • 56736264
    动态改变控件尺寸,VB精选编程学习源码,很好的参考资料。(When running the VB control intelligent or selected learning programming source code, VB select learning programming source code, a good reference.)
    2013-11-24 23:15:03下载
    积分:1
  • youxi
    人机对弈,互取火柴。取最后一根者输。每次至少取一根,最多取4跟。如果人先取则人必输。如果机先取,则机器等待人出错。否则人胜。(Human-computer game, and take matches. The last one loses. Check at least one of each, with up to 4 check. If the person is who will get lost. If the machine to check, then wait for others to machine error. Otherwise, people win.)
    2009-04-10 15:50:28下载
    积分:1
  • 798567
    DAO数据库表字段操作演示VC++精选编程学习源码,很好的参考资料。(DAO database table field operation and demonstration of VC++ selected learning programming source code, a good reference.)
    2013-11-21 09:05:25下载
    积分:1
  • CAMERTERMINAL
    串口拍照源程序,通过串口得到摄像头部分的JPEG数据,再把数据还原成JPG图像(Serial camera source, camera part of the JPEG data through the serial port, and then restore the data into a JPG image)
    2013-01-30 21:26:21下载
    积分:1
  • vb_kill_process
    vb,结束指定进程,api结束进程,api进程处理(vb,kill process)
    2009-04-19 10:40:18下载
    积分:1
  • 2009102412213331
    打字测试系统包含了对菜单,工具栏,任务栏,图标,数据库,文本文件等的操作源代码,特别适合初学者学习.(Typing test system consists of menus, toolbars, task bar, icons, databases, text files, and so the operation of the source code, especially for beginners.)
    2011-06-08 17:14:33下载
    积分:1
  • jorhebe
    说明:  这是一个很好的程序很好用,希望给各会员们提供方便.(This is a good procedure is useful, the members hope to provide convenience.)
    2005-11-01 16:40:40下载
    积分:1
  • quick_stretch_sample
    bmp图像缩放源码,单文档模式,带缩放比例控制对话框.(bmp image scaling source, single-document model, with scaling control dialog box.)
    2008-06-23 14:55:59下载
    积分:1
  • C++ 工资管理系统 salarysystem
    vc++和SQL Server一起实现的简单的工资管理系统,分离的数据库文件也在包里(a salary system using vc++ and SQL Server)
    2020-06-26 00:40:02下载
    积分:1
  • What_const_Really_Means
    说明:  在软件开发中,特别是驱动开发中,什么时候用const,什么时候又要加volatile,这里有详细的讲解(In software development, particularly driven development, when to use const, when that the increase in volatile, here in detail)
    2010-04-30 17:27:52下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载