文件名称:jiayouwenti
介绍说明--下载内容均来自于网络,请自行研究使用
用贪心算法实现加油问题的代码,而且是以C++实现的。-this is a C++!include<iostream.h>
#include<fstream.h>
ifstream infile("E:\\jiayou.in")
ofstream outfile("E:\\jiaou.out")
void jiayou(int*x,int n,int k){
#include<fstream.h>
ifstream infile("E:\\jiayou.in")
ofstream outfile("E:\\jiaou.out")
void jiayou(int*x,int n,int k){
(系统自动生成,下载前可以参看下载内容)
下载文件列表
加油问题\Debug\jiayou.exe
........\.....\jiayou.ilk
........\.....\jiayou.obj
........\.....\jiayou.pch
........\.....\jiayou.pdb
........\.....\vc60.idb
........\.....\vc60.pdb
........\.....\加油问题.exe
........\.....\加油问题.ilk
........\.....\加油问题.pch
........\.....\加油问题.pdb
........\jiayou.cpp
........\jiayou.dsp
........\jiayou.dsw
........\jiayou.ncb
........\jiayou.opt
........\jiayou.plg
........\加油问题.dsp
........\加油问题.dsw
........\加油问题.ncb
........\加油问题.opt
........\加油问题.plg
........\Debug
加油问题
........\.....\jiayou.ilk
........\.....\jiayou.obj
........\.....\jiayou.pch
........\.....\jiayou.pdb
........\.....\vc60.idb
........\.....\vc60.pdb
........\.....\加油问题.exe
........\.....\加油问题.ilk
........\.....\加油问题.pch
........\.....\加油问题.pdb
........\jiayou.cpp
........\jiayou.dsp
........\jiayou.dsw
........\jiayou.ncb
........\jiayou.opt
........\jiayou.plg
........\加油问题.dsp
........\加油问题.dsw
........\加油问题.ncb
........\加油问题.opt
........\加油问题.plg
........\Debug
加油问题