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

创业网站模板免费下载中国机械网招聘信息

创业网站模板免费下载,中国机械网招聘信息,网站网络广告如何建设,环境艺术设计最好的大学VP比赛链接 : 数据加载中... - 蓝桥云课 1 . 九进制 转 十进制 直接模拟就好了 #include iostream using namespace std; int main() {// 请在此输入您的代码int x 22*92*81*9;cout x endl ;return 0; } 2 . 顺子日期 枚举出每个情况即可 : …VP比赛链接 :  数据加载中... - 蓝桥云课 1 . 九进制 转 十进制 直接模拟就好了 #include iostream using namespace std; int main() {// 请在此输入您的代码int x 22*92*81*9;cout x endl ;return 0; } 2 . 顺子日期 枚举出每个情况即可 : 总共14个 ; #include iostream using namespace std; int main() {// 请在此输入您的代码// 0120 0121 .. 29 : 10// 1月 : 10// 1012// 1123//1230// 1231cout 14 endl ;return 0; } 3 . 刷题统计 模拟即可 :  #includebits/stdc.h #define IOS ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); #define endl \n #define lowbit(x) (x(-x)) #define sz(a) (int)a.size() #define pb push_back #define all(a) a.begin(), a.end() #define int long long typedef long long LL;using namespace std;inline void solve(){LL a , b , n ; cin a b n ;LL x 5*a 2*b ;LL w n / x ;LL ans w * 7 ;n - w * x ;LL f n % x ;for(int i1;i5n0;i){n-a ; ans ;} for(int i1;i2n0;i){n - b ;ans ;}cout ans endl ; }signed main() {IOSint _ 1;while(_ --) solve();return 0; } 4 . 修剪灌木 对于每一颗灌木最大是2*(距离两边较大的距离 ) ; 然后遍历即可 :  #includebits/stdc.h #define IOS ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); #define endl \n #define lowbit(x) (x(-x)) #define sz(a) (int)a.size() #define pb push_back #define all(a) a.begin(), a.end() #define int long long typedef long long LL; const int mod 1e9 7; const int N 2e5 10;using namespace std;inline void solve() {int n ; cin n ;for(int i1;in;i){int ans max(2*(i-1),2*(n-i));cout ans endl ;} }signed main() {IOSint _ 1;while (_--) solve();return 0; } 5 . X进制减法 根据题目意思去模拟 对于每一位先计算数位max(2,max(a[i],b[i])1); 然后计算每一位的权重 : 由前面的地推过来即可 然后分别算出A和B的值相减即可 ; #includebits/stdc.h #define IOS ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); #define endl \n typedef long long LL; const int mod 1e97; const int N 1e510; using namespace std;// 321 // 第一位 1 // 3 * 20 2 * 2 1 * 1 64int a[N] , b[N] ,w[N], mul[N] ;inline void solve(){int n ; cin n ;int x, y ; cin x ;for(int ix;i1;i--) cin a[i] ;cin y ;for(int iy;i1;i--) cin b[i] ;//1是低位 int ma max(x , y) ;for(int i1;ima;i) mul[i] max(2,max(a[i],b[i])1) ;//每一位的进制 w[1] 1 ;for(int i2;ima;i){w[i] 1LL * w[i-1] * mul[i-1] % mod ;}LL A 0 , B 0 ;for(int i1;ix;i) A (A 1LL * a[i] * w[i] ) % mod ;for(int i1;iy;i) B (B 1LL * b[i] * w[i] ) % mod ;cout (A - B mod) % mod endl ; }signed main() {IOSint _ 1;while(_ --) solve();return 0; } 6 . 统计子矩阵 前缀和 滑动窗口 先计算出每一列的前缀和 然后用滑动窗口来夹每一列对于每个合适的窗口ans加上窗口长度 ; 详细请看代码 :  #includebits/stdc.h #define IOS ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); #define endl \n typedef long long LL; const int mod 1e97; const int N 510; using namespace std;LL a[N][N] ;inline void solve(){LL n,m,k;cinnmk;for(int i1;in;i)for(int j1;jm;j){cin a[i][j] ;a[i][j]a[i-1][j];// 统计每一列的前缀和 }LL ans 0 ;for(int i1;in;i){for(int ji;jn;j){// 夹中间LL sum 0 ;int l 1 , r 1 ;while(rm){sum a[j][r]-a[i-1][r] ;while(sumk){sum - a[j][l] - a[i-1][l] ;l ;}ans r - l 1 ;r ;}}}cout ans endl ; }signed main() {IOSint _ 1;while(_ --) solve();return 0; } 7 . 积木画 状态压缩dp,不会 8 . 扫雷 实属简单,模拟即可 :  #includebits/stdc.h #define IOS ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); #define endl \n typedef long long LL; const int mod 1e97; const int N 110; using namespace std;int a[N][N] ,b[N][N] ;int dx[8] {0,0,1,-1,1,1,-1,-1}; int dy[8] {1,-1,0,0,1,-1,1,-1};inline void solve(){int n , m ; cin n m ;for(int i1;in;i)for(int j1;jm;j)cin a[i][j] ;for(int i1;in;i){for(int j1;jm;j){if(a[i][j]1){b[i][j] 9 ;continue ;}int cnt 0 ;for(int p0;p8;p){int x i dx[p] , y j dy[p] ;if(x1xny1yma[x][y]1) cnt ;}b[i][j] cnt ;}}for(int i1;in;i){for(int j1;jm;j){cout b[i][j] ;}cout endl ;}}signed main() {IOSint _ 1;while(_ --) solve();return 0; } 后面两题不会,补;
http://www.w-s-a.com/news/519538/

相关文章:

  • 专门用来查找网址的网站查公司名字是否被注册
  • 自己创建网站教程河南省建设厅官方网站李学军
  • 一个网站需要多少容量怎样免费设计网站建设
  • 建设工程交易中心网站12306的网站是哪个公司做的
  • 建设网站经营范围自己给公司做网站
  • 河北省住房建设厅政务网站网络营销推广的岗位职责有哪些
  • 上海网站建设优化价格孝义做网站的公司
  • 哪个公司网站做的最好义乌 网站 制作
  • 百度站长工具综合查询wordpress 上传pdf
  • 旅游短租公寓网站建设深圳龙岗招聘网
  • 做海淘是在哪个网站网络查控系统设计方案
  • o2o网站建设代理商微信公众号开发文档
  • 网站设计课程总结关于网站备案的公告
  • 网站建设与运营意义到哪查找网站域名
  • 网站及单位网站建设情况眉县住房和城市建设局网站
  • 网站是否能够被恶意镜像wordpress占用
  • 经典设计网站网站等保测评怎么做
  • 重庆做网站公司贴吧廊坊公司快速建站
  • 海外贸易在什么网站做怎么排名到百度第一页
  • 线上注册公司是在哪个网站做高仿网站
  • 网站构架图网上推广平台哪个好
  • 公司网站首页图片素材vi设计的目的和意义
  • 网站的需求分析都有哪些内容济南营销型网站建设团队
  • 怎么选择优秀的网站建设公司生鲜网站开发
  • 如何编写网站建设销售的心得网站的权限管理怎么做
  • 网站业务员好做吗无忧网站优化
  • 网站随机代码网站建设费 账务处理
  • 商洛网站建设哪家好网站建设 织梦者
  • 怎么创建收费网站宁夏住房和城乡建设部网站
  • 怎么确认网站是什么语言做的用php和mysql做网站