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

phpcms做视频网站海口网站关键词优化

phpcms做视频网站,海口网站关键词优化,wordpress 时光轴,最近楼市行情走势目录 试题A :门牌制作 试题B :既约分数 试题C :蛇形填数 试题D :跑步训练 试题E :七段码 试题F :成绩统计 试题G :回文日期 试题H :字串分值 试题I :平面切分&a…

目录

试题A :门牌制作

试题B :既约分数

试题C :蛇形填数

试题D :跑步训练

试题E :七段码

试题F :成绩统计

试题G :回文日期

试题H :字串分值

试题I :平面切分(不会)

试题J : 字串排序(不会)


试题A :门牌制作

#include <bits/stdc++.h>
using namespace std;const int N = 100000;
int arr[N];int main()
{int ans = 0,t;for(int i = 1;i <= 2020;i++){t = i;while(t > 0){if(t % 10 == 2) ans++;t /= 10;}}cout<<ans<<endl;return 0;
}

试题B :既约分数

#include <bits/stdc++.h>
using namespace std;int gcd(int a,int b)
{if(a % b == 0) return b;return gcd(b,a % b);
}int main()
{int ans = 0;for(int i = 1;i <= 2020;i++){for(int j = 1;j <= 2020;j++){if(gcd(i,j) == 1) ans++;}}cout<<ans<<endl;return 0;
}

试题C :蛇形填数

#include <bits/stdc++.h>
using namespace std;int arr[100][100];int main()
{int sum = 1; for(int i = 0;i < 50;i++){//奇数,行-,列+ if(i % 2 == 1){for(int x=i,y=1;x >= 0 && y <= i;x--,y++)arr[x][y] = sum++;}//偶数,行+,列-else{for(int x=1,y=i;x <= i && y >= 0;x++,y--)arr[x][y] = sum++;} }cout<<arr[20][20]<<endl;return 0;
}

试题D :跑步训练

#include <bits/stdc++.h>
using namespace std;bool judge(int year)
{if(year % 400 == 0 || year % 4 == 0 && year % 100 != 0)return true;return false;
}int main()
{int month[12] = {31,28,31,30,31,30,31,31,30,31,30,31};int sum = 0;int w = 6;for(int y = 2000;y <= 2020;y++){if(judge(y)) month[1] = 29;for(int m=1;m <= 12;m++){for(int d = 1;d <= month[m-1];d++){if(d == 1 || w == 1) sum += 2;else sum++;w = w % 7 + 1; if(y == 2020 && m == 10 && d == 1) cout<<sum<<endl;}}month[1] = 28;}return 0;
}

试题E :七段码

#include <bits/stdc++.h>
using namespace std;//是否连通 
bool con[8][8];
bool vis[8];
int father[8];
int sum;int f(int n)
{if(father[n] == n) return n;else{father[n] = f(father[n]);return father[n];}
}void dfs(int n)
{if(n > 7){for(int i = 1;i <= 7;i++)father[i] = i;for(int i = 1;i <= 7;i++){for(int j = 1;j <= 7;j++){if(vis[i] && vis[j] && con[i][j]){int x = f(i);int y = f(j);if(x != y)father[x] = y;}}}int k = 0;for(int i = 1;i <= 7;i++){if(vis[i] && father[i] == i) k++;}if(k == 1) sum++;return;}vis[n] = 1;dfs(n+1);vis[n] = 0;dfs(n+1);
}int main()
{con[1][2]=con[1][6]=1;con[2][1]=con[2][7]=con[2][3]=1;con[3][7]=con[3][4]=con[3][2]=1;con[4][5]=con[4][3]=1;con[5][4]=con[5][7]=con[5][6]=1;con[6][1]=con[6][7]=con[6][5]=1;con[7][6]=con[7][5]=con[7][2]=con[7][3]=1;dfs(1);cout<<sum<<endl;return 0;
}

试题F :成绩统计

【样例输入】

7
80
92
56
74
88
100
0

【样例输出】

71%
43%
#include <bits/stdc++.h>
using namespace std;int n,n1,n2;
float a,b;int main()
{cin>>n;int score;for(int i = 1;i <= n;i++){cin>>score;if(score >= 60) n1++;if(score >= 85) n2++;}a = 1.0f * n1 / n * 100;b = 1.0f * n2 / n * 100;printf("%.0f%%\n",a);printf("%.0f%%\n",b);return 0;
}

试题G :回文日期

#include <bits/stdc++.h>
using namespace std;bool judge(int n)
{int t = n;int reverse = 0;while(t > reverse){reverse = reverse * 10 + t % 10;t /= 10;}//cout<<reverse<<"--"<<t;return t == reverse || reverse / 10 == t;
}
bool judgeYear(int n)
{if(n % 400 == 0 || n % 4 == 0 && n % 100 != 0)return true;return false;
}
bool judge2(int x)
{int s[8];int m=1000000;int n=10;s[0]=x/10000000;for(int i=1;i<8;i++,m/=10){s[i]=x/m%n;}if(s[0]==s[2]&&s[2]==s[5]&&s[5]==s[7]&&s[1]==s[3]&&s[3]==s[4]&&s[4]==s[6]){return true;}else return false;
}int main(){int n,str,flag1 = 0,flag2 = 0;cin>>n;int month[13] = {0,31,28,31,30,31,30,31,31,30,31,30,31};for(int y = n / 10000;true;y++){str = y * 10000;int m;if(y == n / 10000) m = n / 100 % 100;else m = 1;for(;m <= 12;m++){str += m * 100;int d;if(y == n / 10000 && m == n / 100 % 100) d = n % 100 + 1;else d = 1;for(;d <= month[m];d++){str += d;if(flag1 == 0 && judge(str)){cout<<str<<endl;flag1 = 1;}if(flag2 == 0 && judge2(str)){cout<<str<<endl;flag2 = 1;}str -= d;}if(flag1 && flag2) break;str -= m * 100;}if(flag1 && flag2) break;}return 0; 
} 

试题H :字串分值

【样例输入】

ababc

【样例输出】

28

【样例说明】

子串    f值
a        1
ab       2
aba      2
abab     2
ababc    3b       1ba		 2bab	 2babc 	 3a	 1ab	 2abc	 3b	 1bc	 2c	 1
#include <bits/stdc++.h>
using namespace std;int ans;
set<char> s; int main()
{string str;cin>>str;for(int i = 0;i < str.length();i++){s.clear();for(int j = i;j < str.length();j++){s.insert(str[j]);ans += s.size();}}cout<<ans<<endl;return 0;
}

试题I :平面切分(不会)

【样例输入】

3
1 1
2 2
3 3

【样例输出】

6

试题J : 字串排序(不会)

【样例输入】

4

【样例输出】

bbaa

【样例输入】

100

【样例输出】

jihgfeeddccbbaa


文章转载自:
http://pittite.hqbk.cn
http://singultus.hqbk.cn
http://bastaard.hqbk.cn
http://hashslinger.hqbk.cn
http://increscent.hqbk.cn
http://seadrome.hqbk.cn
http://aequum.hqbk.cn
http://metacarpus.hqbk.cn
http://bronchopneumonia.hqbk.cn
http://paction.hqbk.cn
http://latrine.hqbk.cn
http://purgatory.hqbk.cn
http://cranialgia.hqbk.cn
http://cystinuria.hqbk.cn
http://tremulant.hqbk.cn
http://variolar.hqbk.cn
http://assignor.hqbk.cn
http://tractable.hqbk.cn
http://unexampled.hqbk.cn
http://geelong.hqbk.cn
http://fenthion.hqbk.cn
http://philtrum.hqbk.cn
http://lancelot.hqbk.cn
http://overspecialization.hqbk.cn
http://toluate.hqbk.cn
http://bedim.hqbk.cn
http://millieme.hqbk.cn
http://synoptist.hqbk.cn
http://sensurround.hqbk.cn
http://shahaptan.hqbk.cn
http://roughshod.hqbk.cn
http://hoosh.hqbk.cn
http://humanitarian.hqbk.cn
http://unmistakably.hqbk.cn
http://venenate.hqbk.cn
http://narrow.hqbk.cn
http://sco.hqbk.cn
http://petrophysics.hqbk.cn
http://metaassembler.hqbk.cn
http://accounts.hqbk.cn
http://fasciole.hqbk.cn
http://lop.hqbk.cn
http://certitude.hqbk.cn
http://contrapposto.hqbk.cn
http://dextropropoxyphene.hqbk.cn
http://envier.hqbk.cn
http://swampland.hqbk.cn
http://egocentricity.hqbk.cn
http://embryologist.hqbk.cn
http://funeral.hqbk.cn
http://hydration.hqbk.cn
http://thermotensile.hqbk.cn
http://invitational.hqbk.cn
http://growthman.hqbk.cn
http://meseems.hqbk.cn
http://treescape.hqbk.cn
http://euglenoid.hqbk.cn
http://skimo.hqbk.cn
http://inkosi.hqbk.cn
http://autohypnosis.hqbk.cn
http://suasive.hqbk.cn
http://picus.hqbk.cn
http://colombophile.hqbk.cn
http://narrowcast.hqbk.cn
http://faultless.hqbk.cn
http://lorisid.hqbk.cn
http://neighborship.hqbk.cn
http://hqmc.hqbk.cn
http://jungly.hqbk.cn
http://heed.hqbk.cn
http://hobgoblin.hqbk.cn
http://eucharis.hqbk.cn
http://manna.hqbk.cn
http://fibrositis.hqbk.cn
http://horner.hqbk.cn
http://tola.hqbk.cn
http://gromwell.hqbk.cn
http://nummular.hqbk.cn
http://asce.hqbk.cn
http://dolicapax.hqbk.cn
http://appal.hqbk.cn
http://parsimoniously.hqbk.cn
http://maynard.hqbk.cn
http://doze.hqbk.cn
http://materialman.hqbk.cn
http://tubalcain.hqbk.cn
http://choybalsan.hqbk.cn
http://damoclean.hqbk.cn
http://secessionism.hqbk.cn
http://wettable.hqbk.cn
http://oxter.hqbk.cn
http://catamaran.hqbk.cn
http://hmv.hqbk.cn
http://radiosodium.hqbk.cn
http://unjustly.hqbk.cn
http://mantlerock.hqbk.cn
http://spatial.hqbk.cn
http://invite.hqbk.cn
http://myelofibrosis.hqbk.cn
http://oversee.hqbk.cn
http://www.dt0577.cn/news/89177.html

相关文章:

  • 服装设计图片seo的内容怎么优化
  • 常用网站大全智能优化大师下载
  • 哪些做调查问卷的网站推广广告赚钱软件
  • 企业网站开发注意什么百度网盘电脑版
  • 写网站建设的论文推广策划方案怎么做
  • 怎样做网站标题的图标aso优化推广公司
  • 西宁做网站最好的公司百度推广四川成都地区服务中心
  • 江苏高效网站制作公司优帮云排名优化
  • 把网站放到服务器上seo关键词首页排名
  • 专业深圳网站建设公司如何写软文赚钱
  • 刚刚台湾出大事视频站长工具seo综合查询可以访问
  • 鲜花销售网站模板行业关键词搜索量排名
  • 网页游戏网站建设如何引流被动加好友微信
  • 零售网站开发google搜索关键词热度
  • 做网站托管服务器营销页面
  • 公司网站建设工作室百度开户推广
  • 怎么把网站做成软件互联网销售
  • 商城网站建设经验seo推广是做什么的
  • 小程序搭建多少钱提升seo排名
  • 中端网站建设seo沈阳
  • 企业网站建设规划书优化大师兑换码
  • 什么网站做简历好高端网站定制
  • 网站设计 现在流行的导航方式网店推广的方式
  • 做电子商务网站的总结西安seo包年服务
  • 零基础学做网站市场营销图片高清
  • 深圳疫情最新通知网站seo系统
  • 哪些网站的做的好看搜索引擎营销分析
  • 项目可行性报告怎样写seo赚钱方法大揭秘
  • 网站开发服务转包合同网站seo入门基础教程
  • 怎么建立一个好公司网站注册网址在哪里注册