登录
首页 » Visual C++ » EULER1

EULER1

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

  • Network-Engineer-English-Vocabulary
    网络工程师英语词汇表网络工程师英语词汇表网络工程师英语词汇表网络工程师英语词汇表(Network Engineer English Vocabulary Network Engineer English Vocabulary Network Engineer English Vocabulary Network Engineer English Vocabulary )
    2013-11-04 20:01:04下载
    积分:1
  • MODBUS
    VC++编写的Modbus协议的上位机程序,可作为数据采集模块的上位机程序或者Modbus设备的测试程序。(VC++ written in Modbus protocol host computer program can be used as data acquisition modules, host computer program or Modbus device testing procedures.)
    2010-03-06 13:16:02下载
    积分:1
  • Lesson20Code
    数据库访问,能帮助解决很多问题的!大家可以好好学习学习。(Database access, can help solve many problems! We can learn to learn.)
    2013-07-04 11:34:58下载
    积分:1
  • 6919470
    采用WINDDOWSSDK写的按钮界面,其中详细的展现了按钮控件的各个属性的操作(Using the button interface written by WINDDOWSSDK, which details the button control of the various properties of the operation)
    2018-10-27 19:15:10下载
    积分:1
  • CPP_Socket
    windows客户端与服务器之间的网络通信代码(windows between the client and server network communications code)
    2013-07-11 23:32:54下载
    积分:1
  • USB-Switch
    通过修改注册表实现USB接口的打开和禁用(USB interface s disable and open)
    2014-03-15 22:44:14下载
    积分:1
  • 8051Pproteus-14
    《单片机C语言程序设计实训100例——基于8051+Proteus仿真》案例压缩包 第 01 篇 基础部分 14 K1-K4 控制数码管移位显示 (" Microcontroller C Programming Language Training 100 cases- based on 8051+ Proteus simulation" case archive basis of Article 01 part 14 K1-K4 control digital shift display)
    2011-07-27 21:10:19下载
    积分:1
  • Killer
    将这个dll注入QQGame即可关闭互斥量实现多开(貌似有点bug)(QQGame this dll to close the mutex into multi-open (looks like a little bug))
    2011-06-08 15:45:54下载
    积分:1
  • terrainLod
    说明:  一个关于地形LOD渲染得例子,给出了渲染得全部代码(a rendering of the terrain in LOD examples given in all rendering code)
    2006-03-22 20:45:51下载
    积分:1
  • Createwindow
    应用程序:Example 项目概述 ======================================================================== 应用程序向导已为您创建了此 Example 应用程序。 本文件概要介绍组成 Example 应用程序的每个文件的内容。 Example.vcproj 这是使用应用程序向导生成的 VC++ 项目的主项目文件。 它包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的 平台、配置和项目功能的信息。 Example.cpp 这是主应用程序源文件。 包含用于显示窗体的代码。 Form1.h 包含窗体类的实现和 InitializeComponent() 函数。 AssemblyInfo.cpp 包含用于修改程序集元数据的自定义属性。 ///////////////////////////////////////////////////////////////////////////// 其他标准文件: StdAfx.h, StdAfx.cpp 这些文件用于生成名为 Example.pch 的预编译头文件 和名为 StdAfx.obj 的预编译类型文件。 (this is a vc++ interface example!)
    2009-05-01 12:15:13下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载