当前位置: 首页 > news >正文

如何做自己公司的网站网站规划开发前景

如何做自己公司的网站,网站规划开发前景,手机在线电影网站,网站建设合同 代码应不应该给目录 RC-u1 大家一起查作弊 分数 15 RC-u2 谁进线下了#xff1f;II 分数 20 RC-u3 势均力敌 分数 25 RC-u4 City 不 City 分数 30 RC-u5 贪心消消乐 分数 30 RC-u1 大家一起查作弊 分数 15 简单模拟题#xff0c;对于多行读入使用while(getline(cin…目录 RC-u1 大家一起查作弊   分数 15 RC-u2 谁进线下了II     分数 20 RC-u3 势均力敌     分数 25 RC-u4 City 不 City     分数 30 RC-u5 贪心消消乐    分数 30 RC-u1 大家一起查作弊   分数 15 简单模拟题对于多行读入使用while(getline(cin,s))即可 // 数学公式要变形 // 莫急莫急先读题 #include bits/stdc.h using namespace std; #define lowbit(x) (x(-x)) #define endl \n #define ios ios::sync_with_stdio(0); cin.tie(0),cout.tie(0); #define LF(x) fixedsetprecision(x)// c 保留小数 #define den(a) cout #a a \n; #define deg(a) cout #a a ; typedef long long LL; typedef pairint, int PII; const int N1000010,M1010,INF0x3f3f3f3f,mod1e97; const double paiacos(-1.0);// pai mapint,int mp; int t,n,m;//是不是关键字 bool check(char x){if(Ax and xZ) return true;if(ax and xz) return true;if(isdigit(x)) return true;return false; } //可疑分数计算 int get(string s){int big 0, small 0, sz 0;for(autox:s){if(Ax and xZ) big 1;if(ax and xz) small 1;if(isdigit(x)) sz 1;}if(big and small and sz) return 5;if(sz and (big or small)) return 3;if(big and small) return 1;return 0; } void solve(){int sum 0,len 0, cnt 0;string s;while(getline(cin,s)){string now;for(autov:s)if(check(v)) now v;else{if(!now.empty()){sum get(now);len now.size();cnt;}now.clear();}// 可能最后还有东西if(!now.empty()){sum get(now);len now.size();cnt;}}cout sum endl;cout len cnt endl;return ; } signed main () {ios// 不能有printf puts scanfint t1;while(t--){solve();} }RC-u2 谁进线下了II     分数 20 简单模拟按照题目意思模拟即可 // 数学公式要变形 // 莫急莫急先读题 #include bits/stdc.h using namespace std; #define lowbit(x) (x(-x)) #define endl \n #define ios ios::sync_with_stdio(0); cin.tie(0),cout.tie(0); #define LF(x) fixedsetprecision(x)// c 保留小数 #define den(a) cout #a a \n; #define deg(a) cout #a a ; typedef long long LL; typedef pairint, int PII; const int N1000010,M1010,INF0x3f3f3f3f,mod1e97; const double paiacos(-1.0);// pai mapint,int mp; int t,n,m; int d[30] {0,25,21,18,16}; bool st[N]; int w[N];struct code{int id,x;bool operator(const codet)const{if(xt.x) return idt.id;return xt.x;} }e[N];void solve(){for(int i5;i20;i) d[i] 20 - i;cinn;while(n--){m 20;while(m--){int x,r; cinxr;w[x] d[r];st[x] true;}} n 30;for(int i1;in;i) e[i]{i,w[i]};sort(e1,e1n);for(int i1;in;i){auto [id,x] e[i];if(!st[id]) continue;cout id x endl;}cout endl;return ; } signed main () {ios// 不能有printf puts scanfint t1;while(t--){solve();} }RC-u3 势均力敌     分数 25 按照题目直接暴力枚举所有情况使用全排列 二进制枚举 时间复杂度大致如下 同时不会跑满所以可以通过 // 数学公式要变形 // 莫急莫急先读题 #include bits/stdc.h using namespace std; #define lowbit(x) (x(-x)) #define endl \n #define ios ios::sync_with_stdio(0); cin.tie(0),cout.tie(0); #define LF(x) fixedsetprecision(x)// c 保留小数 #define den(a) cout #a a \n; #define deg(a) cout #a a ; typedef long long LL; typedef pairint, int PII; const int N1000010,M1010,INF0x3f3f3f3f,mod1e97; const double paiacos(-1.0);// pai mapint,int mp; int t,n,m; int a[N],p[N];void solve(){cinn;for(int i1;in;i){cina[i];p[i] i;}vectorint v;int sum 0;do{int ans 0;for(int i1;in;i) ans ans * 10 a[p[i]];v.push_back(ans);sum ans;}while(next_permutation(p1,p1n));m v.size();for(int i0;i(1m);i){if(__builtin_popcount(i)!m/2) continue;int now 0;vectorint ans;for(int j0;jm;j){if(ij1){ans.push_back(v[j]);now v[j]; }}if(nowsum/2){for(autov:ans) cout v endl;cout endl;return ;}}return ; } signed main () {ios// 不能有printf puts scanfint t1;while(t--){solve();} }RC-u4 City 不 City     分数 30 典型的分层图一个城市有多个状态跑一遍djikstra即可注意本题是计算途经城市的hot值所以初始状态是 d[s][0]  0在可以抵达t的时候来判断即可 // 数学公式要变形 // 莫急莫急先读题 #include bits/stdc.h using namespace std; #define lowbit(x) (x(-x)) #define endl \n #define ios ios::sync_with_stdio(0); cin.tie(0),cout.tie(0); #define LF(x) fixedsetprecision(x)// c 保留小数 #define den(a) cout #a a \n; #define deg(a) cout #a a ; typedef long long LL; typedef pairint, int PII; typedef arrayint,3 ar3; const int N1000010,M1010,INF0x3f3f3f3f,mod1e97; const double paiacos(-1.0);// pai mapint,int mp; int n,m,s,t; int h[M]; vectorPII g[M]; int d[M][110];void solve(){cinnmst;for(int i1;in;i) cinh[i];while(m--){int a,b,c; cinabc;g[a].push_back({b,c});g[b].push_back({a,c});}int ans 2e9,pos -1;auto dijkstra [](){memset(d,0x3f,sizeof d);priority_queuear3,vectorar3,greaterar3 q;d[s][0] 0, q.push({0,s,0});while(!q.empty()){auto [cost,u,hot] q.top(); q.pop();for(auto[v,w]:g[u]){int ne max(hot,h[v]);if(vt){if(costwans){ans cost w;pos hot;}else if(costwans and hotpos){pos hot;}}if(d[v][ne]costw){d[v][ne] cost w;q.push({costw,v,ne});}}}};dijkstra();if(pos-1) cout Impossible endl;else cout ans pos endl;return ; } signed main () {ios// 不能有printf puts scanfint t1;while(t--){solve();} }RC-u5 贪心消消乐    分数 30 贪心模拟每次都暴力的找到可以选取的最大矩阵即可然后模拟下降,没有找到正解这里贴一下别人的x*(n^4)比较暴力的做法赛时通过了 #include bits/stdc.husing namespace std; using i64 long long;constexpr int inf 5E6;void solve() {int n;cin n;vectorvectorint g(n, vectorint(n, 0));for (int i 0; i n; i) {for (int j 0; j n; j) {cin g[i][j];if (g[i][j] 0) {g[i][j] -inf;}}}vectorvectori64 sum(n 1, vectori64(n 1, 0));for (int i 0; i n; i) {for (int j 0; j n; j) {sum[i 1][j 1] sum[i 1][j] sum[i][j 1] - sum[i][j] g[i][j];}}i64 tot 0;while (1) {i64 hi 0;int a, b, c, d;for (int x1 0; x1 n; x1) {for (int y1 0; y1 n; y1) {for (int x2 x1; x2 n; x2) {for (int y2 y1; y2 n; y2) {if (g[y2][x2] -inf) {break;}i64 cur sum[y2 1][x2 1] - sum[y2 1][x1] - sum[y1][x2 1] sum[y1][x1];if (cur hi) {hi cur;a x1;b y1;c x2;d y2;}if (cur 0) {break;}}}}}if (hi 0) {break;}tot hi;cout ( a 1 , b 1 ) ( c 1 , d 1 ) hi \n;int o d - b 1;for (int x a; x c; x) {for (int y d; y 0; y--) {if (y o) {g[y][x] g[y - o][x];} else {g[y][x] -inf;}}}for (int i 0; i n; i) {fill(sum[i].begin(), sum[i].end(), 0);}for (int i 0; i n; i) {for (int j 0; j n; j) {sum[i 1][j 1] sum[i 1][j] sum[i][j 1] - sum[i][j] g[i][j];}}}cout tot \n; }int main() {ios::sync_with_stdio(false);cin.tie(nullptr);int T 1; // cin T;while (T--) {solve();}return 0; }
http://www.w-s-a.com/news/842969/

相关文章:

  • 贵阳做网站品牌网站模板
  • 紫网站建设我的个人博客
  • 优秀网站菜单网页上的视频怎么下载
  • 龙口建网站公司价格国内的平面设计网站
  • 电子商务网站建设与管理读后感上海市基础工程公司
  • 织梦免费企业网站做网站时,404网页如何指向
  • 摄影工作室网站源码百度为什么会k网站
  • 哪个网站有淘宝做图的素材网站分享做描点链接
  • 做哪个网站零售最好网站空间在哪里
  • 荆州网站建设多少钱南阳做网站推广
  • 网站代理打开个人网站设计源码
  • 做php网站的话要学什么语言wordpress搜索不到
  • 金华官方网站建设网络营销策划模板
  • 网站开发到上线在线生成小程序
  • 动易网站设计方案郑州营销网站建设
  • 怎么上网站做简易注销的步骤郑州大学现代远程教育《网页设计与网站建设》课程考核要求
  • 新乡网站建设新乡长沙本地论坛有哪些
  • 潍坊中企动力做的网站怎么样wordpress接入微博
  • 网站开发者所有权归属网站项目建设的必要性
  • 菜鸟网站编程广州网站设计权威乐云践新
  • 网站做接口到app 价格大地资源免费视频观看
  • 怎么给钓鱼网站做防红网站建设相关的
  • 教育培训的网站建设湖南网站建设小公司
  • 福建南平网站建设创意交易平台网
  • 做直播网站要哪些技术内容营销理论
  • 价格划算的网站开发怎么找有赞做网站
  • 做网站店铺图片用什么软件网络营销方案格式
  • 做外贸要自己建网站吗有效的网络营销方式
  • 精通网站开发书籍做网站获取手机号码
  • 论坛做视频网站有哪些济南新站seo外包