登录
首页 » Visual C++ » EULER1

EULER1

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

  • vc_src
    里面有很多关于VC编程的小例子,希望对初学VC的人有很大的帮助(There are so many VC programming on a small example, in the hope that people beginner VC very helpful)
    2008-03-12 20:39:39下载
    积分:1
  • 000000000000001
    光立方【动画+频谱】!8*8*8光立方 的动画和频谱源程序!(Light Cube [animation+ spectrum]! 8* 8* 8 light cube animation and spectrum source!)
    2013-09-02 21:22:21下载
    积分:1
  • SMYAOJ14
    实现三维对象的平移,旋转变换,以及投影变换,不错的(Realize 3 d object of translation, rotation transformation and projection transformation, good)
    2017-05-07 15:52:59下载
    积分:1
  • 4637354
    Windows音频音量控制实例VB代码,有需要的下。(Windows VB code, audio volume control instance in need.)
    2013-08-19 08:37:33下载
    积分:1
  • RayTraceCUDA
    这是一个基于CUDA的光线追踪Demo演示,运行后按回车可以看到结果。(This is a demo based on CUDA for ray tracing. After running the program, please press the enter key to see the results.)
    2009-05-01 23:18:40下载
    积分:1
  • LCD_1602
    基于MSP430的LCD1602驱动程序,里面有写好了的h文件和c文件,添加到工程即可运用。(Based on LCD1602 MSP430 driver, there are written the h files and c file, adding to the engineering can be used.)
    2012-08-13 19:00:56下载
    积分:1
  • 63464856346
    VB武林快打(打字软件)源代码,有需要的就下载吧。(VB Wulin Fighter (typing software) source code, there is a need to download it.)
    2013-08-04 15:15:08下载
    积分:1
  • comm
    Windows串口编程 (Windows serial programming)
    2020-06-30 11:20:02下载
    积分:1
  • AI_Textbook
    Artificial Intelligence For Game Developers
    2009-12-29 18:24:42下载
    积分:1
  • code
    初步熟悉c++面向对象的功能,包括构造函数,简单类的使用(Preliminary familiar c++ object-oriented features, including constructors, the use of a simple class)
    2013-06-24 14:57:00下载
    积分:1
  • 696518资源总数
  • 104349会员总数
  • 32今日下载