岳阳市建设局网站小程序代运营怎么收费

张小明 2026/1/12 3:57:48
岳阳市建设局网站,小程序代运营怎么收费,网站开发如何让图片加载的更快,大庆小程序制作2025年天津大学计算机考研复试机试真题 2025年天津大学计算机考研复试上机真题 历年天津大学计算机考研复试上机真题 历年天津大学计算机考研复试机试真题 更多学校题目开源地址#xff1a;https://gitcode.com/verticallimit1/noobdream N 诺 DreamJudge 题库#xff1…2025年天津大学计算机考研复试机试真题2025年天津大学计算机考研复试上机真题历年天津大学计算机考研复试上机真题历年天津大学计算机考研复试机试真题更多学校题目开源地址https://gitcode.com/verticallimit1/noobdreamN 诺 DreamJudge 题库输入 “学校名称” 即可筛选该校历年机试真题题目均在考纲范围内按难度自动排序。还可搭配《计算机考研机试攻略》刷题书中题目可通过题号直接在题库中查找。天津大学-计算表达式题目描述Time Limit: 1000 msMemory Limit: 256 mb输入字符串的中缀表达式包含‘’、‘-’、‘*’、‘/’、‘(’、‘)’输出运算结果。输入输出格式输入描述:字符串的中缀表达式输出描述:计算结果输入输出样例输入样例#:3(5-3)*2输出样例#:7代码一#include iostream#include vector#include algorithm#include iomanip#include set#include list#include string#include cmath#include stack#include map#include sstream#include queue#include bitset#include climitsusing namespace std;mapchar, intmapp{{,1},{-,1},{*,2},{/,2}};void fun(stackint nums, stackchar ops) {int b nums.top(); nums.pop();int a nums.top(); nums.pop();char op ops.top(); ops.pop();int result;if (op ) result a b;else if (op -)result a - b;else if (op *)result a * b;else result a / b;nums.push(result);}int main() {string s;while (cin s) {stackintnums;stackcharops;char op;for(int i0;is.size();i) {op s[i];if (s[i] 0 s[i] 9) {int num 0;while (i s.length() isdigit(s[i])) {num num * 10 (s[i] - 0);i;}i--;nums.push(num);}else if (op () {ops.push(op);}else if (op )) {while (!ops.empty() ops.top() ! () {fun(nums, ops);}if (!ops.empty()) {ops.pop();}}else {while (!ops.empty() ops.top() ! ( mapp[ops.top()]mapp[op]) {fun(nums, ops);}ops.push(op);}}while (!ops.empty()) {fun(nums, ops);}cout nums.top() endl;}return 0;}代码二#includeiostream#includeunordered_map#includealgorithm#includestring#includestackusing namespace std;stackint num;stackchar fu;unordered_mapchar, int h{ {,1},{-,1},{*,2},{/,2} };void jisuan() {int num1 num.top();num.pop();int num2 num.top();num.pop();char f fu.top();fu.pop();int n 0;if (f )n num1 num2;if (f -)n num2 - num1;if (f *)n num1 * num2;if (f /)n num2 / num1;num.push(n);}int main() {string s;cin s;for (int i 0; i s.size(); i) {if (isdigit(s[i])) {int j i, x 0;while (j s.size() isdigit(s[j])) {x x * 10 s[j] - 0;j;}num.push(x);i j - 1;}else if (s[i] () {fu.push(s[i]);}else if (s[i] )) {while (fu.top() ! () {jisuan();}fu.pop();}else {while (fu.size() 0 h[s[i]] h[fu.top()]) {jisuan();}fu.push(s[i]);}}while (fu.size())jisuan();cout num.top() endl;return 0;}代码三#includebits/stdc.husing namespace std;struct li{//方便存储多位数字char ch$;int number;};int main(){vectorlires;//存后缀表达式stackintsta;//后缀表达式求值操作栈mapchar,int m;m[]1;m[-]1;m[*]2;m[/]2;m[^]3;string str;cinstr;int lenstr.length();stackchars;//中缀转后缀操作栈for(int i0;ilen;){//中缀转后缀if(str[i]0str[i]9){//数字string cc;while(str[i]0str[i]9){ccstr[i];i;}int numstoi(cc);li temp;temp.numbernum;res.push_back(temp);continue;}else if(str[i](){//左括号s.push(str[i]);}else if(str[i])){//右括号while(s.top()!(){li temp;temp.chs.top();res.push_back(temp);s.pop();}s.pop();}else{//-*/^运算符if(!s.empty()){if(s.top()!(){int bm[str[i]];int am[s.top()];while(ab){li temp;temp.chs.top();res.push_back(temp);s.pop();if(s.empty()){break;}if(s.top()(){break;}int am[s.top()];}}}s.push(str[i]);}i;}while(!s.empty()){li temp;temp.chs.top();res.push_back(temp);s.pop();}//后缀表达式求值for(int i0;ires.size();i){if(res[i].ch$){//数字sta.push(res[i].number);}else{//运算符int bsta.top();sta.pop();int asta.top();sta.pop();int c;if(res[i].ch){cab;}else if(res[i].ch-){ca-b;}else if(res[i].ch*){ca*b;}else if(res[i].ch/){ca/b;}else if(res[i].ch^){c(int)pow(a,b);}sta.push(c);}}coutsta.top();return 0;}
版权声明:本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

团员注册网站wordpress架设

导语 【免费下载链接】Voxtral-Small-24B-2507 项目地址: https://ai.gitcode.com/hf_mirrors/mistralai/Voxtral-Small-24B-2507 Mistral AI最新发布的Voxtral Small 24B-2507模型以240亿参数实现语音与文本的深度融合,支持8种语言实时转录与理解&#xff…

张小明 2026/1/10 8:13:51 网站建设

网站建设设计未来前景大一html5网页设计代码

点击下方卡片,关注「3D视觉工坊」公众号选择星标,干货第一时间送达来源:3D视觉工坊「3D视觉从入门到精通」知识星球(点开有惊喜) !星球内新增20多门3D视觉系统课程、入门环境配置教程、多场顶会直播、顶会论文最新解读、3D视觉算法…

张小明 2026/1/10 8:13:51 网站建设

电器网站建设目的江苏建设人才考试网官方网站

云主机如何新增账号1.添加用户2.设置密码3.如果需要sudo权限执行4.新建账号范例1.添加用户 useradd -m -s /bin/bash username2.设置密码 echo "username:password" | sudo chpasswd3.如果需要sudo权限执行 echo "username ALL(ALL) NOPASSWD:ALL" >…

张小明 2026/1/10 8:13:52 网站建设

长春百度网站排名优化vi设计包含什么

风光发电蓄电池PEM电解槽,可以修改加模块的风光发电配储能PEM电解槽的组合最近在微电网项目里越来越常见。这种架构说白了就是把不稳定能源变成稳定氢气输出的活体转化器,不过真到写控制逻辑的时候,总有几个坑躲不过去。先说个典型场景&#…

张小明 2026/1/10 8:13:53 网站建设

网站怎么做百度排名做企业网站的尺寸是多少钱

HOScrcpy鸿蒙远程投屏技术深度解析与实战进阶指南 【免费下载链接】鸿蒙远程真机工具 该工具主要提供鸿蒙系统下基于视频流的投屏功能,帧率基本持平真机帧率,达到远程真机的效果。 项目地址: https://gitcode.com/OpenHarmonyToolkitsPlaza/HOScrcpy …

张小明 2026/1/10 8:13:53 网站建设

有哪些网站是cms青岛网站建设设计

第一章:工业质检Agent的核心价值与应用场景在智能制造加速演进的背景下,工业质检Agent正成为提升生产质量与效率的关键技术。通过融合机器学习、计算机视觉与自动化控制,质检Agent能够在复杂产线环境中实时识别缺陷、自主决策并反馈调整指令&…

张小明 2026/1/10 7:37:26 网站建设