摘要:
#include #include #define maxn 10005using namespace std;int maxsum[maxn][20], minsum[maxn][20];void RMQ(int num) //预处理->O(nlogn) { int i, j; ... 阅读全文
摘要:
在《啊哈!算法》中看到了这道题,准备敲敲代码。。。题意就是 0可以走,1不能走,输入起点和终点,找到到终点的最小步数。#include#include#include#includeusing namespace std;const int maxn=51;int a[maxn][maxn],boo... 阅读全文
摘要:
#include#include#include#includeusing namespace std;#define ms(k) memset(k,0,sizeof(k))int d[8];int month[12]={31,28,31,30,31,30,31,31,30,31,30,31};//... 阅读全文
摘要:
#include#include#include#includeusing namespace std;struct student{//定义一个结构体,存人名和钱数; string s; int my;}a[12];int main(){ int i,j,k,m,n; sc... 阅读全文
摘要:
/* ID:brodrn1 LANG:c PROG:ride*/#include#include#include#includeusing namespace std;char s[10],a[10];int main(){ int i,j,k,m,n; gets(s); gets(a)... 阅读全文