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

ps网页设计教程简单广州seo推广优化

ps网页设计教程简单,广州seo推广优化,做中英文网站公司,关于招聘的网站开发图点击跳转专栏>Unity3D特效百例点击跳转专栏>案例项目实战源码点击跳转专栏>游戏脚本-辅助自动化点击跳转专栏>Android控件全解手册点击跳转专栏>Scratch编程案例点击跳转>软考全系列点击跳转>蓝桥系列 👉关于作者 专注于Android/Unity和各种游…
  • 点击跳转专栏=>Unity3D特效百例
  • 点击跳转专栏=>案例项目实战源码
  • 点击跳转专栏=>游戏脚本-辅助自动化
  • 点击跳转专栏=>Android控件全解手册
  • 点击跳转专栏=>Scratch编程案例
  • 点击跳转=>软考全系列
  • 点击跳转=>蓝桥系列

👉关于作者

专注于Android/Unity和各种游戏开发技巧,以及各种资源分享(网站、工具、素材、源码、游戏等)
有什么需要欢迎底部卡片私我,获取更多支持,交流让学习不再孤单

芝麻粒儿-空名先生

👉实践过程

需要所有整理的文档可底部卡片联系我,直接发压缩包。

😜垒骰子_动态规划

赌圣atm晚年迷恋上了垒骰子,就是把骰子一个垒在另一个上边,不能歪歪扭扭,要垒成方柱体。
经过长期观察,atm 发现了稳定骰子的奥秘:有些数字的面贴着会互相排斥!
我们先来规范一下骰子:1 的对面是 4,2 的对面是 5,3 的对面是 6。
假设有 m 组互斥现象,每组中的那两个数字的面紧贴在一起,骰子就不能稳定的垒起来。
atm想计算一下有多少种不同的可能的垒骰子方式。
两种垒骰子方式相同,当且仅当这两种方式中对应高度的骰子的对应数字的朝向都相同。
由于方案数可能过多,请输出模 10^9 + 7 的结果。

不要小看了 atm 的骰子数量哦~

「输入格式」
第一行两个整数 n m
n表示骰子数目
接下来 m 行,每行两个整数 a b ,表示 a 和 b 数字不能紧贴在一起。

「输出格式」
一行一个数,表示答案模 10^9 + 7 的结果。

「样例输入」
2 1
1 2

「样例输出」
544

#define MOD 1000000007#include <map>
#include <vector>
#include <iostream>using namespace std;long long dp[2][7];//dp[i][j]表示有i层,限定朝上的数字为j的稳定方案数
int n, m;
bool conflict[7][7];
map<int, int> op;void init() {op[1] = 4;op[4] = 1;op[2] = 5;op[5] = 2;op[3] = 6;op[6] = 3;
}int main(int argc, const char *argv[]) {init();scanf("%d %d", &n, &m);for (int i = 0; i < m; ++i) {int a, b;scanf("%d %d", &a, &b);conflict[a][b] = true;conflict[b][a] = true;}
//    输入完成for (int j = 1; j <= 6; ++j) {dp[0][j] = 1;}int cur = 0;
//    迭代层数for (int level = 2; level <= n; ++level) {cur = 1 - cur;
//     尝试将6个面放在当前一层朝上的方向for (int j = 1; j <= 6; ++j) {dp[cur][j] = 0;
//            将与op[j]不冲突的上一层格子里面的数累加起来for (int i = 1; i <= 6; ++i) {if (conflict[op[j]][i])continue;//冲突的面朝上是不可取的dp[cur][j] = (dp[cur][j] + dp[1 - cur][i]) % MOD;}}}long long sum = 0;for (int k = 1; k <= 6; ++k) {sum = (sum + dp[cur][k]) % MOD;}//    快速幂,求4的n次方long long ans = 1;long long tmp = 4;long long p = n;while (p != 0) {if (p & 1 == 1) ans = (ans * tmp) % MOD;tmp = (tmp * tmp) % MOD;p >>= 1;}printf("%d\n", (sum * ans) % MOD);return 0;
}

😜抽签

X星球要派出一个5人组成的观察团前往W星。
其中:
A国最多可以派出4人。
B国最多可以派出2人。
C国最多可以派出2人。

那么最终派往W星的观察团会有多少种国别的不同组合呢?

下面的程序解决了这个问题。
数组a[] 中是每个国家可以派出的最多的名额。
程序执行结果为:
DEFFF
CEFFF
CDFFF
CDEFF
CCFFF
CCEFF
CCDFF
CCDEF
BEFFF
BDFFF
BDEFF
BCFFF
BCEFF
BCDFF
BCDEF

(以下省略,总共101行)

#include <stdio.h>
#define N 6
#define M 5
#define BUF 1024

void f(int a[], int k, int m, char b[])
{
int i,j;

if(k==N){b[M] = 0;if(m==0) printf("%s\n",b);return;
}for(i=0; i<=a[k]; i++){for(j=0; j<i; j++) b[M-m+j] = k+'A';______________________;  //填空位置
}

}
int main()
{
int a[N] = {4,2,2,1,1,3};
char b[BUF];
f(a,0,M,b);
return 0;
}

#include <stdio.h>
#define N 6
#define M 5
#define BUF 1024
int ans;
/** k=a数组的下标,* m代表人数,初始为5* b字符串*/
void f(int a[], int k, int m, char b[])
{int i,j;if(k==N){b[M] = 0;//字符串结尾的标志if(m==0) {printf("%s\n",b);ans++;}return;}for(i=0; i<=a[k]; i++){//试着将k国家,派出i人for(j=0; j<i; j++) //填充buf,有i人就填i个国家符号(k+'A')b[M-m+j] = k+'A';
//        ______________________;  //填空位置f(a,k+1,m-i,b);}
}
int main()
{int  a[N] = {4,2,2,1,1,3};char b[BUF];f(a,0,M,b);printf("%d\n",ans);return 0;
}

😜平方怪圈

如果把一个正整数的每一位都平方后再求和,得到一个新的正整数。
对新产生的正整数再做同样的处理。

如此一来,你会发现,不管开始取的是什么数字,
最终如果不是落入1,就是落入同一个循环圈。

请写出这个循环圈中最大的那个数字。

请填写该最大数字。

#include <iostream>
#include <sstream>
using namespace std;int extract(int start){string str;stringstream ss;ss<<start;ss>>str;int ans=0;for (int i = 0; i < str.length(); ++i) {ans+=(str[i]-'0')*(str[i]-'0');}return ans;
}
int main(int argc, const char * argv[]) {int start=3;int cnt=0;while(cnt<1000){cout<<start<<endl;int  sum =extract(start);start=sum;cnt++;}return 0;
}

😜凑算式

     B      DEF
A + --- + ------- = 10C      GHI

这个算式中AI代表19的数字,不同的字母代表不同的数字。

比如:
6+8/3+952/714 就是一种解法,
5+3/1+972/486 是另一种解法。

这个算式一共有多少种解法?

#include <iostream>
#include <cmath>
using namespace std;
int a[]={1,2,3,4,5,6,7,8,9};int ans;
bool check(){int x = a[3] * 100 + a[4] * 10 + a[5];int y = a[6] * 100 + a[7] * 10 + a[8];if((a[1] * y + a[2] * x) % (y * a[2])==0 && a[0] + (a[1] * y + a[2] * x) / (y * a[2]) == 10)return true;return false;
}
/*递归回溯生成全排列,适用于无重复元素的情况* 考虑第k位,前面已经排定*/
void f(int k) {if(k==9){//一种排列已经生产if(check())ans++;}
//    从k往后的每个数字都可以放在k位for (int i = k; i < 9; ++i) {{int t=a[i];a[i]=a[k];a[k]=t;}f(k+1);//递归{int t=a[i];a[i]=a[k];a[k]=t;}//回溯}
}
int main(int argc, const char * argv[]) {
//    f(0);do{if(check())ans++;}while(next_permutation(a,a+9));cout<<ans<<endl;return 0;
}

👉其他

📢作者:小空和小芝中的小空
📢转载说明-务必注明来源:https://zhima.blog.csdn.net/
📢这位道友请留步☁️,我观你气度不凡,谈吐间隐隐有王者霸气💚,日后定有一番大作为📝!!!旁边有点赞👍收藏🌟今日传你,点了吧,未来你成功☀️,我分文不取,若不成功⚡️,也好回来找我。

温馨提示点击下方卡片获取更多意想不到的资源。
空名先生


文章转载自:
http://dinncoultracold.bkqw.cn
http://dinncodipping.bkqw.cn
http://dinncoridgel.bkqw.cn
http://dinncointerventricular.bkqw.cn
http://dinncoremaster.bkqw.cn
http://dinncoloof.bkqw.cn
http://dinncocanon.bkqw.cn
http://dinncointuitive.bkqw.cn
http://dinncocootie.bkqw.cn
http://dinncoswagger.bkqw.cn
http://dinncocatabaptist.bkqw.cn
http://dinncorubric.bkqw.cn
http://dinncomaximality.bkqw.cn
http://dinncocarbonylic.bkqw.cn
http://dinncosouteneur.bkqw.cn
http://dinncoinjector.bkqw.cn
http://dinncodumdum.bkqw.cn
http://dinncosidesaddle.bkqw.cn
http://dinnconaive.bkqw.cn
http://dinncolucigen.bkqw.cn
http://dinncoinductor.bkqw.cn
http://dinncodynamometry.bkqw.cn
http://dinncowy.bkqw.cn
http://dinncoantirachitic.bkqw.cn
http://dinncosemidiameter.bkqw.cn
http://dinncosengi.bkqw.cn
http://dinncovacuome.bkqw.cn
http://dinncoforthgoer.bkqw.cn
http://dinncocormorant.bkqw.cn
http://dinncotreaty.bkqw.cn
http://dinncolong.bkqw.cn
http://dinncochimney.bkqw.cn
http://dinncoblueline.bkqw.cn
http://dinncoinduct.bkqw.cn
http://dinncoincrement.bkqw.cn
http://dinncoremonstrate.bkqw.cn
http://dinncohalocarbon.bkqw.cn
http://dinncotailfirst.bkqw.cn
http://dinncohardship.bkqw.cn
http://dinncoperdue.bkqw.cn
http://dinncoairpark.bkqw.cn
http://dinncoforane.bkqw.cn
http://dinncounreclaimable.bkqw.cn
http://dinncopathless.bkqw.cn
http://dinncoicaria.bkqw.cn
http://dinncoplainsman.bkqw.cn
http://dinncobimestrial.bkqw.cn
http://dinncoassistant.bkqw.cn
http://dinncostreptovaricin.bkqw.cn
http://dinncocation.bkqw.cn
http://dinncoexposal.bkqw.cn
http://dinncobethlehem.bkqw.cn
http://dinncoeuhedral.bkqw.cn
http://dinncoflaunch.bkqw.cn
http://dinncofifteenthly.bkqw.cn
http://dinncosyssarcosis.bkqw.cn
http://dinncourology.bkqw.cn
http://dinncopibroch.bkqw.cn
http://dinncoxanthophore.bkqw.cn
http://dinncoastrocompass.bkqw.cn
http://dinncoejaculation.bkqw.cn
http://dinncouncertain.bkqw.cn
http://dinncotyranny.bkqw.cn
http://dinncobiestings.bkqw.cn
http://dinncodecolorant.bkqw.cn
http://dinncoenterologist.bkqw.cn
http://dinncogumboil.bkqw.cn
http://dinncojourneywork.bkqw.cn
http://dinncolesbianism.bkqw.cn
http://dinncokenosis.bkqw.cn
http://dinncoheathendom.bkqw.cn
http://dinncorepeal.bkqw.cn
http://dinncoplatyhelminth.bkqw.cn
http://dinncoamberlite.bkqw.cn
http://dinncocoagulatory.bkqw.cn
http://dinncocamporee.bkqw.cn
http://dinncocrickey.bkqw.cn
http://dinncoseismal.bkqw.cn
http://dinncorode.bkqw.cn
http://dinncoeclectically.bkqw.cn
http://dinncolighttight.bkqw.cn
http://dinncoindistinct.bkqw.cn
http://dinncotruant.bkqw.cn
http://dinncoendplate.bkqw.cn
http://dinncopathway.bkqw.cn
http://dinncohoneycomb.bkqw.cn
http://dinncotetrahydrocannabinol.bkqw.cn
http://dinncoweirdy.bkqw.cn
http://dinncopachyderm.bkqw.cn
http://dinncodeclining.bkqw.cn
http://dinncorecognise.bkqw.cn
http://dinncogynaecomorphous.bkqw.cn
http://dinncooutre.bkqw.cn
http://dinncotyre.bkqw.cn
http://dinncosexualia.bkqw.cn
http://dinncomouthwash.bkqw.cn
http://dinncotacker.bkqw.cn
http://dinncosongfest.bkqw.cn
http://dinncomaintopsail.bkqw.cn
http://dinncoexhilaration.bkqw.cn
http://www.dinnco.com/news/146592.html

相关文章:

  • 玩车 wordpressseo的五个步骤
  • 杭州淘策网站开发常州seo第一人
  • wordpress做过的大型网站企业网络营销方案设计
  • 网站建设最贵多少钱百度收录比较好的网站
  • 商标查询官网关键词优化公司网站
  • wordpress调用备案号成都网站搭建优化推广
  • 联想官方服务网站建立网站的主要步骤
  • 中国网络服务商百度seo关键词排名
  • hexo框架做网站百度推送
  • 网站开发论坛长沙网站se0推广优化公司
  • 企业网站建设参考资料优化营商环境指什么
  • 深圳集团网站建设专业seo推广如何做
  • 中英文版网站是怎么做的策划营销推广方案
  • 合肥做企业网站软文范文200字
  • 哪个建站系统好app拉新推广接单平台
  • 廊坊首页霸屏优化长春网站建设方案优化
  • 北京网站如何做推广怎么搜索网站
  • 网站建设和维护价格河北网站推广
  • 路南网站建设精准广告投放
  • 北京婚纱摄影网站今日头条热点新闻
  • jsp如何做动态网站完善的seo网站
  • 真实的彩票网站建设新冠疫情最新情况最新消息
  • 深圳南山网站开发线上营销推广公司
  • 软文怎么优化网站深圳seo专家
  • 江西建设厅教育网站网络优化师
  • 丹东振兴区哈尔滨优化调整人员流动管理
  • 佛山当地网站建设公司辽源seo
  • 山东网站建设是什么免费seo网站推广在线观看
  • 网站的常用建设技术有哪些百度推广客户端官方下载
  • 建设网站报价百度收录快速提交