代码搜索:编程问题
找到约 10,000 项符合「编程问题」的源代码
代码结果 10,000
www.eeworm.com/read/175092/9560469
txt 问题描述.txt
加油问题
Time Limit: 1 Seconds Memory Limit: 32768 K
Total Submit:351 Accepted:84
--------------------------------------------------------------------------------
Description
输入的第
www.eeworm.com/read/371084/9569097
txt 问题描述.txt
0-1背包问题:
一个背包,承重容量为1000;
有50个物品,价值分别为Pi,重量分别为Wi;
求在背包承重范围内所装物品最大的价值。
Pi:
220 208 198 192 180 180 165 162 160 158 155 130 125 122 120 118 115 110 105 101 100 100 98 96 95 90 88 82 80 77 75 73 70
www.eeworm.com/read/170013/9823189
cpp 背包问题.cpp
#include"iostream.h"
#include"stdlib.h"
#include"stdio.h"
#define N 20
class goods{
public:
float c;
float v;
float p;
};
void main()
{
goods a[N],t;
int n;
cout
www.eeworm.com/read/170011/9823199
cpp 背包问题.cpp
#include"iostream.h"
#include"stdlib.h"
#include"stdio.h"
#define N 20
class goods{
public:
float c;
float v;
float p;
};
void main()
{
goods a[N],t;
int n;
cout
www.eeworm.com/read/363342/9958173
c 灯塔问题.c
//灯塔问题
#include
#include
#include
int sz[11][11],cf=1,k,n,a[20],b[20],c[20];
void shuru(void);
void shuchu(void);
bool panduan(void);
void goujian(void);
vo
www.eeworm.com/read/363342/9958237
c 迷宫问题.c
#include
#define r 64
#define m2 8
#define n2 10
int m=m2-2,n=n2-2;
typedef struct
{
int x,y; //行列坐标
int pre;
}sqtype;
sqtype sq[r];
struct moved
{
int x, y; //坐标增量,取值-1
www.eeworm.com/read/361878/10030654
txt 问题说明.txt
已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。
无论是用链表实现还是用数组实现都有一个共同点:要模拟整个
游戏过程,不仅程序写起来比较烦,而且时间复杂度高达O(nm),当n
,m非常大(例如上百万,上千万)的时候,几乎是没有办法在 ...
www.eeworm.com/read/358899/10176699
c 迷宫问题.c
www.eeworm.com/read/358723/10180698
doc 选票问题.doc
www.eeworm.com/read/358598/10184105
cpp josephus问题.cpp
#include
#include
struct josephus
{
int code;
josephus * next;
};
void main()
{
int number;
int interal;
cout