登录
首页 » Visual C++ » EULER1

EULER1

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

  • SUN
    奇迹世界破解无限多开Wonder of the World to crack open an infinite number(Wonder of the World to crack open an infinite number)
    2021-04-15 15:48:54下载
    积分:1
  • vibrationSprumCapture
    使用陀螺仪采集车辆振动信号。示范使用LabVisual示波器控件使用(开发工具visual studion 2008 C#) (capture vibration by AHRS and Xbow )
    2012-03-25 07:04:40下载
    积分:1
  • Sokkia-Total-Station-Control-Command
    索佳、拓普康全站仪串口通信控制指令,通过软件控制仪器实现联机通信与自动测量。(Total Station Control Command)
    2021-03-10 10:39:27下载
    积分:1
  • socket_example
    说明:  一个简单实用的socket编程例子。server端与client端进行通信的简单实例。(a simple and practical example of the socket programming. With the client-server communication-a simple example.)
    2020-11-10 01:49:46下载
    积分:1
  • project
    手机维修系统(使用前请先阅读说明) 一. 系统简介: 系统采用VC 6.0 +ADO+数据控件绑定技术实现 系统分为产品信息板块,维修信息板块,留言板块,利润查询板块,维修人员管理板块,配件管理板块,系统设置板块。 系统登陆方面分为三个等级权限0级权限为匿名登陆只能进行维修信息产品信息的查询,查看留言和留言的功能。1级权限可以进行产品维修信息的更新删除,产品信息的更新删除,及0权限的所有操作。2级权限可以进行全部操作包括维修人员信息更新删除,配件信息的更新删除,季度利润查询,维修人员信息的查询更新及以上两种权限的所有操作。 关于用户密码没有用专业加密算法加密,只是通过简单的逆序排列。为了保证数据安全可以通过数据库的加密,或专业MD5加密算法。 关于按钮,留言板块的按钮通过按钮重绘技术实行动态显示。而在主界面的按钮通过加载图标来显示。 (err)
    2008-08-14 16:58:32下载
    积分:1
  • storage
    LINUX下USB驱动程序的开发,适用于操作系统课程设计等。(LINUX under the USB driver development, applicable to the operating system, such as curriculum design.)
    2007-07-12 11:08:09下载
    积分:1
  • classicyuanma
    C++, 经典 , 源码, 下载,保留,C++, 经典 , 源码,(C++ classicclassic)
    2010-03-06 14:47:58下载
    积分:1
  • TimeAndSpace
    c语言高效编程的几招--时间与空间的互换(Efficient Programming Tips- the exchange of time and space)
    2010-10-08 11:35:36下载
    积分:1
  • WVSG
    dsp28335程序,实现虚拟同步发电机的逆变器控制策略(dsp VSG)
    2021-02-18 08:59:45下载
    积分:1
  • SMSAlarm
    这是一个短信报警的小程序,它通过ADO操作读取发送的短信号码和内容,自动发送短信并产生日志(This is a message warning of a small program that reads through the ADO operation number and content of messages sent automatically send text messages and generate the log)
    2009-10-13 08:53:22下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载