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

做双语网站用什么cms系统好百度指数名词解释

做双语网站用什么cms系统好,百度指数名词解释,做网站怎样和客户沟通,教做衣服的网站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 = 2+2*9+2*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 . 刷题统计

模拟即可 : 

#include<bits/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 i=1;i<=5&&n>0;i++){n-=a ; ans ++ ;} for(int i=1;i<=2&&n>0;i++){n -= b ;ans ++ ;}cout << ans << endl ;
}signed main()
{IOSint _ = 1;while(_ --) solve();return 0;
}

4 . 修剪灌木

对于每一颗灌木最大是2*(距离两边较大的距离 ) ;

然后遍历即可 : 

#include<bits/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 i=1;i<=n;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的值,相减即可 ;

#include<bits/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 = 1e9+7;
const int N = 1e5+10;
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 i=x;i>=1;i--) cin >> a[i] ;cin >> y ;for(int i=y;i>=1;i--) cin >> b[i] ;//1是低位 int ma = max(x , y) ;for(int i=1;i<=ma;i++) mul[i] = max(2,max(a[i],b[i])+1) ;//每一位的进制 w[1] = 1 ;for(int i=2;i<=ma;i++){w[i] = 1LL * w[i-1] * mul[i-1] % mod ;}LL A = 0 , B = 0 ;for(int i=1;i<=x;i++) A = (A + 1LL * a[i] * w[i]  ) % mod ;for(int i=1;i<=y;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加上窗口长度 ;

详细请看代码 : 

#include<bits/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 = 1e9+7;
const int N = 510;
using namespace std;LL a[N][N] ;inline void solve(){LL n,m,k;cin>>n>>m>>k;for(int i=1;i<=n;i++)for(int j=1;j<=m;j++){cin >> a[i][j] ;a[i][j]+=a[i-1][j];// 统计每一列的前缀和 }LL ans = 0 ;for(int i=1;i<=n;i++){for(int j=i;j<=n;j++){// 夹中间LL sum = 0 ;int l = 1 , r = 1 ;while(r<=m){sum += a[j][r]-a[i-1][r] ;while(sum>k){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 . 扫雷

实属简单,模拟即可 : 

#include<bits/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 = 1e9+7;
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 i=1;i<=n;i++)for(int j=1;j<=m;j++)cin >> a[i][j] ;for(int i=1;i<=n;i++){for(int j=1;j<=m;j++){if(a[i][j]==1){b[i][j] = 9 ;continue ;}int cnt = 0 ;for(int p=0;p<8;p++){int x = i + dx[p] , y = j + dy[p] ;if(x>=1&&x<=n&&y>=1&&y<=m&&a[x][y]==1) cnt ++ ;}b[i][j] = cnt ;}}for(int i=1;i<=n;i++){for(int j=1;j<=m;j++){cout << b[i][j] << " " ;}cout << endl ;}}signed main()
{IOSint _ = 1;while(_ --) solve();return 0;
}

后面两题不会,补;

http://www.hkea.cn/news/871791/

相关文章:

  • dreamweaver做的网站电商培训班一般多少钱
  • 国外做科研的网站东莞网站设计公司排名
  • 亿唐网不做网站做品牌原因seo网站诊断报告
  • 宝鸡网站建设东东怎么推广软件让别人下载
  • 21dove谁做的的网站百度一下首页设为主页
  • 猪八戒网站建设推广平台排名前十名
  • 广西建设质监站官方网站站长工具seo综合查询可以访问
  • 通用搭建网站教程优化营商环境的意义
  • 网站中加入地图怎样优化网站排名
  • 网站如何被搜索引擎收录地推推广平台
  • 池州做网站公司游戏搜索风云榜
  • 东丽区做网站网站查询平台
  • wordpress什么主题好用seo优化范畴
  • 局域网端口映射做网站西安竞价托管代运营
  • 重庆网站建设设计公司信息ip网站查询服务器
  • 网站积分的作用seo搜索引擎优化就业前景
  • 珠海网站品牌设计公司简介最新国内新闻重大事件
  • 广东专业网站客服软件定制站长统计app下载大全
  • 广东网站建设公司排名磁力帝
  • 胶南网站建设哪家好成都电脑培训班零基础
  • 集团网站建设哪家好网上推广怎么弄?
  • dz网站建设器最近有新病毒出现吗
  • 个人网站制作说明香港旺道旺国际集团
  • 监控做直播网站免费网站seo
  • 网站建设洪塔网站搜索优化排名
  • 专业做设计师品牌网站深圳百度总部
  • 网站兼容工具seo关键词排名优化教程
  • O2O网站制作需要多少钱美区下载的app怎么更新
  • 上海做网站 公司做电商必备的几个软件
  • caozi.com网站建设中百度指数如何分析数据