登录
首页 » Visual C++ » EULER1

EULER1

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

  • MRobot3Demo
    这是我们实验中用到的一个控制机械臂的实现程序,希望能有所帮助!(This is our experimental robotic arm used in the realization of a control program, hoping to help!)
    2020-11-20 18:59:36下载
    积分:1
  • wdf_filter0
    说明:  国内文件驱动编程知名人物蔡大侠的教程源代码,第一部分,主要实现对文件读写操作的拦截(domestic paper-driven programming eminent figures Cai heroes tutorials source code, the first part of the main document and write interception)
    2006-03-16 16:45:48下载
    积分:1
  • wwwClient
    www客户机程序设计。 基于vs2010环境,mfc图形界面(failed to translate)
    2012-02-19 01:03:48下载
    积分:1
  • huawei_HandsetWinDriver
    手机的驱动,话为手机 官方更新,电信 定只的集资(Phone driver, if the official update for the phone, telecommunications fixed capital formation only)
    2013-10-12 19:43:21下载
    积分:1
  • 免注册调用DLL(纯API)
    说明:  很久之前收录的,并非原创。歪果仁写的免注册调用DLL的VB源码例子。(What was included a long time ago was not original. An example of VB source code for non-registered DLL calls written by crooked kernels)
    2021-03-11 16:09:25下载
    积分:1
  • jiaotong
    简易的全国交通管理查询系统,包括列车查询系统和航班查询系统。它有查询城市,查询车次,查询航班等功能。(Simple national traffic management query system, including the train inquiry system and flight inquiry system. It has the query city, query trips, check flight.)
    2013-05-17 15:55:54下载
    积分:1
  • distance_between_two_lines
    对于给定的两个线段,程序输出这两个线段之间的距离(For a given two line segments, the program output that the distance between two line segments)
    2009-03-25 16:04:31下载
    积分:1
  • js
    说明:  利用VB6.0计算指定日期在一年当中的排序,以1月1日为第一天。(Sort calculated using VB6.0 specified date in the year to January 1 as the first day.)
    2015-09-11 18:44:27下载
    积分:1
  • spreadbinddata
    实现excel上传ACcess 功能 下载excel 希望有能用到的(Implementing Excel Upload ACcess Function)
    2019-07-07 00:04:15下载
    积分:1
  • calculator
    基于单片机的简易计算器,4键输入,完成加减乘除(calculator)
    2009-11-06 21:17:20下载
    积分:1
  • 696518资源总数
  • 104824会员总数
  • 34今日下载