登录
首页 » Visual C++ » EULER1

EULER1

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

  • location
    超宽带室内定位研究,本文主要研究基于超宽带的室内定位技术的研究,并且对室内定位技术的算法做了介绍。(UWB indoor positioning research, this paper research is based on UWB indoor positioning technology research, and the algorithm for indoor positioning technologies have been described.)
    2021-04-27 17:58:44下载
    积分:1
  • rqra
    VB语言写的按键追踪控件及应用,含有调用源码。(The key tracking control written in VB language and its application contain calling source code.)
    2018-12-31 11:14:26下载
    积分:1
  • pt100
    使用PT100与STC12C5A60S2单片机进行搭配使用进行测量温度并最终显示在液晶显示器上,(Use PT100 and STC12C5A60S2 collocation is used to measure temperature and eventually single-chip display on the LCD display, )
    2013-11-08 10:47:24下载
    积分:1
  • PaletteDemo
    采用VC++6.0编写程序,主要功能是创建和使用调色板。(Programming using VC++ 6.0, the main function is to create and use a palette.)
    2015-02-28 01:29:34下载
    积分:1
  • prestressing-tendon-to-midas-
    midas钢束导入工具采用vba编码 附加lsp直线连接(prestressing tendon to midas tool)
    2021-03-02 22:19:33下载
    积分:1
  • stkVC
    说明:  用VC++调用STK,完成超强的卫星分析功能和动画运行。(Using VC++ call STK, super satellites to complete analysis and animation to run.)
    2020-09-21 14:17:56下载
    积分:1
  • DBGRID-call-SQL-database
    基于C语言的使用DBGRID控件实现的SQL数据库管理程序,方便灵活(C-based controls to achieve using DBGRID SQL database management procedures, convenient and flexible)
    2013-07-13 21:30:03下载
    积分:1
  • 7
    说明:  用 Visual Basic 演示如何建立关联文件(With Visual Basic demonstrates how to create associated files)
    2009-11-24 22:20:22下载
    积分:1
  • spreadbinddata
    说明:  实现excel上传ACcess 功能 下载excel 希望有能用到的(Implementing Excel Upload ACcess Function)
    2019-07-07 00:04:15下载
    积分: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
  • 696516资源总数
  • 106428会员总数
  • 7今日下载