摘要:
#include #include #include #include #include #include #include #include using namespace std; struct Node { int type; //0表示buy double p; int s; }node[5005],buy[5005],sell[5005]; bool... 阅读全文
摘要:
#include #include #include #include #include #include #include using namespace std; int mp[20][15]; int m[5][5]; int main() { for(int i=0;i>mp[i][j]; int h = 0,flag=0; for(int i=0;i>m[h]... 阅读全文
摘要:
#include #include #include #include #include #include #include #include #include"iomanip" using namespace std; string p[105],r[105]; bool test(string url) //URL地址合法性检测 { if(url[0] != '/')... 阅读全文
摘要:
#include #include #include #include #include #include #include using namespace std; int a[5][5],h; struct Pos { int x,y; }pos[20]; int value(int x,int y,int type) //评价此时局面 { int... 阅读全文
摘要:
#include #include #include #include #include #include #include using namespace std; int flag[1005]; int main() { //阅读理解:接下来每个小朋友的报数是上一个小朋友报的数加1 ,一直加下去 int n,k; cin>>n>>k; for(int i=... 阅读全文
摘要:
#include #include #include #include #include using namespace std; struct HY { int u,v; }hy[10005]; bool cmp(HY a,HY b) { if(a.v == b.v) return a.u>b.u; else return a.v>t... 阅读全文
摘要:
#include #include #include #include #include using namespace std; int d[30][30005]; //d[i][j] i件中,j重量的物品 ,价格最高 int v[30],w[30]; int Max(int a,int b) { if(a>b) return a; else retur... 阅读全文
摘要:
数字很大,要用大数乘法。 阅读全文
摘要:
#include #include #include #include using namespace std; struct edge { int u,v,w; }edges[155000]; bool cmp(const edge &a,const edge &b) { return a.w>t; while(t--) { int v,e;... 阅读全文
摘要:
#include #include #include using namespace std; int mp[105][105]; int main() { int t; cin>>t; while(t--) { int r,c; cin>>r>>c; for(int i=1;i>mp[i][j]; ... 阅读全文