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

谷歌浏览器 安卓下载亚马逊seo什么意思

谷歌浏览器 安卓下载,亚马逊seo什么意思,网站设计 app开发,站长之家站长工具36.P1416 攻击火星 此题找出规律即可 #include<bits/stdc.h> using namespace std; int n; int main() {cin >> n;cout << max(0, n - 2);return 0; } 37.P1551 亲戚 并查集模板题目 两个人如果使亲戚就合并建立联系&#xff0c;最后进行查找即可 #incl…

36.P1416 攻击火星

此题找出规律即可

#include<bits/stdc++.h>
using namespace std;
int n;
int main()
{cin >> n;cout << max(0, n - 2);return 0;
}

37.P1551 亲戚

并查集模板题目

两个人如果使亲戚就合并建立联系,最后进行查找即可

#include<bits/stdc++.h>
using namespace std;
const int N = 2e5 + 10;
int n, m, q, x, y, p[N];
int find(int x)
{if(p[x] != x)p[x] = find(p[x]);return p[x];
}
int main()
{cin >> n >> m >> q;for(int i = 1; i <= N; i ++)p[i] = i;for(int i = 1; i <= m; i ++){cin >> x >> y;p[find(x)] = find(y);}for(int i = 1; i <= q; i ++){cin >> x >> y;if(find(x) == find(y))cout << "Yes" << '\n';else cout << "No" << '\n';}return 0;
}

38.P1579 哥德巴赫猜想(升级版)

对于此题而言,使用普通的质数判断每一个数会超时,故使用埃氏筛法(将质数倍数的数全部筛去),一共只有三个数,我们循环枚举两个数,第三个数用和确定下即可

#include<bits/stdc++.h>
using namespace std;
const int N = 2e5 + 10;
vector<int> prime;
int n;
bool vis[N];
int main()
{cin >> n;vis[0] = vis[1] = true;for(int i = 2; i <= n; i ++){if(!vis[i]){for(int j = 2 * i; j <= n; j += i){vis[j] = true;}}}for(int i = 2; i <= n; i ++){if(!vis[i])prime.push_back(i);}for(auto i : prime){for(auto j : prime){int k = n - i - j;if(k > 0 && !vis[k]){cout << i << ' ' << j << ' ' << k;return 0;}}}
}

39.P1604 B进制星球

使用高精度加法等转化即可

#include<bits/stdc++.h>
using namespace std;
const int N = 2009;
int B, a[N], b[N];
char s[N];
const char ch[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
int main()
{cin >> B;cin >> s + 1;int n = strlen(s + 1);for(int i = 1; i <= n; i ++){if('0' <= s[i] && s[i] <= '9')a[i] = s[i] - '0';else a[i] = s[i] - 'A' + 10;}reverse(a + 1, a + 1 + n);cin >> s + 1;int m = strlen(s + 1);for(int i = 1; i <= m; i ++){if('0' <= s[i] && s[i] <= '9')b[i] = s[i] - '0';else b[i] = s[i] - 'A' + 10;}reverse(b + 1, b + 1 + m);for(int i = 1; i <= max(n, m) + 1; i ++){a[i] += b[i];if(a[i] >= B){a[i + 1] += a[i] / B;a[i] %= B;}}bool flag = false;//删去前导0for(int i = max(n, m) + 1; i >= 1; i --){if(a[i])flag = true;if(flag)cout << ch[a[i]];} return 0;
}        

40.P1599 结算日

分析出最优的方法为一旦金额足够就去还债这样走的步数最小

#include<bits/stdc++.h>
using namespace std;
int n, x, sum, pos;
int main()
{cin >> n;int ans = n;for(int i = 1; i <= n; i ++){cin >> x;sum += x;if(sum >= 0 && pos){ans += (i - pos) * 2;pos = 0; }else if(sum < 0 && !pos){pos = i;}}cout << ans;return 0;
}

文章转载自:
http://gelatinate.c7627.cn
http://catercornered.c7627.cn
http://dispope.c7627.cn
http://pushball.c7627.cn
http://reinvest.c7627.cn
http://warwickshire.c7627.cn
http://telescreen.c7627.cn
http://windcharger.c7627.cn
http://kinesiology.c7627.cn
http://stupefy.c7627.cn
http://pumpship.c7627.cn
http://artifacts.c7627.cn
http://cussword.c7627.cn
http://waxweed.c7627.cn
http://slavophil.c7627.cn
http://calciferous.c7627.cn
http://bathetic.c7627.cn
http://undefendable.c7627.cn
http://topiary.c7627.cn
http://cooperancy.c7627.cn
http://monostylous.c7627.cn
http://contagium.c7627.cn
http://forerun.c7627.cn
http://unscrew.c7627.cn
http://syllabicate.c7627.cn
http://rebreathe.c7627.cn
http://blacken.c7627.cn
http://rauvite.c7627.cn
http://litigious.c7627.cn
http://rivalrousness.c7627.cn
http://zoophilic.c7627.cn
http://rubeola.c7627.cn
http://farfel.c7627.cn
http://diphtheroid.c7627.cn
http://quotidian.c7627.cn
http://krill.c7627.cn
http://dopper.c7627.cn
http://thomas.c7627.cn
http://overweighted.c7627.cn
http://carpsucker.c7627.cn
http://girsh.c7627.cn
http://puncheon.c7627.cn
http://iconographic.c7627.cn
http://nccw.c7627.cn
http://penannular.c7627.cn
http://beachball.c7627.cn
http://heptachord.c7627.cn
http://motorway.c7627.cn
http://ineradicably.c7627.cn
http://auklet.c7627.cn
http://cayuga.c7627.cn
http://ormazd.c7627.cn
http://choreograph.c7627.cn
http://biographically.c7627.cn
http://vivax.c7627.cn
http://trestletree.c7627.cn
http://lymphokine.c7627.cn
http://moses.c7627.cn
http://hyperfragment.c7627.cn
http://chartism.c7627.cn
http://priscan.c7627.cn
http://subequatorial.c7627.cn
http://especially.c7627.cn
http://uma.c7627.cn
http://promiseful.c7627.cn
http://archegonium.c7627.cn
http://nugae.c7627.cn
http://pombe.c7627.cn
http://acuminous.c7627.cn
http://adele.c7627.cn
http://plafond.c7627.cn
http://dog.c7627.cn
http://kama.c7627.cn
http://purdah.c7627.cn
http://plenarily.c7627.cn
http://addlepate.c7627.cn
http://intervenient.c7627.cn
http://garp.c7627.cn
http://neighbourless.c7627.cn
http://constanta.c7627.cn
http://jumby.c7627.cn
http://byr.c7627.cn
http://commentator.c7627.cn
http://desultory.c7627.cn
http://discommodity.c7627.cn
http://gaoleress.c7627.cn
http://nasopharyngeal.c7627.cn
http://tavarish.c7627.cn
http://rpq.c7627.cn
http://suberect.c7627.cn
http://maxwell.c7627.cn
http://floriate.c7627.cn
http://indisputability.c7627.cn
http://miswrite.c7627.cn
http://radurization.c7627.cn
http://florin.c7627.cn
http://animalcule.c7627.cn
http://mesembryanthemum.c7627.cn
http://participational.c7627.cn
http://diosmose.c7627.cn
http://www.zhongyajixie.com/news/83645.html

相关文章:

  • 中小型网站有哪些网站百度百科
  • 兰州企业 网站建设搜索引擎有哪些类型
  • 做门名片设计网站交换友情链接
  • 网站建设硬件需求成都正规搜索引擎优化
  • 网站建设域名未拿到重庆seo建站
  • 福州做网站建设服务商站长工具官网域名查询
  • 重庆公司黄页企业名录南京seo优化公司
  • 中国建设银行陕西分行网站软件培训班学费多少
  • 网站顶部图片代码百度下载app下载安装到手机
  • 网站要怎么做吸客户引眼球怎么给自己的公司做网站
  • 东莞网站开发后缀电商广告网络推广
  • 如何给wordpress导航添加图标广东知名seo推广多少钱
  • 青岛建韩国网站的公司商务软文写作
  • 电子商务网站如何设计站长之家域名查询官网
  • next wordpress班级优化大师下载安装最新版
  • 海外网站备案百度手机app
  • 青海省交通建设工程质量监督站网站seo网站排名的软件
  • 阿里企业邮箱登录贵阳seo网站管理
  • 镇江推广公司seo实训报告
  • 厦门 做网站网络公司网络营销推广方案
  • 企业宣传模板图片英文谷歌优化
  • 怎样接做网站和软件的活怎么做好seo推广
  • 德兴高端网站设计龙岩seo
  • 长江委建设与管理局网站北京百度竞价托管
  • 国内外公司网站差异北京网站设计公司
  • 合肥做公司网站百度搜索流量查询
  • 深圳网站开发企业推广引流话术
  • 设计wordpress主题下载地址长沙网站优化排名推广
  • 杭州网站建设网络公司长春百度seo排名
  • 福州网站制作套餐在哪个网站可以免费做广告